Merge branch 'MDL-30839-master' of git://github.com/phalacee/moodle

This commit is contained in:
Dan Poltawski 2013-08-22 11:17:49 +08:00
commit 52ef7502d6

View File

@ -2221,7 +2221,7 @@ function validate_' . $this->_formName . '_' . $escapedElementName . '(element)
ret = validate_' . $this->_formName . '_' . $escapedElementName.'(frm.elements[\''.$elementName.'\']) && ret;
if (!ret && !first_focus) {
first_focus = true;
frm.elements[\'id_error_'.$elementName.'\'].focus();
document.getElementById(\'id_error_'.$elementName.'\').focus();
}
';