}
];
+ M.util.js_pending('unified_filter_datasource');
Str.get_strings(stringkeys).done(function(langstrings) {
var placeholder = langstrings[0];
var noSelectionString = langstrings[1];
Autocomplete.enhance(SELECTORS.UNIFIED_FILTERS, true, 'core_user/unified_filter_datasource', placeholder,
- false, true, noSelectionString, true);
+ false, true, noSelectionString, true)
+ .then(function() {
+ M.util.js_complete('unified_filter_datasource');
+
+ return;
+ })
+ .fail(Notification.exception);
}).fail(Notification.exception);
var last = $(SELECTORS.UNIFIED_FILTERS).val();
* Return the unified user filter form.
*
* @method getForm
- * @private
- * @return {Form object}
+ * @return {DOMElement}
*/
var getForm = function() {
return $(SELECTORS.UNIFIED_FILTERS).closest('form');
};
return /** @alias module:core/form-autocomplete */ {
- // Public variables and functions.
/**
* Initialise the unified user filter.
*
* @method init
*/
- 'init': function() {
+ init: function() {
init();
},
+
/**
* Return the unified user filter form.
*
* @method getForm
- * @return {Form object}
+ * @return {DOMElement}
*/
- 'getForm': function() {
+ getForm: function() {
return getForm();
}
};