Merge pull request #9545 from nextcloud/bugfix/noid/ellipsis-below-public-textfiles

Remove ellipsis below public text file shares
This commit is contained in:
Morris Jobke 2018-05-22 16:33:29 +02:00 committed by GitHub
commit b40bae816a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -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({