[LON-CAPA-cvs] cvs: loncom /interface lonhtmlcommon.pm lonmsgdisplay.pm

wenzelju wenzelju@source.lon-capa.org
Tue, 26 Jan 2010 13:08:08 -0000


wenzelju		Tue Jan 26 13:08:08 2010 EDT

  Modified files:              
    /loncom/interface	lonhtmlcommon.pm lonmsgdisplay.pm 
  Log:
  Error-messages in a confirm-success-box now have the same font-size as the success-messages. Partly there are both kinds of messages in one box, so it looks better if they have the same font-size.
  
  
Index: loncom/interface/lonhtmlcommon.pm
diff -u loncom/interface/lonhtmlcommon.pm:1.264 loncom/interface/lonhtmlcommon.pm:1.265
--- loncom/interface/lonhtmlcommon.pm:1.264	Tue Jan 26 05:22:03 2010
+++ loncom/interface/lonhtmlcommon.pm	Tue Jan 26 13:08:08 2010
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # a pile of common html routines
 #
-# $Id: lonhtmlcommon.pm,v 1.264 2010/01/26 05:22:03 faziophi Exp $
+# $Id: lonhtmlcommon.pm,v 1.265 2010/01/26 13:08:08 wenzelju Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -90,7 +90,7 @@
 sub confirm_success {
    my ($message,$failure)=@_;
    if ($failure) {
-      return '<span class="LC_error">'."\n"
+      return '<span class="LC_error" style="font-size: inherit;">'."\n"
             .'<img src="/adm/lonIcons/navmap.wrong.gif" alt="'.&mt('Error').'" /> '."\n"
             .$message."\n"
             .'</span>'."\n";
Index: loncom/interface/lonmsgdisplay.pm
diff -u loncom/interface/lonmsgdisplay.pm:1.146 loncom/interface/lonmsgdisplay.pm:1.147
--- loncom/interface/lonmsgdisplay.pm:1.146	Mon Jan 25 20:54:27 2010
+++ loncom/interface/lonmsgdisplay.pm	Tue Jan 26 13:08:08 2010
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Routines for messaging display
 #
-# $Id: lonmsgdisplay.pm,v 1.146 2010/01/25 20:54:27 raeburn Exp $
+# $Id: lonmsgdisplay.pm,v 1.147 2010/01/26 13:08:08 wenzelju Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -3409,7 +3409,7 @@
 	    &statuschange($env{'form.markdel'},'deleted',$folder);
 	if (!$result) {
             my $message = &Apache::lonhtmlcommon::confirm_success(&mt('Failed to delete the message.'),1);
-            $message .= '<p class="LC_error">'.$msg.'</p>';
+            $message .= '<p class="LC_error" style="font-size: inherit;">'.$msg.'</p>';
             $message = &Apache::loncommon::confirmwrapper($message);
             $r->print($message);
 	}
@@ -3476,8 +3476,8 @@
             my $message = '';
             if ($failed) {
                 $message .= &Apache::lonhtmlcommon::confirm_success(&mt('Failed to move [quant,_1,message]',$failed),1);
-                $message .= '<p class="LC_error">'.
-		            join("</p>\n<p class=\"LC_error\">",@failed_msg).
+                $message .= '<p class="LC_error" style="font-size: inherit;">'.
+		            join("</p>\n<p class=\"LC_error\" style=\"font-size: inherit;\">",@failed_msg).
 		            "</p>\n";
             }
             $message .= &Apache::lonhtmlcommon::confirm_success(&mt('Moved [quant,_1,message]',$total));
@@ -3504,8 +3504,8 @@
         my $message = '';
 	if ($failed) {
             $message .= &Apache::lonhtmlcommon::confirm_success(&mt('Failed to delete [quant,_1,message]',$failed),1);
-            $message .= '<p class="LC_error">'.
-		      join("</p>\n<p class=\"LC_error\">",@failed_msg).
+            $message .= '<p class="LC_error" style="font-size: inherit;">'.
+		      join("</p>\n<p class=\"LC_error\" style=\"font-size: inherit;\">",@failed_msg).
 		      "</p>\n";
 	}
         $message .= &Apache::lonhtmlcommon::confirm_success(&mt('Deleted [quant,_1,message]',$total));