Merge branch 'wip-mdl-37015-m24' of git://github.com/rajeshtaneja/moodle into MOODLE_24_STABLE
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user