13 lines
301 B
JavaScript
13 lines
301 B
JavaScript
|
/*
|
||
|
* Expands Redmine's current menu
|
||
|
*/
|
||
|
(function($) {
|
||
|
$.menu_expand = function(options) {
|
||
|
var opts = $.extend({
|
||
|
menu: '#main-menu',
|
||
|
menuItem: '.selected'
|
||
|
}, options);
|
||
|
|
||
|
$(opts.menu +' '+ opts.menuItem).toggleClass("open").siblings("ul").show();
|
||
|
|
||
|
}})(jQuery);
|