From b48ae81a99f1856bb94a9dd2e8825b3ce97e2f6b Mon Sep 17 00:00:00 2001 From: Jan Holesovsky Date: Wed, 13 Apr 2016 19:24:01 +0200 Subject: [PATCH] Small improvement in the documentation. --- js/documents.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/js/documents.js b/js/documents.js index 1d72f52e..45b7aa0d 100644 --- a/js/documents.js +++ b/js/documents.js @@ -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 wopisrc = encodeURIComponent(wopiurl); - // urlsrc - the URL from discovery.xml that we access for the particular - // document; we add various parameters to that + // urlsrc - the URL from discovery xml that we access for the particular + // document; we add various parameters to that. + // The discovery is available at + // https://:9980/hosting/discovery var urlsrc = $('li[data-id='+ documentsMain.fileId +']>a').attr('urlsrc') + "WOPISrc=" + wopisrc + "&title=" + encodeURIComponent(title) +