svghmi/widget_input.ysl2
branchsvghmi
changeset 3004 705e34c6fe93
parent 3001 003fd80ff0b8
child 3010 893cc309f5e2
--- a/svghmi/widget_input.ysl2	Mon Aug 03 18:25:23 2020 +0200
+++ b/svghmi/widget_input.ysl2	Tue Aug 04 11:53:39 2020 +0200
@@ -26,7 +26,7 @@
     }
     |     },
     |     on_op_click: function(opstr) {
-    |         let new_val = change_hmi_value(this.get_idx(0), opstr);
+    |         let new_val = this.change_hmi_value(0, opstr);
     //     if "$have_value"{
     // |         this.value_elt.textContent = String(new_val);
     //           /* TODO gray out value until refreshed */
@@ -37,7 +37,7 @@
     |     },
 
     |     edit_callback: function(new_val) {
-    |         apply_hmi_value(this.get_idx(0), new_val);
+    |         this.apply_hmi_value(0, new_val);
     //     if "$have_value"{
     // |         this.value_elt.textContent = String(new_val);
     //           /* TODO gray out value until refreshed */