Compare commits

...

2 Commits

Author SHA1 Message Date
Simon Vieille baa2a0748e fix links that must be opened in new window 2020-10-13 14:32:15 +02:00
Simon Vieille 5b5daa92b9 remove useless call 2020-10-13 13:26:08 +02:00
3 changed files with 22 additions and 2 deletions
+22
View File
@@ -108,6 +108,28 @@ var updateTopMenu = function() {
k++ k++
}) })
// Hack for https://github.com/nextcloud/server/blob/23b0b63c213f5b31eecae817ffd4a9e26f6624d0/core/src/components/MainMenu.js#L74-L96
menu.undelegate('li:not(#more-apps) > a', 'click')
menu.delegate('li:not(#more-apps) > a', 'click', function(e) {
var a = $(e.target)
if (!a.is('a')) {
a = a.closest('a')
}
if (a.attr('target') !== '_blank' && e.which === 1 && !e.ctrlKey && !e.metaKey && a.parent('#more-apps').length === 0) {
a.find('svg').remove()
a.find('div').remove()
a.prepend(jQuery('<div/>').addClass(
OCA.Theming && OCA.Theming.inverted
? 'icon-loading-small'
: 'icon-loading-small-dark'
))
window.location.href = a.attr('href')
}
})
jQuery('#apps li.app-external-site').each(function(i, app) { jQuery('#apps li.app-external-site').each(function(i, app) {
app = jQuery(app) app = jQuery(app)
var appId = app.attr('data-id') var appId = app.attr('data-id')
-1
View File
@@ -18,7 +18,6 @@
script('side_menu', 'admin'); script('side_menu', 'admin');
style('side_menu', 'admin'); style('side_menu', 'admin');
style('side_menu', 'support');
$choicesYesNo = [ $choicesYesNo = [
'No' => '0', 'No' => '0',
-1
View File
@@ -18,7 +18,6 @@
script('side_menu', 'admin'); script('side_menu', 'admin');
style('side_menu', 'admin'); style('side_menu', 'admin');
style('side_menu', 'support');
$choicesYesNo = [ $choicesYesNo = [
'No' => '0', 'No' => '0',