Fix index.php links
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
5805159487
commit
a596b062f5
|
@ -157,7 +157,7 @@ OCA.Sharing.PublicApp = {
|
|||
imgcontainer.appendTo('#imgframe');
|
||||
}
|
||||
else if (previewSupported === 'true') {
|
||||
$('#imgframe > video').attr('poster', OC.linkTo('files_sharing', '/publicpreview/'+token) + '?' + OC.buildQueryString(params));
|
||||
$('#imgframe > video').attr('poster', OC.generateUrl(OC.linkTo('files_sharing', '/publicpreview/'+token)) + '?' + OC.buildQueryString(params));
|
||||
}
|
||||
|
||||
if (this.fileList) {
|
||||
|
@ -223,7 +223,7 @@ OCA.Sharing.PublicApp = {
|
|||
urlSpec.x = Math.ceil(urlSpec.x);
|
||||
urlSpec.y = Math.ceil(urlSpec.y);
|
||||
var token = $('#dirToken').val();
|
||||
return OC.linkTo('files_sharing', '/publicpreview/'+token) + '?' + OC.buildQueryString(urlSpec);
|
||||
return OC.generateUrl(OC.linkTo('files_sharing', '/publicpreview/'+token) + '?' + OC.buildQueryString(urlSpec));
|
||||
};
|
||||
|
||||
this.fileList.updateEmptyContent = function() {
|
||||
|
|
Loading…
Reference in New Issue