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

Szymon Kłos (via logerrit) logerrit at kemper.freedesktop.org
Wed Oct 9 11:43:30 UTC 2019


 loleaflet/src/control/Control.JSDialogBuilder.js |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 6b9ad4687bf7fed72b61d95ac5b34c541b79e094
Author:     Szymon Kłos <szymon.klos at collabora.com>
AuthorDate: Wed Oct 9 13:42:59 2019 +0200
Commit:     Szymon Kłos <szymon.klos at collabora.com>
CommitDate: Wed Oct 9 13:43:10 2019 +0200

    jsdialogs: don't show disabled containers
    
    Change-Id: I73299d17cd0c8d443ca2039fb73a124861339b7b

diff --git a/loleaflet/src/control/Control.JSDialogBuilder.js b/loleaflet/src/control/Control.JSDialogBuilder.js
index f24dfb739..26664de6b 100644
--- a/loleaflet/src/control/Control.JSDialogBuilder.js
+++ b/loleaflet/src/control/Control.JSDialogBuilder.js
@@ -100,7 +100,9 @@ L.Control.JSDialogBuilder = L.Control.extend({
 		return text.replace('~', '');
 	},
 
-	_containerHandler: function() {
+	_containerHandler: function(parentContainer, data) {
+		if (data.enabled == 'false')
+			return false;
 		return true;
 	},
 


More information about the Libreoffice-commits mailing list