summaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2019-09-10 12:09:32 +0200
committerJulius Härtl <jus@bitgrid.net>2019-09-10 12:10:04 +0200
commita8a79722668988446340d14feeca44a0121c2718 (patch)
tree7b9ef1a63ebc4120bf556be4a0e00c3cdc240d4c /core/src
parent242ed6bb0b84324406f4f207b6a0263e6d894ac7 (diff)
downloadnextcloud-server-a8a79722668988446340d14feeca44a0121c2718.tar.gz
nextcloud-server-a8a79722668988446340d14feeca44a0121c2718.zip
Fix opening apps with Ctrl+click
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'core/src')
-rw-r--r--core/src/components/MainMenu.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/core/src/components/MainMenu.js b/core/src/components/MainMenu.js
index 175438d05c6..d57711010ea 100644
--- a/core/src/components/MainMenu.js
+++ b/core/src/components/MainMenu.js
@@ -77,10 +77,6 @@ export const setUp = () => {
$app = $app.closest('a')
}
- // trigger redirect
- // needed for ie, but also works for every browser
- window.location = $app.href
-
if (event.which === 1 && !event.ctrlKey && !event.metaKey && $app.parent('#more-apps').length === 0) {
$app.find('svg').remove()
$app.find('div').remove() // prevent odd double-clicks
@@ -89,6 +85,9 @@ export const setUp = () => {
? 'icon-loading-small'
: 'icon-loading-small-dark'
))
+ // trigger redirect
+ // needed for ie, but also works for every browser
+ window.location = $app.attr('href')
} else {
// Close navigation when opening app in
// a new tab