Add WOPISrc parameter

This commit is contained in:
Henry Castro 2016-03-16 09:05:33 -04:00
parent c168936107
commit b135ad4a5c

View File

@ -197,8 +197,8 @@ var documentsMain = {
documentsMain.url = window.location.protocol + '//' + window.location.host + url; documentsMain.url = window.location.protocol + '//' + window.location.host + url;
var viewer = urlsrc + var viewer = urlsrc +
'file_path=' + encodeURIComponent(documentsMain.url) + 'WOPISrc=' + encodeURIComponent(documentsMain.url) +
'&host=' + 'ws://' + window.location.hostname + ':9980' + '&host=' + $('#wopi-url').val() +
'&permission=' + 'view' + '&permission=' + 'view' +
'&timestamp=' + ''; '&timestamp=' + '';