svghmi/gen_index_xhtml.ysl2
branchsvghmi
changeset 2867 901c89c0cc08
parent 2866 59a855c17aa6
child 2868 8d9757191f05
--- a/svghmi/gen_index_xhtml.ysl2	Thu Mar 12 13:14:38 2020 +0100
+++ b/svghmi/gen_index_xhtml.ysl2	Thu Mar 12 13:15:54 2020 +0100
@@ -69,8 +69,6 @@
         noindex > HMI_CURRENT_PAGE
     }
     const "categories", "exsl:node-set($_categories)";
-    const "_indexed_hmitree" apply "$hmitree", mode="index";
-    const "indexed_hmitree", "exsl:node-set($_indexed_hmitree)";
 
 
     // returns all directly or indirectly refered elements
@@ -263,8 +261,12 @@
     const "_detachable_elements", "func:detachable_elements($hmi_pages)";
     const "detachable_elements", "$_detachable_elements[not(ancestor::*/@id = $_detachable_elements/@id)]";
 
+
     //////////////// HMI Tree Index
 
+    const "_indexed_hmitree" apply "$hmitree", mode="index";
+    const "indexed_hmitree", "exsl:node-set($_indexed_hmitree)";
+
     template "*", mode="index" {
         param "index", "0";
         param "parentpath", "''";
@@ -822,7 +824,6 @@
     template "widget[@type='Jump']", mode="widget_defs" {
         param "hmi_element";
         |     on_click: function(evt) {
-        |         console.log(evt);
         |         switch_page(this.args[0]);
         |     },
         |     init: function() {