mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
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:
parent
47e1aec448
commit
15a94ad920
@ -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 -->
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user