Skip to content

Commit

Permalink
MDL-21422 migration to YUI3
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Jan 21, 2010
1 parent 6e9bad5 commit 7beccff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion admin/report/capability/index.php
Expand Up @@ -38,7 +38,6 @@
}

// Include the required JavaScript.
$PAGE->requires->yui2_lib('event');
$PAGE->requires->js('/admin/report/capability/script.js');
$PAGE->requires->js_function_call('capability_report.cap_filter_init', array(get_string('search')));

Expand Down
4 changes: 2 additions & 2 deletions admin/report/capability/script.js
Expand Up @@ -27,8 +27,8 @@ capability_report = {
div.appendChild(label);
div.appendChild(input);
capability_report.select.parentNode.insertBefore(div, capability_report.select);
YAHOO.util.Event.addListener(input, 'keyup', capability_report.cap_filter_change);
YAHOO.util.Event.addListener(capability_report.select, 'change', capability_report.validate);
Y.on('keyup', capability_report.cap_filter_change, input);
Y.on('change', capability_report.validate, capability_report.select);
capability_report.select.options[0].style.display = 'none';
capability_report.validate();
},
Expand Down

0 comments on commit 7beccff

Please sign in to comment.