summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/js
diff options
context:
space:
mode:
authorOlivier Paroz <github@oparoz.com>2015-04-18 22:11:36 +0200
committerOlivier Paroz <github@oparoz.com>2015-04-23 18:19:21 +0200
commita968877a8b0454861dc27b763023ce52429a39dc (patch)
treebe4016f06aa0d274045002fe1459a8b330d24c94 /apps/files_sharing/js
parent530c290555cb326e6a6bda867e16931ff4ae7df5 (diff)
downloadnextcloud-server-a968877a8b0454861dc27b763023ce52429a39dc.tar.gz
nextcloud-server-a968877a8b0454861dc27b763023ce52429a39dc.zip
An idea to suggest that this is just a sample of the full text
Diffstat (limited to 'apps/files_sharing/js')
-rw-r--r--apps/files_sharing/js/public.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/files_sharing/js/public.js b/apps/files_sharing/js/public.js
index f80d5e15de9..c08b7c7859c 100644
--- a/apps/files_sharing/js/public.js
+++ b/apps/files_sharing/js/public.js
@@ -118,7 +118,7 @@ OCA.Sharing.PublicApp = {
url: url,
headers: {Range: "bytes=0-1000"}
}).then(function (data) {
- var textDiv = $('<span/>').addClass('text-preview');
+ var textDiv = $('<div/>').addClass('text-preview');
textDiv.text(data);
textDiv.appendTo('#imgframe');
var divHeight = textDiv.height();
@@ -129,6 +129,9 @@ OCA.Sharing.PublicApp = {
if (divHeight > previewHeight) {
textDiv.height(previewHeight);
}
+ var watermark = $('<div/>').addClass('watermark');
+ watermark.text('SAMPLE');
+ watermark.appendTo('#imgframe');
});
} else if (previewSupported === 'true' ||
mimetype.substr(0, mimetype.indexOf('/')) === 'image' &&