diff options
Diffstat (limited to 'core/js')
-rw-r--r-- | core/js/apps.js | 21 | ||||
-rw-r--r-- | core/js/core.json | 1 |
2 files changed, 22 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. diff --git a/core/js/core.json b/core/js/core.json index 0f052b798a9..1053debaa99 100644 --- a/core/js/core.json +++ b/core/js/core.json @@ -20,6 +20,7 @@ "oc-dialogs.js", "js.js", "l10n.js", + "apps.js", "share.js", "octemplate.js", "eventsource.js", |