summaryrefslogtreecommitdiffstats
path: root/core/js/js.js
diff options
context:
space:
mode:
authorChristoph Wurst <ChristophWurst@users.noreply.github.com>2016-04-14 11:53:20 +0200
committerThomas Müller <DeepDiver1975@users.noreply.github.com>2016-04-14 11:53:20 +0200
commit97d553b57ae5f612f9e9ceda73453712411dd723 (patch)
tree6b81844ac0d601cfac779eba2b64dc6b79a4c06c /core/js/js.js
parenta2572ffec79f7bd2fa7aa29ed48d9b011836759d (diff)
downloadnextcloud-server-97d553b57ae5f612f9e9ceda73453712411dd723.tar.gz
nextcloud-server-97d553b57ae5f612f9e9ceda73453712411dd723.zip
close navigation menu when opening app in new tab (#23914)
Diffstat (limited to 'core/js/js.js')
-rw-r--r--core/js/js.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/js/js.js b/core/js/js.js
index d06986dac23..188c15c5db5 100644
--- a/core/js/js.js
+++ b/core/js/js.js
@@ -1553,6 +1553,10 @@ function initCore() {
}
if(!event.ctrlKey) {
$app.addClass('app-loading');
+ } else {
+ // Close navigation when opening app in
+ // a new tab
+ OC.hideMenus();
}
});
}