mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
Merge branch 'wip-mdl-37015' of git://github.com/rajeshtaneja/moodle
This commit is contained in:
commit
486c53f25c
@ -1516,8 +1516,9 @@ function print_section($course, $section, $mods, $modnamesused, $absolute=false,
|
||||
$textcss = '';
|
||||
}
|
||||
|
||||
// Get on-click attribute value if specified
|
||||
$onclick = $mod->get_on_click();
|
||||
// Get on-click attribute value if specified and decode the onclick - it
|
||||
// has already been encoded for display (puke).
|
||||
$onclick = htmlspecialchars_decode($mod->get_on_click(), ENT_QUOTES);
|
||||
|
||||
$groupinglabel = '';
|
||||
if (!empty($mod->groupingid) && has_capability('moodle/course:managegroups', context_course::instance($course->id))) {
|
||||
|
@ -1922,7 +1922,7 @@ class global_navigation extends navigation_node {
|
||||
$propogrationhandler = 'e.halt();';
|
||||
}
|
||||
// Decode the onclick - it has already been encoded for display (puke)
|
||||
$onclick = htmlspecialchars_decode($activity->onclick);
|
||||
$onclick = htmlspecialchars_decode($activity->onclick, ENT_QUOTES);
|
||||
// Build the JS function the click event will call
|
||||
$jscode = "function {$functionname}(e) { $propogrationhandler $onclick }";
|
||||
$this->page->requires->js_init_code($jscode);
|
||||
|
Loading…
x
Reference in New Issue
Block a user