loleaflet: use the permission init option
This commit is contained in:
parent
d290e21b40
commit
fafd5e8cf7
@ -182,7 +182,7 @@ var documentsMain = {
|
||||
var viewer = window.location.protocol + '//' + window.location.host + '/cloudsuite/cloudsuite.html?' +
|
||||
'file_path=' + documentsMain.url +
|
||||
'&host=' + 'ws://' + window.location.hostname + ':9980' +
|
||||
'&edit=' + 'false' +
|
||||
'&permission=' + 'view' +
|
||||
'×tamp=' + '';
|
||||
|
||||
var frame = '<iframe id="loleafletframe" allowfullscreen style="width:100%;height:100%;position:absolute;" src="' + viewer + '" sandbox="allow-scripts allow-same-origin allow-popups allow-modals"/>';
|
||||
|
@ -92,7 +92,7 @@ var odfViewer = {
|
||||
var viewer = window.location.protocol + '//' + window.location.host + '/cloudsuite/cloudsuite.html?' +
|
||||
'file_path=' + context.dir + '/' + filename +
|
||||
'&host=' + 'ws://' + window.location.hostname + ':9980' +
|
||||
'&edit=' + 'false' +
|
||||
'&permission=' + 'view' +
|
||||
'×tamp=' + '';
|
||||
|
||||
var frame = '<iframe id="loleafletframe" style="width:100%;height:100%;display:block;position:fixed;top:46px;" src="' + viewer + '" sandbox="allow-scripts allow-same-origin allow-popups"/>';
|
||||
|
Loading…
x
Reference in New Issue
Block a user