[Libreoffice-commits] online.git: loleaflet/src

Pranam Lashkari (via logerrit) logerrit at kemper.freedesktop.org
Wed Sep 9 12:21:49 UTC 2020


 loleaflet/src/control/Control.Menubar.js |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit d10ee489689bbfa412c5f3e6c09a0cc76cf7e5f7
Author:     Pranam Lashkari <lpranam at collabora.com>
AuthorDate: Fri Aug 28 20:15:55 2020 +0530
Commit:     Andras Timar <andras.timar at collabora.com>
CommitDate: Wed Sep 9 14:21:31 2020 +0200

    leaflet: do not allow to add comments in read only mode
    
    comments are only allowed in read only mode in draw
    
    Change-Id: I0b7bc770c8c2b5117dfc31f515f28df67a7a3080
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/101553
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
    Reviewed-by: Andras Timar <andras.timar at collabora.com>

diff --git a/loleaflet/src/control/Control.Menubar.js b/loleaflet/src/control/Control.Menubar.js
index 7e4788534..bcd427865 100644
--- a/loleaflet/src/control/Control.Menubar.js
+++ b/loleaflet/src/control/Control.Menubar.js
@@ -1117,6 +1117,8 @@ L.Control.Menubar = L.Control.extend({
 							break;
 						}
 					}
+					if (id === 'insertcomment' && self._map.getDocType() !== 'drawing')
+						found = false;
 					if (!found) {
 						$(aItem).addClass('disabled');
 					} else {


More information about the Libreoffice-commits mailing list