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

13 lines
301 B
JavaScript
Raw Normal View History

2011-03-06 06:12:13 +03:00
/*
* 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);