mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 12:32:08 +02:00
Merge branch 'MDL-57417-master' of https://github.com/snake/moodle
This commit is contained in:
commit
79be02bf8d
@ -2104,7 +2104,7 @@ class global_navigation extends navigation_node {
|
||||
$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);
|
||||
$this->page->requires->js_amd_inline($jscode);
|
||||
// Override the default url with the new action link
|
||||
$action = new action_link($action, $activityname, new component_action('click', $functionname));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user