From: Sven Schöling Date: Tue, 21 Feb 2012 15:54:44 +0000 (+0100) Subject: Bei Klick auf Menüpunkt und in den header auch den State resetten. X-Git-Tag: release-2.7.0rc1~11 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=28428900f3d2c1aabc7fad060b6d9d7cdf6d9f9b;p=kivitendo-erp.git Bei Klick auf Menüpunkt und in den header auch den State resetten. --- diff --git a/js/dhtmlsuite/menu-for-applications.js b/js/dhtmlsuite/menu-for-applications.js index 2353dd336..7896f917b 100644 --- a/js/dhtmlsuite/menu-for-applications.js +++ b/js/dhtmlsuite/menu-for-applications.js @@ -2335,6 +2335,7 @@ DHTMLSuite.menuBar.prototype = { } // }}} , + unsetMenuBarState : function() { this.menuBarState = false }, // {{{ __setBasicEvents() /** * Set basic events for the menu widget. @@ -2346,6 +2347,7 @@ DHTMLSuite.menuBar.prototype = { { DHTMLSuite.commonObj.addEvent(document.documentElement,"click",this.hideSubMenus); var menu = this; + $(document).mousedown(function(){ menu.unsetMenuBarState(); }); $('#win1').load(function(){ $('#win1').contents().mousedown(function(){ menu.hideSubMenus();