diff options
author | Louis Chemineau <louis@chmn.me> | 2022-04-04 12:53:58 +0200 |
---|---|---|
committer | nextcloud-command <nextcloud-command@users.noreply.github.com> | 2022-04-04 17:52:44 +0000 |
commit | 4763a1263f9831ce06fbc200e2ec70f772ba735b (patch) | |
tree | 9b21021d4b2a77a7868c2cded154417ffe6c25c2 /apps/files_sharing | |
parent | 43220c6393d6a1fca722b28c062f176968088802 (diff) | |
download | nextcloud-server-4763a1263f9831ce06fbc200e2ec70f772ba735b.tar.gz nextcloud-server-4763a1263f9831ce06fbc200e2ec70f772ba735b.zip |
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.js | 4 |
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('(…)'); ellipsis.appendTo('#imgframe'); } |