MDL-21400 migrated roles JS to YUI3 and new modular structure

This commit is contained in:
Petr Skoda 2010-01-24 19:37:46 +00:00
parent 1b4e41af17
commit 9786fbfac4
5 changed files with 138 additions and 137 deletions

View file

@ -121,11 +121,8 @@ abstract class capability_table_base {
/// End of the table.
echo "</tbody>\n</table>\n";
if (count($this->capabilities) > capability_table_base::NUM_CAPS_FOR_SEARCH) {
global $CFG, $PAGE;
$PAGE->requires->yui2_lib('dom-event');
$PAGE->requires->js('/admin/roles/roles.js');
$PAGE->requires->js_function_call('cap_table_filter.init',
array($this->id, get_string('filter'), get_string('clear')));
global $PAGE;
$PAGE->requires->js_init_call('M.core_role.init_cap_table_filter', array($this->id, get_string('filter'), get_string('clear')), 'core_role');
}
}