mirror of
https://github.com/moodle/moodle.git
synced 2025-07-23 23:31:58 +02:00
navigation MDL-22398 Fixed module declaration for custom menu that was reincluding javascript-static
This commit is contained in:
@@ -1531,11 +1531,13 @@ M.core_custom_menu = {
|
||||
* @param {string} nodeid
|
||||
*/
|
||||
init : function(Y, nodeid) {
|
||||
// Get the node
|
||||
var node = Y.one('#'+nodeid);
|
||||
// Remove the javascript-disabled class.... obviously javascript is enabled.
|
||||
node.removeClass('javascript-disabled');
|
||||
// Initialise the menunav plugin
|
||||
node.plug(Y.Plugin.NodeMenuNav);
|
||||
Y.use('node-menunav', function(Y) {
|
||||
// Get the node
|
||||
var node = Y.one('#'+nodeid);
|
||||
// Remove the javascript-disabled class.... obviously javascript is enabled.
|
||||
node.removeClass('javascript-disabled');
|
||||
// Initialise the menunav plugin
|
||||
node.plug(Y.Plugin.NodeMenuNav);
|
||||
});
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user