Permalink
Browse files

Merge branch 'MDL-59867-32' of git://github.com/damyon/moodle into MO…

…ODLE_32_STABLE
  • Loading branch information...
dmonllao committed Sep 12, 2017
2 parents 1b81de7 + 6961e88 commit 52155a2496b0ca67e8afac3a89a08899ddd71e51
Showing with 11 additions and 5 deletions.
  1. +1 −1 lib/amd/build/form-autocomplete.min.js
  2. +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".
*
@@ -774,11 +776,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');
var originalLabel = $('[for=' + state.selectId + ']');

0 comments on commit 52155a2

Please sign in to comment.