mirror of
https://github.com/moodle/moodle.git
synced 2025-04-19 07:25:30 +02:00
MDL-34741 use 2in3 in forms
This commit is contained in:
parent
e3c1d655f8
commit
1a59e7151a
@ -50,7 +50,9 @@ selector = {
|
||||
div.appendChild(label);
|
||||
div.appendChild(input);
|
||||
selector.select.parentNode.insertBefore(div, selector.select);
|
||||
YAHOO.util.Event.addListener(input, 'keyup', selector.filter_change);
|
||||
YUI().use('yui2-event', function(Y) {
|
||||
Y.YUI2.util.Event.addListener(input, 'keyup', selector.filter_change);
|
||||
});
|
||||
},
|
||||
|
||||
filter_change: function() {
|
||||
|
@ -69,7 +69,6 @@ class MoodleQuickForm_searchableselector extends MoodleQuickForm_select{
|
||||
} else {
|
||||
// Javascript for the search/selection fields
|
||||
global $PAGE;
|
||||
$PAGE->requires->yui2_lib('event');
|
||||
$PAGE->requires->js('/lib/form/searchableselector.js');
|
||||
$PAGE->requires->js_function_call('selector.filter_init', array(get_string('search'),$this->getAttribute('id')));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user