[LON-CAPA-cvs] cvs: loncom /xml lonxml.pm
bisitz
lon-capa-cvs-allow@mail.lon-capa.org
Fri, 08 Aug 2008 16:50:39 -0000
bisitz Fri Aug 8 12:50:39 2008 EDT
Modified files:
/loncom/xml lonxml.pm
Log:
- Added error style and div and blank before message text to error message in CSTR
- Changed span to div for warning message in CSTR
Index: loncom/xml/lonxml.pm
diff -u loncom/xml/lonxml.pm:1.483 loncom/xml/lonxml.pm:1.484
--- loncom/xml/lonxml.pm:1.483 Thu Aug 7 06:19:26 2008
+++ loncom/xml/lonxml.pm Fri Aug 8 12:50:39 2008
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# XML Parser Module
#
-# $Id: lonxml.pm,v 1.483 2008/08/07 10:19:26 bisitz Exp $
+# $Id: lonxml.pm,v 1.484 2008/08/08 16:50:39 bisitz Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1844,8 +1844,10 @@
if ( &show_error_warn_msg() ) {
# If printing in construction space, put the error inside <pre></pre>
push(@Apache::lonxml::error_messages,
- $Apache::lonxml::warnings_error_header.
- "<b>".&mt('ERROR:')."</b>".join("<br />\n",@errors)."<br />\n");
+ $Apache::lonxml::warnings_error_header
+ .'<div class="LC_error">'
+ .'<b>'.&mt('ERROR:').' </b>'.join("<br />\n",@errors)
+ ."</div>\n");
$Apache::lonxml::warnings_error_header='';
} else {
my $errormsg;
@@ -1906,10 +1908,10 @@
if ($env{'form.grade_target'} ne 'tex') {
if ( &show_error_warn_msg() ) {
push(@Apache::lonxml::warning_messages,
- $Apache::lonxml::warnings_error_header.
- '<span class="LC_warning">'.
- &mt('[_1]W[_2]ARNING','<b>','</b>')."<b>:</b> ".join('<br />',@_)."<br />\n".
- '</span>'
+ $Apache::lonxml::warnings_error_header
+ .'<div class="LC_warning">'
+ .&mt('[_1]W[_2]ARNING','<b>','</b>')."<b>:</b> ".join('<br />',@_)
+ ."</div>\n"
);
$Apache::lonxml::warnings_error_header='';
}