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 /apps/files | |
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 'apps/files')
-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 |
3 files changed, 5 insertions, 5 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); |