MDL-14591 - changed nico's form warning element to use notifyproblem class so that it's synonymous with notify (by default)
This commit is contained in:
@@ -17,11 +17,11 @@ class MoodleQuickForm_warning extends HTML_QuickForm_static{
|
||||
var $_helpbutton='';
|
||||
var $_class='';
|
||||
|
||||
function MoodleQuickForm_warning($elementName=null, $elementClass='formwarning', $text=null) {
|
||||
function MoodleQuickForm_warning($elementName=null, $elementClass='notifyproblem', $text=null) {
|
||||
parent::HTML_QuickForm_static($elementName, null, $text);
|
||||
$this->_type = 'warning';
|
||||
if (is_null($elementClass)) {
|
||||
$elementClass = 'formwarning';
|
||||
$elementClass = 'notifyproblem';
|
||||
}
|
||||
$this->_class = $elementClass;
|
||||
}
|
||||
|
||||
@@ -1158,11 +1158,3 @@ form.mform .required .fgroup span label {
|
||||
color:#000;
|
||||
}
|
||||
|
||||
form.mform .formwarning {
|
||||
background-color: red;
|
||||
color: yellow;
|
||||
margin-top: 15px;
|
||||
padding: 10px 0px 10px 0px;
|
||||
font-size: 110%;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user