Merge branch 'MDL-30839-25' of git://github.com/phalacee/moodle into MOODLE_25_STABLE
This commit is contained in:
+5
-1
@@ -2169,6 +2169,10 @@ function qf_errorHandler(element, _qfMsg) {
|
||||
if (errorSpan) {
|
||||
errorSpan.parentNode.removeChild(errorSpan);
|
||||
}
|
||||
var linebreak = document.getElementById(\'id_error_break_\'+element.name);
|
||||
if (linebreak) {
|
||||
linebreak.parentNode.removeChild(linebreak);
|
||||
}
|
||||
|
||||
if (div.className.substr(div.className.length - 6, 6) == " error") {
|
||||
div.className = div.className.substr(0, div.className.length - 6);
|
||||
@@ -2216,7 +2220,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[\''.$elementName.'\'].focus();
|
||||
frm.elements[\'id_error_'.$elementName.'\'].focus();
|
||||
}
|
||||
';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user