[LON-CAPA-cvs] cvs: loncom /homework edit.pm structuretags.pm /interface loncommon.pm

goltermann goltermann at source.lon-capa.org
Thu Sep 5 08:07:29 EDT 2013


goltermann		Thu Sep  5 12:07:29 2013 EDT

  Modified files:              
    /loncom/interface	loncommon.pm 
    /loncom/homework	edit.pm structuretags.pm 
  Log:
  replaced the use of deprecated 'align' tags with style sheets to fix alignment bug in IE and opera
  
  
  
Index: loncom/interface/loncommon.pm
diff -u loncom/interface/loncommon.pm:1.1151 loncom/interface/loncommon.pm:1.1152
--- loncom/interface/loncommon.pm:1.1151	Wed Aug 28 14:00:00 2013
+++ loncom/interface/loncommon.pm	Thu Sep  5 12:07:25 2013
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # a pile of common routines
 #
-# $Id: loncommon.pm,v 1.1151 2013/08/28 14:00:00 raeburn Exp $
+# $Id: loncommon.pm,v 1.1152 2013/09/05 12:07:25 goltermann Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -6496,6 +6496,14 @@
   white-space: nowrap;
 }
 
+.LC_edit_problem_latexhelper{
+    text-align: right;
+}
+
+#LC_edit_problem_colorful div{
+    margin-left: 40px;
+}
+
 img.stift {
   border-width: 0;
   vertical-align: middle;
Index: loncom/homework/edit.pm
diff -u loncom/homework/edit.pm:1.147 loncom/homework/edit.pm:1.148
--- loncom/homework/edit.pm:1.147	Thu Jul  4 16:35:07 2013
+++ loncom/homework/edit.pm	Thu Sep  5 12:07:29 2013
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA 
 # edit mode helpers
 #
-# $Id: edit.pm,v 1.147 2013/07/04 16:35:07 bisitz Exp $
+# $Id: edit.pm,v 1.148 2013/09/05 12:07:29 goltermann Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -175,7 +175,7 @@
 #    "</tr><tr><td colspan=\"3\">\n";
 	my @help = Apache::lonxml::helpinfo($token);
 	if ($help[0]) {
-	    $result .= '</td><td align="right" valign="top">' .
+	    $result .= '</td><td class="LC_edit_problem_latexhelper">'.
 		Apache::loncommon::help_open_topic(@help);
 	} else { $result .= "</td><td> "; }
 	$result .= &end_row().&start_spanning_row();
@@ -203,7 +203,7 @@
     }
     $Apache::edit::colordepth++;
     push(@Apache::edit::inserttag,$token->[1]);
-    my $result='<div align="right">';
+    my $result='<div>';
     $result.='<table bgcolor="'.$color.'" width="97%" border="0" cellspacing="3" cellpadding="2">';
     return $result;
 }
@@ -211,7 +211,7 @@
 sub end_table {
     $Apache::edit::colordepth--;
     my $result='</table></div>';
-    $result.='<div align="left"><table><tr><td>';
+    $result.='<div><table><tr><td>';
 
     my ($tagname,$closingtag);
     if (defined($Apache::edit::inserttag[-2])) {
Index: loncom/homework/structuretags.pm
diff -u loncom/homework/structuretags.pm:1.514 loncom/homework/structuretags.pm:1.515
--- loncom/homework/structuretags.pm:1.514	Mon Jul 15 14:32:55 2013
+++ loncom/homework/structuretags.pm	Thu Sep  5 12:07:29 2013
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA 
 # definition of tags that give a structure to a document
 #
-# $Id: structuretags.pm,v 1.514 2013/07/15 14:32:55 bisitz Exp $
+# $Id: structuretags.pm,v 1.515 2013/09/05 12:07:29 goltermann Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -637,7 +637,7 @@
 '.&Apache::lonxml::message_location().'
 </div>
 '.
-       '<table border="0" width="100%"><tr><td bgcolor="#F8F8F8">';
+       '<table id="LC_edit_problem_colorful" border="0" width="100%"><tr><td bgcolor="#F8F8F8">';
 }
 
 sub problem_edit_footer {
@@ -2543,13 +2543,13 @@
                  .'<td><span class="LC_nobreak">'.&mt('Delete?').' '
                  .&Apache::edit::deletelist($target,$token)
                  .'</span></td>'
-	         .'<td align="left"><span id="math_'.$areaid.'">'
+	         .'<td><span id="math_'.$areaid.'">'
 		 .&Apache::lonhtmlcommon::dragmath_button($areaid,1)
 		 .'</span></td>'
 		 .'<td>'
 		 .&Apache::edit::insertlist($target,$token)
 		 .'</td>'
-	         .'<td align="right" valign="top">' .
+	         .'<td class="LC_edit_problem_latexhelper">' .
 	         &Apache::loncommon::helpLatexCheatsheet().
 		 &Apache::edit::end_row().
                  &Apache::edit::start_spanning_row()."\n".




More information about the LON-CAPA-cvs mailing list