beremiz

SVGHMI: cosmetic fix in Back widget

2022-11-04, Edouard Tisserant
6b7f15089703
Parents d5ff60e906b0
Children e42a09c1d3f3
SVGHMI: cosmetic fix in Back widget
--- a/svghmi/widget_back.ysl2 Fri Nov 04 10:51:45 2022 +0100
+++ b/svghmi/widget_back.ysl2 Fri Nov 04 10:52:59 2022 +0100
@@ -9,7 +9,6 @@
shortdesc > Jump to previous page
}
-// TODO: use es6
widget_class("Back")
||
on_click(evt) {
@@ -24,6 +23,6 @@
}
}
init() {
- this.element.setAttribute("onclick", "hmi_widgets['"+this.element_id+"'].on_click(evt)");
+ this.element.onclick = this.on_click.bind(this);
}
||