mirror of
https://github.com/moodle/moodle.git
synced 2025-07-23 23:31:58 +02:00
navigation MDL-14632 Fixed minor JS bug
This commit is contained in:
@@ -1560,7 +1560,10 @@ M.form = M.form || {};
|
||||
* @param {Array} options
|
||||
*/
|
||||
M.form.init_smartselect = function(Y, id, options) {
|
||||
var select = Y.one('select#id_'+id);
|
||||
if (!id.match(/^id_/)) {
|
||||
id = 'id_'+id;
|
||||
}
|
||||
var select = Y.one('select#'+id);
|
||||
if (!select) {
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user