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
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 /apps/files/js
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 'apps/files/js')
-rw-r--r--apps/files/js/fileactions.js2
-rw-r--r--apps/files/js/files.js6
-rw-r--r--apps/files/js/sidebarpreviewtext.js2
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);