diff options
author | Louis Chemineau <louis@chmn.me> | 2022-04-04 12:53:58 +0200 |
---|---|---|
committer | nextcloud-command <nextcloud-command@users.noreply.github.com> | 2022-04-04 17:52:44 +0000 |
commit | 4763a1263f9831ce06fbc200e2ec70f772ba735b (patch) | |
tree | 9b21021d4b2a77a7868c2cded154417ffe6c25c2 /core/src/components | |
parent | 43220c6393d6a1fca722b28c062f176968088802 (diff) | |
download | nextcloud-server-4763a1263f9831ce06fbc200e2ec70f772ba735b.tar.gz nextcloud-server-4763a1263f9831ce06fbc200e2ec70f772ba735b.zip |
Explicitly close div element
Fix: #30002
Signed-off-by: Louis Chemineau <louis@chmn.me>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Diffstat (limited to 'core/src/components')
-rw-r--r-- | core/src/components/MainMenu.js | 4 | ||||
-rw-r--r-- | core/src/components/UserMenu.js | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/core/src/components/MainMenu.js b/core/src/components/MainMenu.js index 23b75c1610e..436fd835cc3 100644 --- a/core/src/components/MainMenu.js +++ b/core/src/components/MainMenu.js @@ -77,7 +77,7 @@ export const setUp = () => { $app.find('div').remove() // prevent odd double-clicks // no need for theming, loader is already inverted on dark mode // but we need it over the primary colour - $app.prepend($('<div/>').addClass('icon-loading-small')) + $app.prepend($('<div></div>').addClass('icon-loading-small')) } else { // Close navigation when opening app in // a new tab @@ -103,7 +103,7 @@ export const setUp = () => { 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( + $app.prepend($('<div></div>').addClass( OCA.Theming && OCA.Theming.inverted ? 'icon-loading-small' : 'icon-loading-small-dark' diff --git a/core/src/components/UserMenu.js b/core/src/components/UserMenu.js index ef80eb1e338..f82a303d1fd 100644 --- a/core/src/components/UserMenu.js +++ b/core/src/components/UserMenu.js @@ -41,7 +41,7 @@ export const setUp = () => { if (!$excludedPageClasses.includes($page.attr('class'))) { $page.find('img').remove() $page.find('div').remove() // prevent odd double-clicks - $page.prepend($('<div/>').addClass('icon-loading-small')) + $page.prepend($('<div></div>').addClass('icon-loading-small')) } } else { // Close navigation when opening menu entry in |