diff options
author | Frank Karlitschek <frank@owncloud.org> | 2014-06-02 21:26:43 +0200 |
---|---|---|
committer | Frank Karlitschek <frank@owncloud.org> | 2014-06-02 21:26:43 +0200 |
commit | f12a5248a3ee4fd71ade32580afdf0455fbc6764 (patch) | |
tree | 5da750f091d84fe3c15495daca3ce999e90a187b /core/js/js.js | |
parent | c88c0b9a13231478c626296d78aac7c1f66d87d9 (diff) | |
parent | fbe42a771f433a01e54f744998593ae4cf07ed82 (diff) | |
download | nextcloud-server-f12a5248a3ee4fd71ade32580afdf0455fbc6764.tar.gz nextcloud-server-f12a5248a3ee4fd71ade32580afdf0455fbc6764.zip |
Merge pull request #8820 from owncloud/design-details
Design details
Diffstat (limited to 'core/js/js.js')
-rw-r--r-- | core/js/js.js | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/core/js/js.js b/core/js/js.js index a859034ed01..edae2912b1d 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -183,7 +183,8 @@ var OC={ appConfig: window.oc_appconfig || {}, theme: window.oc_defaults || {}, coreApps:['', 'admin','log','search','settings','core','3rdparty'], - + menuSpeed: 100, + /** * Get an absolute url to a file in an app * @param {string} app the id of the app the file belongs to @@ -531,7 +532,7 @@ var OC={ $toggle.addClass('menutoggle'); $toggle.on('click.menu', function(event) { if ($menuEl.is(OC._currentMenu)) { - $menuEl.hide(); + $menuEl.slideUp(OC.menuSpeed); OC._currentMenu = null; OC._currentMenuToggle = null; return false; @@ -541,7 +542,7 @@ var OC={ // close it OC._currentMenu.hide(); } - $menuEl.show(); + $menuEl.slideToggle(OC.menuSpeed); OC._currentMenu = $menuEl; OC._currentMenuToggle = $toggle; return false; @@ -554,7 +555,7 @@ var OC={ unregisterMenu: function($toggle, $menuEl) { // close menu if opened if ($menuEl.is(OC._currentMenu)) { - $menuEl.hide(); + $menuEl.slideUp(OC.menuSpeed); OC._currentMenu = null; OC._currentMenuToggle = null; } @@ -1068,7 +1069,7 @@ function initCore() { } }); $('#settings #expand').click(function(event) { - $('#settings #expanddiv').slideToggle(200); + $('#settings #expanddiv').slideToggle(OC.menuSpeed); event.stopPropagation(); }); $('#settings #expanddiv').click(function(event){ @@ -1076,7 +1077,7 @@ function initCore() { }); //hide the user menu when clicking outside it $(document).click(function(){ - $('#settings #expanddiv').slideUp(200); + $('#settings #expanddiv').slideUp(OC.menuSpeed); }); // all the tipsy stuff needs to be here (in reverse order) to work @@ -1097,7 +1098,7 @@ function initCore() { return false; } if (OC._currentMenu) { - OC._currentMenu.hide(); + OC._currentMenu.slideUp(OC.menuSpeed); } OC._currentMenu = null; OC._currentMenuToggle = null; |