svghmi/widget_tooglebutton.ysl2
branchsvghmi
changeset 3004 705e34c6fe93
parent 2977 82f062408e70
child 3011 601c6dbc1da7
--- a/svghmi/widget_tooglebutton.ysl2	Mon Aug 03 18:25:23 2020 +0200
+++ b/svghmi/widget_tooglebutton.ysl2	Tue Aug 04 11:53:39 2020 +0200
@@ -18,7 +18,7 @@
     |         }
     |     },
     |     on_click: function(evt) {
-    |         change_hmi_value(this.indexes[0], "="+this.state);
+    |         this.apply_hmi_value(0, this.state);
     |     },
     |     active_style: undefined,
     |     inactive_style: undefined,
@@ -27,4 +27,4 @@
     |         this.inactive_style = this.inactive_elt.style.cssText;
     |         this.element.setAttribute("onclick", "hmi_widgets['«$hmi_element/@id»'].on_click(evt)");
     |     },
-}
\ No newline at end of file
+}