mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 14:03:52 +01:00
Added tabindex so you can jump to another missing string field by pressing a TAB key.
This commit is contained in:
parent
04c2d0db9d
commit
cc8d91fa5f
@ -613,12 +613,12 @@
|
||||
$cols=40;
|
||||
if (strstr($value, "\r") or strstr($value, "\n") or $valuelen > $cols) {
|
||||
$rows = ceil($valuelen / $cols);
|
||||
$o .= '<textarea name="stringXXX'.lang_form_string_key($key).'" cols="'.$cols.'" rows="'.$rows.'">'.$value.'</textarea>'."\n";
|
||||
$o .= '<textarea name="stringXXX'.lang_form_string_key($key).'" cols="'.$cols.'" rows="'.$rows.'" tabindex="'.$missingcounter.'">'.$value.'</textarea>'."\n";
|
||||
} else {
|
||||
if ($valuelen) {
|
||||
$cols = $valuelen + 5;
|
||||
}
|
||||
$o .= '<input type="text" name="stringXXX'.lang_form_string_key($key).'" value="'.$value.'" size="'.$cols.'" />';
|
||||
$o .= '<input type="text" name="stringXXX'.lang_form_string_key($key).'" value="'.$value.'" size="'.$cols.'" tabindex="'.$missingcounter.'" />';
|
||||
}
|
||||
if ($value2 <> '' && $value <> $value2) {
|
||||
$o .= '<br /><span style="font-size:small">'.$value2.'</span>';
|
||||
|
Loading…
x
Reference in New Issue
Block a user