svghmi/widget_tooglebutton.ysl2
branchsvghmi
changeset 3004 705e34c6fe93
parent 2977 82f062408e70
child 3011 601c6dbc1da7
equal deleted inserted replaced
3003:9771a724af09 3004:705e34c6fe93
    16     |             this.active_elt.setAttribute("style", "display:none");
    16     |             this.active_elt.setAttribute("style", "display:none");
    17     |             this.state = 1;
    17     |             this.state = 1;
    18     |         }
    18     |         }
    19     |     },
    19     |     },
    20     |     on_click: function(evt) {
    20     |     on_click: function(evt) {
    21     |         change_hmi_value(this.indexes[0], "="+this.state);
    21     |         this.apply_hmi_value(0, this.state);
    22     |     },
    22     |     },
    23     |     active_style: undefined,
    23     |     active_style: undefined,
    24     |     inactive_style: undefined,
    24     |     inactive_style: undefined,
    25     |     init: function() {
    25     |     init: function() {
    26     |         this.active_style = this.active_elt.style.cssText;
    26     |         this.active_style = this.active_elt.style.cssText;