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:
+1
-1
@@ -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 -->
|
||||
|
||||
|
||||
Reference in New Issue
Block a user