Attention to detail: this prevents generating a warning if $focus is not set.

Of course, the warning is hidden inside JS and thus invisible to the naked eye.
This commit is contained in:
defacer 2004-08-23 08:34:51 +00:00
parent 47e1aec448
commit 15a94ad920

View File

@ -92,7 +92,7 @@ function unlockoption(form,item) {
eval("document."+form+".h"+item+".value=0");
}
<?php if ($focus) { echo "function setfocus() { document.$focus.focus() }\n"; } ?>
<?php if (!empty($focus)) { echo "function setfocus() { document.$focus.focus() }\n"; } ?>
// done hiding -->