MDL-53942 form_autocomplete: Properly set noSelectionString

This commit is contained in:
Jun Pataleta
2016-04-26 13:41:29 +08:00
parent 6c1342d7e5
commit 1388b618d9
2 changed files with 4 additions and 2 deletions
File diff suppressed because one or more lines are too long
+3 -1
View File
@@ -712,7 +712,9 @@ define(['jquery', 'core/log', 'core/str', 'core/templates', 'core/notification']
options.showSuggestions = showSuggestions;
}
if (typeof noSelectionString === "undefined") {
options.noSelectionString = str.get_string('noselection', 'form');
str.get_string('noselection', 'form').done(function (result) {
options.noSelectionString = result;
}).fail(notification.exception);
}
// Look for the select element.