From fdc25313cf180af8647110f33a903d38d2de336f Mon Sep 17 00:00:00 2001 From: mjollnir_ Date: Tue, 2 Sep 2008 12:54:09 +0000 Subject: [PATCH] MDL-14591 - changed nico's form warning element to use notifyproblem class so that it's synonymous with notify (by default) --- lib/form/warning.php | 4 ++-- theme/standard/styles_color.css | 8 -------- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/lib/form/warning.php b/lib/form/warning.php index aea35cc1ee..ad9d3a5e2f 100644 --- a/lib/form/warning.php +++ b/lib/form/warning.php @@ -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; } diff --git a/theme/standard/styles_color.css b/theme/standard/styles_color.css index a88b1382a9..d4f540ac0a 100644 --- a/theme/standard/styles_color.css +++ b/theme/standard/styles_color.css @@ -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; -} -- 2.39.5