diff options
Diffstat (limited to 'core/src/OC/apps.js')
-rw-r--r-- | core/src/OC/apps.js | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/core/src/OC/apps.js b/core/src/OC/apps.js index d504a99eaac..89b7b10247e 100644 --- a/core/src/OC/apps.js +++ b/core/src/OC/apps.js @@ -34,7 +34,7 @@ const Apps = { /** * Shows the #app-sidebar and add .with-app-sidebar to subsequent siblings * - * @param {Object} [$el] sidebar element to show, defaults to $('#app-sidebar') + * @param {object} [$el] sidebar element to show, defaults to $('#app-sidebar') */ Apps.showAppSidebar = function($el) { const $appSidebar = $el || $('#app-sidebar') @@ -46,7 +46,7 @@ Apps.showAppSidebar = function($el) { * Shows the #app-sidebar and removes .with-app-sidebar from subsequent * siblings * - * @param {Object} [$el] sidebar element to hide, defaults to $('#app-sidebar') + * @param {object} [$el] sidebar element to hide, defaults to $('#app-sidebar') */ Apps.hideAppSidebar = function($el) { const $appSidebar = $el || $('#app-sidebar') @@ -81,6 +81,9 @@ export const registerAppsSlideToggle = () => { const areaSelector = $(button).data('apps-slide-toggle') const area = $(areaSelector) + /** + * + */ function hideArea() { area.slideUp(OC.menuSpeed * 4, function() { area.trigger(new $.Event('hide')) @@ -89,6 +92,9 @@ export const registerAppsSlideToggle = () => { $(button).removeClass('opened') } + /** + * + */ function showArea() { area.slideDown(OC.menuSpeed * 4, function() { area.trigger(new $.Event('show')) |