diff options
author | raghunayyar <me@iraghu.com> | 2014-04-20 12:59:13 +0530 |
---|---|---|
committer | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2014-06-02 15:30:39 +0200 |
commit | 72ba396905acca84a9e0ba4d08649aebcd713de0 (patch) | |
tree | af5584422f59cc8d44c4e14288ade7662fb077a2 /core | |
parent | 16e81c1d376dc1c75ad958b12f263c26db06e185 (diff) | |
download | nextcloud-server-72ba396905acca84a9e0ba4d08649aebcd713de0.tar.gz nextcloud-server-72ba396905acca84a9e0ba4d08649aebcd713de0.zip |
Adds Animation to Toggling Navigation on < 768px widths
Diffstat (limited to 'core')
-rw-r--r-- | core/js/js.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/js/js.js b/core/js/js.js index 21a2d4c1b35..e1d7986f01e 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -531,7 +531,7 @@ var OC={ $toggle.addClass('menutoggle'); $toggle.on('click.menu', function(event) { if ($menuEl.is(OC._currentMenu)) { - $menuEl.hide(); + $menuEl.slideUp(200); OC._currentMenu = null; OC._currentMenuToggle = null; return false; @@ -541,7 +541,7 @@ var OC={ // close it OC._currentMenu.hide(); } - $menuEl.show(); + $menuEl.slideToggle(200); OC._currentMenu = $menuEl; OC._currentMenuToggle = $toggle; return false; @@ -554,7 +554,7 @@ var OC={ unregisterMenu: function($toggle, $menuEl) { // close menu if opened if ($menuEl.is(OC._currentMenu)) { - $menuEl.hide(); + $menuEl.slideUp(200); OC._currentMenu = null; OC._currentMenuToggle = null; } @@ -1097,7 +1097,7 @@ function initCore() { return false; } if (OC._currentMenu) { - OC._currentMenu.hide(); + OC._currentMenu.slideUp(200); } OC._currentMenu = null; OC._currentMenuToggle = null; |