diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2015-07-24 23:07:09 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2015-08-07 01:22:43 +0200 |
commit | 5af59c68712032ef387ccd4410eb4b8b04c27df9 (patch) | |
tree | 691bc9429cd0a1f5d856ddcac2ea9cbda870927a /core/js/apps.js | |
parent | f508cf40da93eba05a17b4ffa834a125dbdb2bcb (diff) | |
download | nextcloud-server-5af59c68712032ef387ccd4410eb4b8b04c27df9.tar.gz nextcloud-server-5af59c68712032ef387ccd4410eb4b8b04c27df9.zip |
rename sidebar element and use css and js utility functions to core
Diffstat (limited to 'core/js/apps.js')
-rw-r--r-- | core/js/apps.js | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/core/js/apps.js b/core/js/apps.js index 71170bbc23a..1606abf5971 100644 --- a/core/js/apps.js +++ b/core/js/apps.js @@ -21,6 +21,27 @@ }; /** + * Shows the #app-sidebar and add .with-app-sidebar to subsequent siblings + */ + exports.Apps.showAppSidebar = function() { + var $appSidebar = $('#app-sidebar'); + $appSidebar + .removeClass('disappear') + .find('~ .with-app-sidebar').removeClass('.with-app-sidebar'); + }; + + /** + * Shows the #app-sidebar and removes .with-app-sidebar from subsequent + * siblings + */ + exports.Apps.hideAppSidebar = function() { + var $appSidebar = $('#app-sidebar'); + $appSidebar + .addClass('disappear') + .find('~').addClass('.with-app-sidebar'); + }; + + /** * Provides a way to slide down a target area through a button and slide it * up if the user clicks somewhere else. Used for the news app settings and * add new field. |