Respect lolang param in revision history mode too

This commit is contained in:
Pranav Kant 2016-07-04 13:34:08 +05:30
parent 1696a1238e
commit 1a41f8bbd3

View File

@ -249,7 +249,8 @@ var documentsMain = {
// https://<loolwsd-server>:9980/hosting/discovery
var urlsrc = $('li[data-id='+ fileId.replace(/_.*/, '') +']>a').attr('urlsrc') +
"WOPISrc=" + wopisrc +
"&title=" + encodeURIComponent(title) +
"&title=" + encodeURIComponent(title) +
"&lang=" + $('li[data-id='+ fileId.replace(/_.*/, '') +']>a').attr('lolang') +
"&permission=readonly";
// access_token - must be passed via a form post