Append instance id to rev history
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
This commit is contained in:
parent
43ffbf2e97
commit
9cd9258dbb
@ -119,7 +119,7 @@ var documentsMain = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// WOPISrc - URL that loolwsd will access (ie. pointing to ownCloud)
|
// WOPISrc - URL that loolwsd will access (ie. pointing to ownCloud)
|
||||||
var wopiurl = window.location.protocol + '//' + window.location.host + OC.generateUrl('apps/richdocuments/wopi/files/{file_id}', {file_id: fileId});
|
var wopiurl = window.location.protocol + '//' + window.location.host + OC.generateUrl('apps/richdocuments/wopi/files/{file_id}_{instanceId}', {file_id: fileId, instanceId: instanceId});
|
||||||
var wopisrc = encodeURIComponent(wopiurl);
|
var wopisrc = encodeURIComponent(wopiurl);
|
||||||
|
|
||||||
// urlsrc - the URL from discovery xml that we access for the particular
|
// urlsrc - the URL from discovery xml that we access for the particular
|
||||||
|
@ -108,6 +108,7 @@ class DocumentController extends Controller {
|
|||||||
'token' => $token,
|
'token' => $token,
|
||||||
'urlsrc' => $urlSrc,
|
'urlsrc' => $urlSrc,
|
||||||
'path' => '/',
|
'path' => '/',
|
||||||
|
'instanceId' => $this->settings->getSystemValue('instanceid'),
|
||||||
];
|
];
|
||||||
|
|
||||||
$response = new TemplateResponse('richdocuments', 'documents', $params, 'empty');
|
$response = new TemplateResponse('richdocuments', 'documents', $params, 'empty');
|
||||||
@ -157,6 +158,7 @@ class DocumentController extends Controller {
|
|||||||
'token' => $token,
|
'token' => $token,
|
||||||
'urlsrc' => $urlSrc,
|
'urlsrc' => $urlSrc,
|
||||||
'path' => '/',
|
'path' => '/',
|
||||||
|
'instanceId' => $this->settings->getSystemValue('instanceid'),
|
||||||
];
|
];
|
||||||
|
|
||||||
$response = new TemplateResponse('richdocuments', 'documents', $params, 'empty');
|
$response = new TemplateResponse('richdocuments', 'documents', $params, 'empty');
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
var richdocuments_token = '<?php p($_['token']) ?>';
|
var richdocuments_token = '<?php p($_['token']) ?>';
|
||||||
var richdocuments_urlsrc = '<?php p($_['urlsrc']) ?>';
|
var richdocuments_urlsrc = '<?php p($_['urlsrc']) ?>';
|
||||||
var richdocuments_path = '<?php p($_['path']) ?>';
|
var richdocuments_path = '<?php p($_['path']) ?>';
|
||||||
|
var instanceId = '<?php p($_['instanceId']) ?>';
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
Loading…
x
Reference in New Issue
Block a user