Updated Survey Edit validation warnings to use more standardized

wgWarnings CSS class
This commit is contained in:
Patrick Donelan 2009-04-22 03:27:45 +00:00
parent 9ba8337953
commit fe671d74e5
3 changed files with 6 additions and 10 deletions

View file

@ -81,7 +81,7 @@ Survey.Data = (function(){
if (!Survey.Data.ddContainer) { if (!Survey.Data.ddContainer) {
// Calculate the bottom of the warnings div (with a little padding) // Calculate the bottom of the warnings div (with a little padding)
var warningsBottom = YAHOO.util.Dom.getRegion('warnings').bottom + 5; var warningsBottom = YAHOO.util.Dom.getRegion('warnings-outer').bottom + 5;
warningsBottom = YAHOO.lang.isValue(warningsBottom) ? warningsBottom : 50; warningsBottom = YAHOO.lang.isValue(warningsBottom) ? warningsBottom : 50;
// Calculate the bottom of the viewport (with a little padding) // Calculate the bottom of the viewport (with a little padding)

View file

@ -124,15 +124,11 @@ li.answer {
width:15em; width:15em;
margin-top:0.5em; margin-top:0.5em;
} }
.wGwarning {
#warnings-outer { background-color:#FF6666;
margin: 5px; border:1px solid red;
padding: 0 5px; margin:5px;
border: 1px solid; padding:10px;
color: red;
}
#warnings {
color: red;
} }
#sections-panel .bd { #sections-panel .bd {
overflow: auto; overflow: auto;