Bei Klick auf Menüpunkt und in den header auch den State resetten.
authorSven Schöling <s.schoeling@linet-services.de>
Tue, 21 Feb 2012 15:54:44 +0000 (16:54 +0100)
committerSven Schöling <s.schoeling@linet-services.de>
Tue, 21 Feb 2012 15:54:44 +0000 (16:54 +0100)
js/dhtmlsuite/menu-for-applications.js

index 2353dd3..7896f91 100644 (file)
@@ -2335,6 +2335,7 @@ DHTMLSuite.menuBar.prototype = {
        }\r
        // }}}  \r
        ,\r
+    unsetMenuBarState : function() { this.menuBarState = false },\r
        // {{{ __setBasicEvents()\r
     /**\r
      * Set basic events for the menu widget.\r
@@ -2346,6 +2347,7 @@ DHTMLSuite.menuBar.prototype = {
        {\r
                DHTMLSuite.commonObj.addEvent(document.documentElement,"click",this.hideSubMenus);              \r
         var menu = this;\r
+        $(document).mousedown(function(){ menu.unsetMenuBarState(); });\r
         $('#win1').load(function(){\r
             $('#win1').contents().mousedown(function(){\r
                 menu.hideSubMenus();\r