diff options
author | Vincent Petry <pvince81@owncloud.com> | 2015-08-25 14:57:41 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2015-08-25 14:57:41 +0200 |
commit | 1dc9283413dd5547d6b2080efbd33e0ce1f383d3 (patch) | |
tree | f26faf2632c8bb2fe4ad965492bf07aead02bb30 /core/js | |
parent | 494c1d741798874c865b76fcf6918c978f944257 (diff) | |
parent | 010c03fc30a6d5d1765889431905dc415d289018 (diff) | |
download | nextcloud-server-1dc9283413dd5547d6b2080efbd33e0ce1f383d3.tar.gz nextcloud-server-1dc9283413dd5547d6b2080efbd33e0ce1f383d3.zip |
Merge pull request #18538 from owncloud/sidebar-improvements
Fix sidebar for trashbin and others
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 d0d351f5147..f148de3b2e9 100644 --- a/core/js/apps.js +++ b/core/js/apps.js @@ -22,9 +22,11 @@ /** * Shows the #app-sidebar and add .with-app-sidebar to subsequent siblings + * + * @param {Object} [$el] sidebar element to show, defaults to $('#app-sidebar') */ - exports.Apps.showAppSidebar = function() { - var $appSidebar = $('#app-sidebar'); + exports.Apps.showAppSidebar = function($el) { + var $appSidebar = $el || $('#app-sidebar'); $appSidebar.removeClass('disappear') $('#app-content').addClass('with-app-sidebar'); @@ -33,9 +35,11 @@ /** * Shows the #app-sidebar and removes .with-app-sidebar from subsequent * siblings + * + * @param {Object} [$el] sidebar element to hide, defaults to $('#app-sidebar') */ - exports.Apps.hideAppSidebar = function() { - var $appSidebar = $('#app-sidebar'); + exports.Apps.hideAppSidebar = function($el) { + var $appSidebar = $el || $('#app-sidebar'); $appSidebar.addClass('disappear'); $('#app-content').removeClass('with-app-sidebar'); }; |