improved javascript

This commit is contained in:
Stephan Richter
2021-03-13 13:12:37 +01:00
parent 8a9aada83e
commit 5b2bf1ddc0
3 changed files with 24 additions and 11 deletions

View File

@@ -48,7 +48,6 @@ function arrangeTabs(){
index = i;
target = this;
}
//if (fs.id == lastTab) target = this;
$(this).appendTo(tabs).click(fs.id,clickLegend);
if (id > 0) {
$(fs).hide();
@@ -71,6 +70,7 @@ function clickLegend(ev){
$(ev.target).addClass('front');
$('.window > fieldset').hide();
$('#'+lastTab).show();
$('#'+lastTab+" input:not([type=hidden])").first().focus().select();
if (!('no-update' in ev)) remember(lastTab);
}