# HG changeset patch
# User Edouard Tisserant
# Date 1598358889 -7200
# Node ID da51baea69cb2bd4aa7e7c87157aeef864bc32d3
# Parent  4930455428df90aeefd771f1feb5002c3bda6635
SVGHMI: little fix in HMI:Button

diff -r 4930455428df -r da51baea69cb svghmi/widget_button.ysl2
--- a/svghmi/widget_button.ysl2	Tue Aug 25 14:32:39 2020 +0200
+++ b/svghmi/widget_button.ysl2	Tue Aug 25 14:34:49 2020 +0200
@@ -33,8 +33,8 @@
                 this.inactive_elt.setAttribute("style", this.inactive_style);
             }
 
-            this.element.setAttribute("onmousedown", "hmi_widgets["+this.element_id+"].on_mouse_down(evt)");
-            this.element.setAttribute("onmouseup", "hmi_widgets["+this.element_id+"].on_mouse_up(evt)");
+            this.element.setAttribute("onmousedown", "hmi_widgets[\""+this.element_id+"\"].on_mouse_down(evt)");
+            this.element.setAttribute("onmouseup", "hmi_widgets[\""+this.element_id+"\"].on_mouse_up(evt)");
          }
     }
     ||