Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Merge branch 'MDL-59867-master' of git://github.com/damyon/moodle
- Loading branch information
Showing
with
11 additions
and
5 deletions.
-
+1
−1
lib/amd/build/form-autocomplete.min.js
-
+10
−4
lib/amd/src/form-autocomplete.js
Some generated files are not rendered by default. Learn more.
Oops, something went wrong.
|
@@ -37,6 +37,8 @@ define(['jquery', 'core/log', 'core/str', 'core/templates', 'core/notification'] |
|
|
UP: 38 |
|
|
}; |
|
|
|
|
|
var uniqueId = $.now(); |
|
|
|
|
|
/** |
|
|
* Make an item in the selection list "active". |
|
|
* |
|
@@ -786,11 +788,15 @@ define(['jquery', 'core/log', 'core/str', 'core/templates', 'core/notification'] |
|
|
// Find or generate some ids. |
|
|
var state = { |
|
|
selectId: originalSelect.attr('id'), |
|
|
inputId: 'form_autocomplete_input-' + $.now(), |
|
|
suggestionsId: 'form_autocomplete_suggestions-' + $.now(), |
|
|
selectionId: 'form_autocomplete_selection-' + $.now(), |
|
|
downArrowId: 'form_autocomplete_downarrow-' + $.now() |
|
|
inputId: 'form_autocomplete_input-' + uniqueId, |
|
|
suggestionsId: 'form_autocomplete_suggestions-' + uniqueId, |
|
|
selectionId: 'form_autocomplete_selection-' + uniqueId, |
|
|
downArrowId: 'form_autocomplete_downarrow-' + uniqueId |
|
|
}; |
|
|
|
|
|
// Increment the unique counter so we don't get duplicates ever. |
|
|
uniqueId++; |
|
|
|
|
|
options.multiple = originalSelect.attr('multiple'); |
|
|
|
|
|
if (typeof closeSuggestionsOnSelect !== "undefined") { |
|
|