Skip to content

Commit

Permalink
MDL-34741 use 2in3 in forms
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Aug 11, 2012
1 parent e3c1d65 commit 1a59e71
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/form/searchableselector.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
1 change: 0 additions & 1 deletion lib/form/searchableselector.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ function toHtml(){
} 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')));

Expand Down

0 comments on commit 1a59e71

Please sign in to comment.