]> jspc29.x-matter.uni-frankfurt.de Git - mvdsensorcontrol.git/commitdiff
bugfix for the last commit, hehe
authorMichael Wiebusch <stratomaster@gmx.net>
Mon, 2 Dec 2013 18:07:11 +0000 (19:07 +0100)
committerMichael Wiebusch <stratomaster@gmx.net>
Mon, 2 Dec 2013 18:07:11 +0000 (19:07 +0100)
tools/jtageditor.pl

index 7e4345a2087e0c5ff3a0a0b5211c200d7dbcbd97..bc6213704923d5c3b268267aa380b720b36083d3 100755 (executable)
@@ -254,12 +254,17 @@ EOF
   }
   else {    # print an ancestor selector!
     print "include settings from:<br>";
-    print_fileSelector( "", "ancestorSelector",
-      "changeAncestor(selectedConfigFile(),this.options[this.selectedIndex].text);reloadSetTree()" );
 
+    my $ancestor_selector = fileSelector->new(
+        id=>"ancestorSelector",
+        name=>"ancestorSelectionDropdown",
+        onchange=>"changeAncestor(selectedConfigFile(),this.options[this.selectedIndex].text);"
+          ."reloadSetTree()" );
+    $ancestor_selector->add_item(value=>'...');
+    $ancestor_selector->add_items_from_dir(dir=>$confDir,ext=>"xml");
+    $ancestor_selector->print_html();
   }
 
-  #print "</td></tr></table>";
   print "</td></tr><tr><td>";
   print "$configFileName";
   print "</td></tr></table>";