<table><tr><td class='button_move' onclick='changeAncestor("")'> X </td></tr></table>
EOF
print "</td></tr></table>";
+ } else { # print an ancestor selector!
+ print_fileSelector("","ancestorSelector","changeAncestor(this.options[this.selectedIndex].text)");
+
}
print "</div>";
}
sub print_fileSelector {
my $configFile = $_[0];
+ my $elementId = $_[1];
+ my $action = $_[2];
opendir( DIR, $confDir ) or die $!;
- print '<select name="fileSelectionDropdown" id="fileSelector" >';
+ print '<select name="fileSelectionDropdown" id="'.$elementId.'" onchange="'.$action.'">';
print "<option value='...'>...</option>";
my @xmlfiles;
print "<tr>";
print "<td>";
- print_fileSelector($configFile);
+ print_fileSelector($configFile,"fileSelector","loadFile()");
print "</td>";
print "<td>";
print
-"<input type='button' onclick='loadFile()' value='load file' class='stdbutton'>";
+"<input type='button' onclick='loadFile()' value='reload file' class='stdbutton'>";
print "</td>";
print "</tr>";