diff options
author | Louis <6653109+artonge@users.noreply.github.com> | 2022-04-05 12:35:56 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-05 12:35:56 +0300 |
commit | 9c84aa5870204a871024ca18b4994ed40defdd9b (patch) | |
tree | 333c89d98c77097a96feb14ab9949dadc4839da9 /apps/files_sharing | |
parent | 835e28d0b2cb77930567d86fc4092d8b472a3130 (diff) | |
parent | 4763a1263f9831ce06fbc200e2ec70f772ba735b (diff) |
Merge pull request #31820 from nextcloud/fix/30002
Explicitly close div element
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'); } |