@ -129,7 +129,7 @@ var documentsMain = {
var urlsrc = documentsMain . urlsrc +
var urlsrc = documentsMain . urlsrc +
"WOPISrc=" + wopisrc +
"WOPISrc=" + wopisrc +
"&title=" + encodeURIComponent ( title ) +
"&title=" + encodeURIComponent ( title ) +
"&lang=" + OC . getLocale ( ) +
"&lang=" + OC . getLocale ( ) . replace ( '_' , '-' ) + // loleaflet expects a BCP47 language tag syntax
"&permission=readonly" ;
"&permission=readonly" ;
// access_token - must be passed via a form post
// access_token - must be passed via a form post
@ -320,7 +320,7 @@ var documentsMain = {
var urlsrc = documentsMain . urlsrc +
var urlsrc = documentsMain . urlsrc +
"WOPISrc=" + wopisrc +
"WOPISrc=" + wopisrc +
"&title=" + encodeURIComponent ( title ) +
"&title=" + encodeURIComponent ( title ) +
"&lang=" + OC . getLocale ( ) +
"&lang=" + OC . getLocale ( ) . replace ( '_' , '-' ) + // loleaflet expects a BCP47 language tag syntax
"&closebutton=1" +
"&closebutton=1" +
"&revisionhistory=1" ;
"&revisionhistory=1" ;
if ( ! documentsMain . canEdit || action === "view" ) {
if ( ! documentsMain . canEdit || action === "view" ) {