diff options
author | Louis Chemineau <louis@chmn.me> | 2022-04-04 13:53:58 +0300 |
---|---|---|
committer | nextcloud-command <nextcloud-command@users.noreply.github.com> | 2022-04-04 20:52:44 +0300 |
commit | 4763a1263f9831ce06fbc200e2ec70f772ba735b (patch) | |
tree | 9b21021d4b2a77a7868c2cded154417ffe6c25c2 /apps | |
parent | 43220c6393d6a1fca722b28c062f176968088802 (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 'apps')
-rw-r--r-- | apps/files/js/fileactions.js | 2 | ||||
-rw-r--r-- | apps/files/js/files.js | 6 | ||||
-rw-r--r-- | apps/files/js/sidebarpreviewtext.js | 2 | ||||
-rw-r--r-- | apps/files_external/js/settings.js | 2 | ||||
-rw-r--r-- | apps/files_sharing/js/public.js | 4 |
5 files changed, 8 insertions, 8 deletions
diff --git a/apps/files/js/fileactions.js b/apps/files/js/fileactions.js index 505ab21c10c..8790eae9c98 100644 --- a/apps/files/js/fileactions.js +++ b/apps/files/js/fileactions.js @@ -557,7 +557,7 @@ // recreate fileactions container nameLinks = parent.children('a.name'); nameLinks.find('.fileactions, .nametext .action').remove(); - nameLinks.append('<span class="fileactions" />'); + nameLinks.append('<span class="fileactions"></span>'); var defaultAction = this.getDefaultFileAction( this.getCurrentMimeType(), this.getCurrentType(), diff --git a/apps/files/js/files.js b/apps/files/js/files.js index 03778fb92f9..ae247584682 100644 --- a/apps/files/js/files.js +++ b/apps/files/js/files.js @@ -422,12 +422,12 @@ var createDragShadow = function(event) { $(selectedFiles).each(function(i,elem) { // TODO: refactor this with the table row creation code - var newtr = $('<tr/>') + var newtr = $('<tr></tr>') .attr('data-dir', dir) .attr('data-file', elem.name) .attr('data-origin', elem.origin); - newtr.append($('<td class="filename" />').text(elem.name).css('background-size', 32)); - newtr.append($('<td class="size" />').text(OC.Util.humanFileSize(elem.size))); + newtr.append($('<td class="filename"></td>').text(elem.name).css('background-size', 32)); + newtr.append($('<td class="size"></td>').text(OC.Util.humanFileSize(elem.size))); tbody.append(newtr); if (elem.type === 'dir') { newtr.find('td.filename') diff --git a/apps/files/js/sidebarpreviewtext.js b/apps/files/js/sidebarpreviewtext.js index 3053cd6945d..f786a9a3e4d 100644 --- a/apps/files/js/sidebarpreviewtext.js +++ b/apps/files/js/sidebarpreviewtext.js @@ -25,7 +25,7 @@ $thumbnailDiv.removeClass('icon-loading icon-32'); $thumbnailContainer.addClass('large'); $thumbnailContainer.addClass('text'); - var $textPreview = $('<pre/>').text(content); + var $textPreview = $('<pre></pre>').text(content); $thumbnailDiv.children('.stretcher').remove(); $thumbnailDiv.append($textPreview); $thumbnailContainer.css("max-height", previewHeight); diff --git a/apps/files_external/js/settings.js b/apps/files_external/js/settings.js index 01c2c3bc953..46092d57e67 100644 --- a/apps/files_external/js/settings.js +++ b/apps/files_external/js/settings.js @@ -141,7 +141,7 @@ function addSelect2 ($elements, userListLimit) { return element.name; }, formatResult: function (element) { - var $result = $('<span><div class="avatardiv"/><span>'+escapeHTML(element.displayname)+'</span></span>'); + var $result = $('<span><div class="avatardiv"></div><span>'+escapeHTML(element.displayname)+'</span></span>'); var $div = $result.find('.avatardiv') .attr('data-type', element.type) .attr('data-name', element.name) diff --git a/apps/files_sharing/js/public.js b/apps/files_sharing/js/public.js index 6b063896b7f..bfb035fb817 100644 --- a/apps/files_sharing/js/public.js +++ b/apps/files_sharing/js/public.js @@ -355,12 +355,12 @@ OCA.Sharing.PublicApp = { }, _showTextPreview: function (data, previewHeight) { - var textDiv = $('<div/>').addClass('text-preview'); + var textDiv = $('<div></div>').addClass('text-preview'); textDiv.text(data); textDiv.appendTo('#imgframe'); var divHeight = textDiv.height(); if (data.length > 999) { - var ellipsis = $('<div/>').addClass('ellipsis'); + var ellipsis = $('<div></div>').addClass('ellipsis'); ellipsis.html('(…)'); ellipsis.appendTo('#imgframe'); } |