From 1a41f8bbd3906c2125cce0a845706a8e76b11c4a Mon Sep 17 00:00:00 2001 From: Pranav Kant Date: Mon, 4 Jul 2016 13:34:08 +0530 Subject: [PATCH] Respect lolang param in revision history mode too --- js/documents.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/documents.js b/js/documents.js index ee578bc8..511f280b 100644 --- a/js/documents.js +++ b/js/documents.js @@ -249,7 +249,8 @@ var documentsMain = { // https://: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