diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-07-21 13:28:23 +0200 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2018-07-21 16:09:13 +0200 |
commit | da0bdd1391d86046662e3e3cee046a48ffb58d22 (patch) | |
tree | db9dc892d6bf39c20eba2760e924424cacb42312 /core/js | |
parent | 58debbe42c16ee4ab7d36ffc91a53ae953c09021 (diff) | |
download | nextcloud-server-da0bdd1391d86046662e3e3cee046a48ffb58d22.tar.gz nextcloud-server-da0bdd1391d86046662e3e3cee046a48ffb58d22.zip |
Design structure fixes
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'core/js')
-rw-r--r-- | core/js/apps.js | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/core/js/apps.js b/core/js/apps.js index b40883e88cf..473fec313a1 100644 --- a/core/js/apps.js +++ b/core/js/apps.js @@ -27,8 +27,9 @@ */ exports.Apps.showAppSidebar = function($el) { var $appSidebar = $el || $('#app-sidebar'); - $appSidebar.removeClass('disappear'); - $('#content').addClass('with-app-sidebar').trigger(new $.Event('appresized')); + $appSidebar.removeClass('disappear') + .show('slide', { direction: 'right' }, 300); + $('#app-content').trigger(new $.Event('appresized')); }; /** @@ -39,8 +40,11 @@ */ exports.Apps.hideAppSidebar = function($el) { var $appSidebar = $el || $('#app-sidebar'); - $appSidebar.addClass('disappear'); - $('#content').removeClass('with-app-sidebar').trigger(new $.Event('appresized')); + $appSidebar.hide('slide', { direction: 'right' }, 300, + function() { + $appSidebar.addClass('disappear'); + }); + $('#app-content').trigger(new $.Event('appresized')); }; /** |