[Libreoffice-commits] online.git: Branch 'distro/collabora/collabora-online-1-0' - loleaflet/debug loleaflet/dist

Pranav Kant pranavk at collabora.com
Tue May 24 12:02:15 UTC 2016


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

New commits:
commit 4c2a5199e8996a2f74a4ab34fd7dace1392bf072
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
    (cherry picked from commit 3c077539a20398aab88b936cbbde4feea0caf5ea)

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