From fe8d13c935c75f9b04eee0fbfda950f96960f2c1 Mon Sep 17 00:00:00 2001 From: Jan-Christoph Borchardt Date: Fri, 29 Jul 2016 12:08:12 +0200 Subject: [PATCH] slight animation for the sidebar for better feedback what happens --- core/js/apps.js | 9 ++++++--- 1 file 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')); };