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

Henry Castro hcastro at collabora.com
Sun Feb 7 22:39:28 UTC 2016


 loleaflet/src/control/Control.Buttons.js |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 587dde0908fa7ef8316f5660d9c0d6f2cb615ae8
Author: Henry Castro <hcastro at collabora.com>
Date:   Sun Feb 7 18:38:17 2016 -0400

    loleaflet: fix disable state toolbar item

diff --git a/loleaflet/src/control/Control.Buttons.js b/loleaflet/src/control/Control.Buttons.js
index 40658f6..0b0822c 100644
--- a/loleaflet/src/control/Control.Buttons.js
+++ b/loleaflet/src/control/Control.Buttons.js
@@ -125,7 +125,7 @@ L.Control.Buttons = L.Control.extend({
 					L.DomUtil.removeClass(button.el.firstChild, 'leaflet-control-buttons-disabled');
 				}
 				else if (state === 'disabled') {
-					L.DomUtil.removeClass(button.el.firstChild, 'leaflet-control-buttons-disabled');
+					L.DomUtil.addClass(button.el.firstChild, 'leaflet-control-buttons-disabled');
 				}
 			}
 		}


More information about the Libreoffice-commits mailing list