Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorLouis Chemineau <louis@chmn.me>2022-04-04 13:53:58 +0300
committernextcloud-command <nextcloud-command@users.noreply.github.com>2022-04-04 20:52:44 +0300
commit4763a1263f9831ce06fbc200e2ec70f772ba735b (patch)
tree9b21021d4b2a77a7868c2cded154417ffe6c25c2 /core
parent43220c6393d6a1fca722b28c062f176968088802 (diff)
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')
-rw-r--r--core/src/OC/eventsource.js2
-rw-r--r--core/src/components/MainMenu.js4
-rw-r--r--core/src/components/UserMenu.js2
-rw-r--r--core/src/jquery/ocdialog.js4
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) {