summaryrefslogtreecommitdiffstats
path: root/core/js/apps.js
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2015-07-24 23:07:09 +0200
committerArthur Schiwon <blizzz@owncloud.com>2015-08-07 01:22:43 +0200
commit5af59c68712032ef387ccd4410eb4b8b04c27df9 (patch)
tree691bc9429cd0a1f5d856ddcac2ea9cbda870927a /core/js/apps.js
parentf508cf40da93eba05a17b4ffa834a125dbdb2bcb (diff)
downloadnextcloud-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.js21
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.