summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/js
diff options
context:
space:
mode:
authorOlivier Paroz <github@oparoz.com>2015-04-23 18:15:11 +0200
committerOlivier Paroz <github@oparoz.com>2015-04-23 18:19:34 +0200
commit0729fc2fbc46880901c0bbbab7985b0a14fb2a03 (patch)
treea9cf5518c28f999f7cd46b7a07acea9a7c513dbb /apps/files_sharing/js
parent58a87d0babcb91aab75b45e630d2fc2fee15691e (diff)
downloadnextcloud-server-0729fc2fbc46880901c0bbbab7985b0a14fb2a03.tar.gz
nextcloud-server-0729fc2fbc46880901c0bbbab7985b0a14fb2a03.zip
Remove overflow+watermark
Diffstat (limited to 'apps/files_sharing/js')
-rw-r--r--apps/files_sharing/js/public.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/apps/files_sharing/js/public.js b/apps/files_sharing/js/public.js
index cf049411c9b..79bd0bb0c47 100644
--- a/apps/files_sharing/js/public.js
+++ b/apps/files_sharing/js/public.js
@@ -232,15 +232,13 @@ OCA.Sharing.PublicApp = {
textDiv.appendTo('#imgframe');
var divHeight = textDiv.height();
if (data.length > 999) {
- textDiv.append('</br></br><strong>(&#133;)</strong>');
- divHeight += 50;
+ var ellipsis = $('<div/>').addClass('ellipsis');
+ ellipsis.html('(&#133;)');
+ ellipsis.appendTo('#imgframe');
}
if (divHeight > previewHeight) {
textDiv.height(previewHeight);
}
- var watermark = $('<div/>').addClass('watermark');
- watermark.text('SAMPLE');
- watermark.appendTo('#imgframe');
},
_onDirectoryChanged: function (e) {