mirror of
https://github.com/moodle/moodle.git
synced 2025-03-19 23:20:09 +01:00
Merge branch 'MDL-78953-401' of https://github.com/pedrojordao/moodle into MOODLE_401_STABLE
This commit is contained in:
commit
8d77dd09b8
2
lib/amd/build/form-autocomplete.min.js
vendored
2
lib/amd/build/form-autocomplete.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -240,7 +240,9 @@ define([
|
||||
var selectedItemValue = $(item).attr('data-value');
|
||||
|
||||
// Preprend an empty option to the select list to avoid having a default selected option.
|
||||
originalSelect.prepend($('<option>'));
|
||||
if (originalSelect.find('option').first().attr('value') !== undefined) {
|
||||
originalSelect.prepend($('<option>'));
|
||||
}
|
||||
|
||||
// Look for a match, and toggle the selected property if there is a match.
|
||||
originalSelect.children('option').each(function(index, ele) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user