diff options
author | Louis <6653109+artonge@users.noreply.github.com> | 2022-04-05 11:35:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-05 11:35:56 +0200 |
commit | 9c84aa5870204a871024ca18b4994ed40defdd9b (patch) | |
tree | 333c89d98c77097a96feb14ab9949dadc4839da9 /core | |
parent | 835e28d0b2cb77930567d86fc4092d8b472a3130 (diff) | |
parent | 4763a1263f9831ce06fbc200e2ec70f772ba735b (diff) | |
download | nextcloud-server-9c84aa5870204a871024ca18b4994ed40defdd9b.tar.gz nextcloud-server-9c84aa5870204a871024ca18b4994ed40defdd9b.zip |
Merge pull request #31820 from nextcloud/fix/30002
Explicitly close div element
Diffstat (limited to 'core')
-rw-r--r-- | core/src/OC/eventsource.js | 2 | ||||
-rw-r--r-- | core/src/components/MainMenu.js | 4 | ||||
-rw-r--r-- | core/src/components/UserMenu.js | 2 | ||||
-rw-r--r-- | core/src/jquery/ocdialog.js | 4 |
4 files changed, 6 insertions, 6 deletions
diff --git a/core/src/OC/eventsource.js b/core/src/OC/eventsource.js index 0a0a150cd78..537d68cb434 100644 --- a/core/src/OC/eventsource.js +++ b/core/src/OC/eventsource.js @@ -65,7 +65,7 @@ const OCEventSource = function(src, data) { } else { var iframeId = 'oc_eventsource_iframe_' + OCEventSource.iframeCount OCEventSource.fallBackSources[OCEventSource.iframeCount] = this - this.iframe = $('<iframe/>') + this.iframe = $('<iframe></iframe>') this.iframe.attr('id', iframeId) this.iframe.hide() 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 diff --git a/core/src/jquery/ocdialog.js b/core/src/jquery/ocdialog.js index 4148c16e92b..51a1c479e99 100644 --- a/core/src/jquery/ocdialog.js +++ b/core/src/jquery/ocdialog.js @@ -46,7 +46,7 @@ $.widget('oc.ocdialog', { this.originalTitle = this.element.attr('title') this.options.title = this.options.title || this.originalTitle - this.$dialog = $('<div class="oc-dialog" />') + this.$dialog = $('<div class="oc-dialog"></div>') .attr({ // Setting tabIndex makes the div focusable tabIndex: -1, @@ -133,7 +133,7 @@ $.widget('oc.ocdialog', { if (this.$buttonrow) { this.$buttonrow.empty() } else { - const $buttonrow = $('<div class="oc-dialog-buttonrow" />') + const $buttonrow = $('<div class="oc-dialog-buttonrow"></div>') this.$buttonrow = $buttonrow.appendTo(this.$dialog) } if (value.length === 1) { |