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_sharing
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_sharing')
-rw-r--r--apps/files_sharing/js/public.js4
1 files changed, 2 insertions, 2 deletions
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('(&#133;)');
ellipsis.appendTo('#imgframe');
}