Closed david-nguyen closed 10 years ago
Thanks for the script, I've modified it to add a after call once the menu was closed :)
Modify constructor LN42
this.before = this.options.before || this.before this.onItem = this.options.onItem || this.onItem this.after = this.options.after || this.after
Modify closemenu LN79
,closemenu: function(e) { if(this.getMenu().hasClass('open')) this.after(); this.getMenu().removeClass('open'); }
Add default after function LN92
,after: function(e) { return true; }
Add to clearMenus LN170
,clearMenus: function(e) { if (!e.ctrlKey) { $('[data-toggle=context]').each(function() { if(this.getMenu().hasClass('open')) this.after(); this.getMenu() .removeClass('open'); }); } }
Thanks could you make a pull request please.
Thanks for the script, I've modified it to add a after call once the menu was closed :)
Modify constructor LN42
Modify closemenu LN79
Add default after function LN92
Add to clearMenus LN170