Small improvement in the documentation.
This commit is contained in:
parent
f2974bd618
commit
b48ae81a99
@ -194,8 +194,10 @@ var documentsMain = {
|
|||||||
var wopiurl = window.location.protocol + '//' + window.location.host + OC.generateUrl('apps/richdocuments/wopi/files/{file_id}', {file_id: documentsMain.fileId});
|
var wopiurl = window.location.protocol + '//' + window.location.host + OC.generateUrl('apps/richdocuments/wopi/files/{file_id}', {file_id: documentsMain.fileId});
|
||||||
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
|
||||||
// document; we add various parameters to that
|
// document; we add various parameters to that.
|
||||||
|
// The discovery is available at
|
||||||
|
// https://<loolwsd-server>:9980/hosting/discovery
|
||||||
var urlsrc = $('li[data-id='+ documentsMain.fileId +']>a').attr('urlsrc') +
|
var urlsrc = $('li[data-id='+ documentsMain.fileId +']>a').attr('urlsrc') +
|
||||||
"WOPISrc=" + wopisrc +
|
"WOPISrc=" + wopisrc +
|
||||||
"&title=" + encodeURIComponent(title) +
|
"&title=" + encodeURIComponent(title) +
|
||||||
|
Loading…
x
Reference in New Issue
Block a user