diff -r 9771a724af09 -r 705e34c6fe93 svghmi/gen_index_xhtml.xslt --- a/svghmi/gen_index_xhtml.xslt Mon Aug 03 18:25:23 2020 +0200 +++ b/svghmi/gen_index_xhtml.xslt Tue Aug 04 11:53:39 2020 +0200 @@ -1009,6 +1009,20 @@ } + change_hmi_value(index,opstr) { + + return change_hmi_value(this.get_idx(index), opstr); + + } + + + + apply_hmi_value(index, new_val) { + + return apply_hmi_value(this.get_idx(0), new_val); + + } + } @@ -1196,7 +1210,7 @@ } - apply_hmi_value(this.get_idx(0), 1); + this.apply_hmi_value(0, 1); }, @@ -1210,7 +1224,7 @@ } - apply_hmi_value(this.get_idx(0), 0); + this.apply_hmi_value(0, 0); }, @@ -1445,7 +1459,7 @@ this.close(); - apply_hmi_value(this.get_idx(0), selection); + this.apply_hmi_value(0, selection); }, @@ -2138,7 +2152,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); }, @@ -2154,7 +2168,7 @@ edit_callback: function(new_val) { - apply_hmi_value(this.get_idx(0), new_val); + this.apply_hmi_value(0, new_val); }, @@ -2958,7 +2972,7 @@ on_click: function(evt) { - change_hmi_value(this.indexes[0], "="+this.state); + this.apply_hmi_value(0, this.state); },