You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by hn...@apache.org on 2017/06/27 14:19:14 UTC

svn commit: r1800065 - /myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/META-INF/resources/tobago/standard/tobago-bootstrap/_version/js/tobago-dropdown.js

Author: hnoeth
Date: Tue Jun 27 14:19:14 2017
New Revision: 1800065

URL: http://svn.apache.org/viewvc?rev=1800065&view=rev
Log:
TOBAGO-1761 Append dropdownmenus to tobago-page-menuStore
* fix: mousedown on dropdown item, move cursor away from menu, mouseup

Modified:
    myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/META-INF/resources/tobago/standard/tobago-bootstrap/_version/js/tobago-dropdown.js

Modified: myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/META-INF/resources/tobago/standard/tobago-bootstrap/_version/js/tobago-dropdown.js
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/META-INF/resources/tobago/standard/tobago-bootstrap/_version/js/tobago-dropdown.js?rev=1800065&r1=1800064&r2=1800065&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/META-INF/resources/tobago/standard/tobago-bootstrap/_version/js/tobago-dropdown.js (original)
+++ myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/resources/META-INF/resources/tobago/standard/tobago-bootstrap/_version/js/tobago-dropdown.js Tue Jun 27 14:19:14 2017
@@ -52,6 +52,13 @@ Tobago.Dropdown.init = function (element
       };
 
       $parent.on('shown.bs.dropdown', showDropdown).on('hidden.bs.dropdown', hideDropdown);
+
+      jQuery(document).on('mouseup', function (event) {
+        // fix: mousedown on dropdown item, move cursor away from menu, mouseup
+        if (!$parent.hasClass("show")) {
+          $dropdownMenu.css("display", "");
+        }
+      });
     }
   });
 };