Remove ellipsis below public text file shares
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
parent
9f064b08b3
commit
8c043dd00d
|
@ -132,6 +132,10 @@ OCA.Sharing.PublicApp = {
|
||||||
img.attr('src', $('#downloadURL').val());
|
img.attr('src', $('#downloadURL').val());
|
||||||
imgcontainer.appendTo('#imgframe');
|
imgcontainer.appendTo('#imgframe');
|
||||||
} else if (mimetype.substr(0, mimetype.indexOf('/')) === 'text' && window.btoa) {
|
} 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
|
// Undocumented Url to public WebDAV endpoint
|
||||||
var url = parent.location.protocol + '//' + location.host + OC.linkTo('', 'public.php/webdav');
|
var url = parent.location.protocol + '//' + location.host + OC.linkTo('', 'public.php/webdav');
|
||||||
$.ajax({
|
$.ajax({
|
||||||
|
|
Loading…
Reference in New Issue