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

@ -250,6 +250,7 @@ var documentsMain = {
var urlsrc = $('li[data-id='+ fileId.replace(/_.*/, '') +']>a').attr('urlsrc') +
"WOPISrc=" + wopisrc +
"&title=" + encodeURIComponent(title) +
"&lang=" + $('li[data-id='+ fileId.replace(/_.*/, '') +']>a').attr('lolang') +
"&permission=readonly";
// access_token - must be passed via a form post