svghmi/widget_back.ysl2
branchsvghmi
changeset 3232 7bdb766c2a4d
parent 2958 895d3f2b1786
child 3241 fe945f1f48b7
--- a/svghmi/widget_back.ysl2	Thu Apr 15 09:15:23 2021 +0200
+++ b/svghmi/widget_back.ysl2	Sun May 02 23:01:08 2021 +0200
@@ -1,8 +1,7 @@
 // widget_back.ysl2
 
-template "widget[@type='Back']", mode="widget_class"
+widget_class("Back")
     ||
-    class BackWidget extends Widget{
         on_click(evt) {
             if(jump_history.length > 1){
                jump_history.pop();
@@ -13,5 +12,4 @@
         init() {
             this.element.setAttribute("onclick", "hmi_widgets['"+this.element_id+"'].on_click(evt)");
         }
-    }
     ||