summaryrefslogtreecommitdiffstats
path: root/core/js/apps.js
diff options
context:
space:
mode:
Diffstat (limited to 'core/js/apps.js')
-rw-r--r--core/js/apps.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/js/apps.js b/core/js/apps.js
index 4daab5ce4c4..8aebbbd418c 100644
--- a/core/js/apps.js
+++ b/core/js/apps.js
@@ -78,11 +78,15 @@
area.slideUp(OC.menuSpeed*4, function() {
area.trigger(new $.Event('hide'));
});
+ area.removeClass('opened');
+ $(button).removeClass('opened');
}
function showArea() {
area.slideDown(OC.menuSpeed*4, function() {
area.trigger(new $.Event('show'));
});
+ area.addClass('opened');
+ $(button).addClass('opened');
var input = $(areaSelector + ' [autofocus]');
if (input.length === 1) {
input.focus();