diff options
author | christophe canovas <christophecanovas66@gmail.com> | 2021-06-30 12:34:35 +0200 |
---|---|---|
committer | nextcloud-command <nextcloud-command@users.noreply.github.com> | 2022-02-15 09:57:50 +0000 |
commit | d6a9278422e6a6961b29da5955b9ce672a0a5fe9 (patch) | |
tree | 51274deb92d88e3b1e3b12cb4c91db7b4178ea67 /core/src | |
parent | ba7a31d73b34c622ed74e6aed8c1695327c2d574 (diff) | |
download | nextcloud-server-d6a9278422e6a6961b29da5955b9ce672a0a5fe9.tar.gz nextcloud-server-d6a9278422e6a6961b29da5955b9ce672a0a5fe9.zip |
Target_Blank option to open External links
Signed-off-by: christophe canovas <christophecanovas66@gmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/components/MainMenu.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/components/MainMenu.js b/core/src/components/MainMenu.js index 3b7fef6afca..23b75c1610e 100644 --- a/core/src/components/MainMenu.js +++ b/core/src/components/MainMenu.js @@ -72,7 +72,7 @@ export const setUp = () => { if (!$app.is('a')) { $app = $app.closest('a') } - if (event.which === 1 && !event.ctrlKey && !event.metaKey) { + if (event.which === 1 && !event.ctrlKey && !event.metaKey && $app.attr('target') !== '_blank') { $app.find('svg').remove() $app.find('div').remove() // prevent odd double-clicks // no need for theming, loader is already inverted on dark mode @@ -100,7 +100,7 @@ export const setUp = () => { $app = $app.closest('a') } - if (event.which === 1 && !event.ctrlKey && !event.metaKey && $app.parent('#more-apps').length === 0) { + if (event.which === 1 && !event.ctrlKey && !event.metaKey && $app.parent('#more-apps').length === 0 && $app.attr('target') !== '_blank') { $app.find('svg').remove() $app.find('div').remove() // prevent odd double-clicks $app.prepend($('<div/>').addClass( |