mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 02:16:41 +02:00
MDL-21400 migrated roles JS to YUI3 and new modular structure
This commit is contained in:
parent
1b4e41af17
commit
9786fbfac4
5 changed files with 138 additions and 137 deletions
|
@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue