--- a/svghmi/widget_button.ysl2 Mon Aug 03 18:25:23 2020 +0200
+++ b/svghmi/widget_button.ysl2 Tue Aug 04 11:53:39 2020 +0200
@@ -9,14 +9,14 @@
| this.active_elt.setAttribute("style", this.active_style);
| this.inactive_elt.setAttribute("style", "display:none");
| }
- | apply_hmi_value(this.get_idx(0), 1);
+ | this.apply_hmi_value(0, 1);
| },
| on_mouse_up: function(evt) {
| if (this.active_style && this.inactive_style) {
| this.active_elt.setAttribute("style", "display:none");
| this.inactive_elt.setAttribute("style", this.inactive_style);
| }
- | apply_hmi_value(this.get_idx(0), 0);
+ | this.apply_hmi_value(0, 0);
| },
| active_style: undefined,
| inactive_style: undefined,