From 58f9b4c5b46208190241df73c554636ed380f5a7 Mon Sep 17 00:00:00 2001 From: Pranav Kant Date: Wed, 29 Jun 2016 17:38:40 +0530 Subject: [PATCH 1/2] Explicitly ask for revision history option ... since loleaflet explicitly requires it now if revision history option is required. --- js/documents.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/documents.js b/js/documents.js index 3739ff2b..6381e0de 100644 --- a/js/documents.js +++ b/js/documents.js @@ -405,7 +405,8 @@ var documentsMain = { "WOPISrc=" + wopisrc + "&title=" + encodeURIComponent(title) + "&lang=" + $('li[data-id='+ documentsMain.fileId +']>a').attr('lolang') + - "&closebutton=1"; + "&closebutton=1" + + "&revisionhistory=1"; // access_token - must be passed via a form post var access_token = encodeURIComponent(result.token); From f3e7211ee5fd6ac7ddffbbbe72c9a215ed247592 Mon Sep 17 00:00:00 2001 From: Pranav Kant Date: Wed, 29 Jun 2016 17:57:58 +0530 Subject: [PATCH 2/2] Add Handlebars to global --- js/documents.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/documents.js b/js/documents.js index 6381e0de..0be3c767 100644 --- a/js/documents.js +++ b/js/documents.js @@ -1,4 +1,4 @@ -/*globals $,OC,fileDownloadPath,t,document,odf,alert,require,dojo,runtime */ +/*globals $,OC,fileDownloadPath,t,document,odf,alert,require,dojo,runtime,Handlebars */ $.widget('oc.documentGrid', { options : {