obsolete.ChilliProject/public/javascripts/jquery.menu_expand.js

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);