From 0f7c7e9f6a8e9c7babd9ef960dfff261ec53094a Mon Sep 17 00:00:00 2001 From: Michael Wiebusch Date: Mon, 2 Dec 2013 19:07:11 +0100 Subject: [PATCH] bugfix for the last commit, hehe --- tools/jtageditor.pl | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/tools/jtageditor.pl b/tools/jtageditor.pl index 7e4345a..bc62137 100755 --- a/tools/jtageditor.pl +++ b/tools/jtageditor.pl @@ -254,12 +254,17 @@ EOF } else { # print an ancestor selector! print "include settings from:
"; - 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 ""; print ""; print "$configFileName"; print ""; -- 2.43.0