]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix opening apps with Ctrl+click 17103/head
authorJulius Härtl <jus@bitgrid.net>
Tue, 10 Sep 2019 10:09:32 +0000 (12:09 +0200)
committerJulius Härtl <jus@bitgrid.net>
Thu, 12 Sep 2019 13:29:20 +0000 (15:29 +0200)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
core/js/js.js

index 0d434722c6064589cc10b35bf367b53236814990..57afcdaa68a83d8d1de0a72d9c9d530eddf61067 100644 (file)
@@ -1063,9 +1063,6 @@ function initCore() {
                                $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();
@@ -1075,6 +1072,9 @@ function initCore() {
                                                ? '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