aboutsummaryrefslogtreecommitdiffstats
path: root/core/js/apps.js
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2015-08-10 13:14:15 +0200
committerVincent Petry <pvince81@owncloud.com>2015-08-10 13:14:15 +0200
commit15e16d335db5771778477e944d4e63ac807382b9 (patch)
tree597e7ea2f7adf12f257ccc78c04f90c06958aba3 /core/js/apps.js
parent214729a5524e2c406415985717c174bedc810954 (diff)
parent038d29b8def77ad906a722f72a1501b369f9c1ee (diff)
downloadnextcloud-server-15e16d335db5771778477e944d4e63ac807382b9.tar.gz
nextcloud-server-15e16d335db5771778477e944d4e63ac807382b9.zip
Merge pull request #17656 from owncloud/files-rightsidebar
Basic work for right sidebar
Diffstat (limited to 'core/js/apps.js')
-rw-r--r--core/js/apps.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/core/js/apps.js b/core/js/apps.js
index 71170bbc23a..d0d351f5147 100644
--- a/core/js/apps.js
+++ b/core/js/apps.js
@@ -21,6 +21,26 @@
};
/**
+ * Shows the #app-sidebar and add .with-app-sidebar to subsequent siblings
+ */
+ exports.Apps.showAppSidebar = function() {
+ var $appSidebar = $('#app-sidebar');
+ $appSidebar.removeClass('disappear')
+ $('#app-content').addClass('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');
+ $('#app-content').removeClass('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.