Merge pull request #17103 from nextcloud/backport/stable16/17086

[stable16] Fix opening apps with Ctrl+click
This commit is contained in:
Roeland Jago Douma 2019-09-15 10:20:13 +02:00 committed by GitHub
commit e0737b7816
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View 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