Merge branch 'MDL-30839-master' of git://github.com/phalacee/moodle
This commit is contained in:
+6
-3
@@ -2143,6 +2143,8 @@ function qf_errorHandler(element, _qfMsg) {
|
||||
errorSpan.id = \'id_error_\'+element.name;
|
||||
errorSpan.className = "error";
|
||||
element.parentNode.insertBefore(errorSpan, element.parentNode.firstChild);
|
||||
document.getElementById(errorSpan.id).setAttribute(\'TabIndex\', \'0\');
|
||||
document.getElementById(errorSpan.id).focus();
|
||||
}
|
||||
|
||||
while (errorSpan.firstChild) {
|
||||
@@ -2150,11 +2152,12 @@ function qf_errorHandler(element, _qfMsg) {
|
||||
}
|
||||
|
||||
errorSpan.appendChild(document.createTextNode(_qfMsg.substring(3)));
|
||||
errorSpan.appendChild(document.createElement("br"));
|
||||
|
||||
if (div.className.substr(div.className.length - 6, 6) != " error"
|
||||
&& div.className != "error") {
|
||||
div.className += " error";
|
||||
&& div.className != "error") {
|
||||
div.className += " error";
|
||||
linebreak = document.createElement("br");
|
||||
errorSpan.parentNode.insertBefore(linebreak, errorSpan.nextSibling);
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
@@ -263,6 +263,7 @@ a.skip:active {position: static;display: block;}
|
||||
.mform .fitem fieldset.felement {margin-left:15%;padding-left:1%;margin-bottom:0}
|
||||
.mform .error,
|
||||
.mform .required {color:#A00;}
|
||||
.mform span.error {display: inline-block;padding: 4px;margin-bottom: 4px;background-color: #F2DEDE;border: 1px solid #EED3D7;}
|
||||
.mform .required .fgroup span label {color:#000;}
|
||||
.mform .fdescription.required {color:#A00;text-align:right;}
|
||||
.dir-rtl .mform .fdescription.required {text-align:left;}
|
||||
|
||||
@@ -23,6 +23,14 @@ form {
|
||||
.mform fieldset.error {
|
||||
border: 1px solid @errorText;
|
||||
}
|
||||
.mform span.error {
|
||||
display: inline-block;
|
||||
border: 1px solid @errorBorder;
|
||||
border-radius: 4px;
|
||||
background-color: @errorBackground;
|
||||
padding: 4px;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
.mform fieldset.collapsible legend a.fheader {
|
||||
padding: 0 5px 0 20px;
|
||||
margin-left: -20px;
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user