diff options
author | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2016-07-29 12:08:12 +0200 |
---|---|---|
committer | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2016-07-29 12:08:12 +0200 |
commit | fe8d13c935c75f9b04eee0fbfda950f96960f2c1 (patch) | |
tree | edd78a1a47d50726fca77b5c22a378025092a5c9 /core | |
parent | 41d044cf89d8df6ed2233bd24da3469cf145760c (diff) | |
download | nextcloud-server-fe8d13c935c75f9b04eee0fbfda950f96960f2c1.tar.gz nextcloud-server-fe8d13c935c75f9b04eee0fbfda950f96960f2c1.zip |
slight animation for the sidebar for better feedback what happens
Diffstat (limited to 'core')
-rw-r--r-- | core/js/apps.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/core/js/apps.js b/core/js/apps.js index d8f4bfdf1c5..70f82ab6b45 100644 --- a/core/js/apps.js +++ b/core/js/apps.js @@ -27,9 +27,9 @@ */ exports.Apps.showAppSidebar = function($el) { var $appSidebar = $el || $('#app-sidebar'); - $appSidebar.removeClass('disappear'); + $appSidebar.removeClass('disappear') + .show('slide', { direction: 'right' }, 200); $('#app-content').addClass('with-app-sidebar').trigger(new $.Event('appresized')); - }; /** @@ -40,7 +40,10 @@ */ exports.Apps.hideAppSidebar = function($el) { var $appSidebar = $el || $('#app-sidebar'); - $appSidebar.addClass('disappear'); + $appSidebar.hide('slide', { direction: 'right' }, 100, + function() { + $appSidebar.addClass('disappear'); + }); $('#app-content').removeClass('with-app-sidebar').trigger(new $.Event('appresized')); }; |