diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-05-22 15:14:23 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2018-05-22 15:14:23 +0200 |
commit | 8c043dd00dec07c9b8c593a7408455bb81385535 (patch) | |
tree | 3b29c47c80078abd128b810c7df98cc71981733d /apps | |
parent | 9f064b08b3df4817d3c2fdc608a708827df8b0ae (diff) | |
download | nextcloud-server-8c043dd00dec07c9b8c593a7408455bb81385535.tar.gz nextcloud-server-8c043dd00dec07c9b8c593a7408455bb81385535.zip |
Remove ellipsis below public text file shares
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/js/public.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/files_sharing/js/public.js b/apps/files_sharing/js/public.js index 33d8da09166..1de7c6b4fcd 100644 --- a/apps/files_sharing/js/public.js +++ b/apps/files_sharing/js/public.js @@ -132,6 +132,10 @@ OCA.Sharing.PublicApp = { img.attr('src', $('#downloadURL').val()); imgcontainer.appendTo('#imgframe'); } else if (mimetype.substr(0, mimetype.indexOf('/')) === 'text' && window.btoa) { + if (oc_appswebroots['files_texteditor'] !== undefined) { + // the text editor handles the previewing + return; + } // Undocumented Url to public WebDAV endpoint var url = parent.location.protocol + '//' + location.host + OC.linkTo('', 'public.php/webdav'); $.ajax({ |