SVGHMI: back button widget is optionally activable.
authorEdouard Tisserant <edouard.tisserant@gmail.com>
Mon, 20 Jan 2025 17:59:39 +0100 (7 weeks ago)
changeset 4091 b9fea435d886
parent 4090 e0c9ec66a036
child 4092 ac6bbf44491e
child 4093 649f91dc4db3
SVGHMI: back button widget is optionally activable.
+ update generated xslt file
svghmi/gen_index_xhtml.xslt
svghmi/widget_back.ysl2
--- a/svghmi/gen_index_xhtml.xslt	Thu Jan 09 18:21:36 2025 +0100
+++ b/svghmi/gen_index_xhtml.xslt	Mon Jan 20 17:59:39 2025 +0100
@@ -10345,8 +10345,6 @@
 </xsl:text>
           <xsl:text>        let widget = hmi_widgets[id];
 </xsl:text>
-          <xsl:text>        if(widget.curr_value != undefined) return;
-</xsl:text>
           <xsl:text>        widget.do_init();
 </xsl:text>
           <xsl:text>    });
--- a/svghmi/widget_back.ysl2	Thu Jan 09 18:21:36 2025 +0100
+++ b/svghmi/widget_back.ysl2	Mon Jan 20 17:59:39 2025 +0100
@@ -44,5 +44,5 @@
 }
 
 widget_defs("Back") {
-    activable();
+    optional_activable();
 }