svghmi/widget_input.ysl2
branchsvghmi
changeset 2917 c8d923dd707f
parent 2911 211d6a185e31
child 2921 2670f5c53caf
--- a/svghmi/widget_input.ysl2	Fri Apr 03 09:52:57 2020 +0200
+++ b/svghmi/widget_input.ysl2	Fri Apr 03 14:37:41 2020 +0200
@@ -33,11 +33,11 @@
         }
     |     },
     |     on_edit_click: function(opstr) {
-    |         edit_value("«path/@value»", "«path/@type»", this.edit_callback, this.last_val);
+    |         edit_value("«path/@value»", "«path/@type»", this, this.last_val);
     |     },
 
     |     edit_callback: function(new_val) {
-    |         apply_hmi_value(this.indexes[0], opstr);
+    |         apply_hmi_value(this.indexes[0], new_val);
         if "$have_value"{
     |         this.value_elt.textContent = String(new_val);
               /* TODO gray out value until refreshed */