diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-10-22 10:42:02 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-10-22 10:42:02 +0200 |
commit | 56fdb0ac939ce896e4bf89849f31787154abd221 (patch) | |
tree | 9d321c9dad94a2758acd67aaad1279dea20b0f6a /core/js/js.js | |
parent | 8ed021481848160867cbc881c439624e4f1add0c (diff) | |
parent | a0437591dbb0bcab53c5b8bc451a43ba5830c58c (diff) | |
download | nextcloud-server-56fdb0ac939ce896e4bf89849f31787154abd221.tar.gz nextcloud-server-56fdb0ac939ce896e4bf89849f31787154abd221.zip |
Merge pull request #19935 from owncloud/issue-19916-settings-menu-hide-on-file-action
Use the normal OC.menu JS for handling the Settings menu
Diffstat (limited to 'core/js/js.js')
-rw-r--r-- | core/js/js.js | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/core/js/js.js b/core/js/js.js index 3eafb3d9d6d..9daca1f8469 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -1275,23 +1275,7 @@ function initCore() { SVGSupport.checkMimeType(); } - // user menu - $('#settings #expand').keydown(function(event) { - if (event.which === 13 || event.which === 32) { - $('#expand').click(); - } - }); - $('#settings #expand').click(function(event) { - $('#settings #expanddiv').slideToggle(OC.menuSpeed); - event.stopPropagation(); - }); - $('#settings #expanddiv').click(function(event){ - event.stopPropagation(); - }); - //hide the user menu when clicking outside it - $(document).click(function(){ - $('#settings #expanddiv').slideUp(OC.menuSpeed); - }); + OC.registerMenu($('#expand'), $('#expanddiv')); // toggle for menus $(document).on('mouseup.closemenus', function(event) { @@ -1304,7 +1288,6 @@ function initCore() { OC.hideMenus(); }); - /** * Set up the main menu toggle to react to media query changes. * If the screen is small enough, the main menu becomes a toggle. |