[Libreoffice-commits] online.git: loleaflet/debug loleaflet/dist

Pranav Kant pranavk at collabora.com
Tue May 24 11:50:30 UTC 2016


 loleaflet/debug/document/loleaflet.html |    2 +-
 loleaflet/dist/loleaflet.html           |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 3c077539a20398aab88b936cbbde4feea0caf5ea
Author: Pranav Kant <pranavk at collabora.com>
Date:   Tue May 24 17:16:52 2016 +0530

    loleaflet: When no permission specified, switch to old 'edit'
    
    After the introduction of editlock, old styled loleaflet's view
    and edit permissions have become obsolete. By default, when
    opening a new document, the user is in that old styled 'view'
    mode unless specified in the url by permission=
    
    Lets change the behavior and make document to be in 'edit' mode
    by default unless specified.
    
    Change-Id: Iebf0d8512ddc8f7ff549c12dbb366643ca207345

diff --git a/loleaflet/debug/document/loleaflet.html b/loleaflet/debug/document/loleaflet.html
index 2584381..fd87656 100644
--- a/loleaflet/debug/document/loleaflet.html
+++ b/loleaflet/debug/document/loleaflet.html
@@ -97,7 +97,7 @@
     }
 
     var host = '%HOST%';
-    var permission = getParameterByName('permission');
+    var permission = getParameterByName('permission') || 'edit';
     var timestamp = getParameterByName('timestamp');
     var closebutton = getParameterByName('closebutton');
     if (wopiSrc === '' && filePath === '') {
diff --git a/loleaflet/dist/loleaflet.html b/loleaflet/dist/loleaflet.html
index c83f869..13e2bb9 100644
--- a/loleaflet/dist/loleaflet.html
+++ b/loleaflet/dist/loleaflet.html
@@ -99,7 +99,7 @@
     }
 
     var host = '%HOST%';
-    var permission = getParameterByName('permission');
+    var permission = getParameterByName('permission') || 'edit';
     var timestamp = getParameterByName('timestamp');
     var closebutton = getParameterByName('closebutton');
     if (wopiSrc === '' && filePath === '') {


More information about the Libreoffice-commits mailing list