mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-21400 collapsible_region moved to M, using CamelCase for JS classes because it is otehrwise extremely hard to actually know what is instance and what is class + switched to js_init_call()
This commit is contained in:
parent
0503954afd
commit
38224dcb60
2 changed files with 173 additions and 173 deletions
|
@ -2125,9 +2125,7 @@ function print_collapsible_region_start($classes, $id, $caption, $userpref = fal
|
|||
$output .= '<div id="' . $id . '_caption" class="collapsibleregioncaption">';
|
||||
$output .= $caption . ' ';
|
||||
$output .= '</div><div id="' . $id . '_inner" class="collapsibleregioninner">';
|
||||
$PAGE->requires->js_function_call('new collapsible_region',
|
||||
array($id, $userpref, get_string('clicktohideshow'),
|
||||
$OUTPUT->pix_url('t/collapsed')->out(false), $OUTPUT->pix_url('t/expanded')->out(false)));
|
||||
$PAGE->requires->js_init_call('M.util.init_collapsible_region', array($id, $userpref, get_string('clicktohideshow')));
|
||||
|
||||
if ($return) {
|
||||
return $output;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue