[LON-CAPA-cvs] cvs: loncom /homework lonhomework.pm structuretags.pm

bowersj2 lon-capa-cvs@mail.lon-capa.org
Fri, 20 Jun 2003 14:45:19 -0000


bowersj2		Fri Jun 20 10:45:19 2003 EDT

  Modified files:              
    /loncom/homework	lonhomework.pm structuretags.pm 
  Log:
  Use Apache::loncommon::helpLatexCheatSheet instead of constructing it 
  manually.
  
  
Index: loncom/homework/lonhomework.pm
diff -u loncom/homework/lonhomework.pm:1.135 loncom/homework/lonhomework.pm:1.136
--- loncom/homework/lonhomework.pm:1.135	Mon Jun 16 17:32:43 2003
+++ loncom/homework/lonhomework.pm	Fri Jun 20 10:45:19 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # The LON-CAPA Homework handler
 #
-# $Id: lonhomework.pm,v 1.135 2003/06/16 21:32:43 www Exp $
+# $Id: lonhomework.pm,v 1.136 2003/06/20 14:45:19 bowersj2 Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -469,15 +469,8 @@
     &renderpage($request,$file);
   } else {
     my ($rows,$cols) = &Apache::edit::textarea_sizes(\$problem);
-    my $xml_help = '<table><tr><td>'.
-	&Apache::loncommon::help_open_topic("Problem_Editor_XML_Index",'Problem Editing Help')
-	    .'</td><td>'.
-	&Apache::loncommon::help_open_topic("Greek_Symbols",'Greek Symbols',
-					    undef,undef,600)
-	    .'</td><td>'.
-        &Apache::loncommon::help_open_topic("Other_Symbols",'Other Symbols',
-					    undef,undef,600)
-	    .'</td></tr></table>';
+    my $xml_help = Apache::loncommon::helpLatexCheatsheet("Problem_Editor_XML_Index",
+							  "Problem Editing Help");
     if ($cols > 80) { $cols = 80; }
     if ($cols < 70) { $cols = 70; }
     if ($rows < 20) { $rows = 20; }
Index: loncom/homework/structuretags.pm
diff -u loncom/homework/structuretags.pm:1.187 loncom/homework/structuretags.pm:1.188
--- loncom/homework/structuretags.pm:1.187	Thu Jun 19 16:04:16 2003
+++ loncom/homework/structuretags.pm	Fri Jun 20 10:45:19 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA 
 # definition of tags that give a structure to a document
 #
-# $Id: structuretags.pm,v 1.187 2003/06/19 20:04:16 albertel Exp $
+# $Id: structuretags.pm,v 1.188 2003/06/20 14:45:19 bowersj2 Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1040,15 +1040,7 @@
                  &Apache::edit::insertlist($target,$token).
 		 &Apache::edit::end_row().
                  &Apache::edit::start_spanning_row()."\n"
-		 .'<table><tr><td>'.
-		 &Apache::loncommon::help_open_topic("Greek_Symbols",
-						     'Greek Symbols',
-						     undef,undef,600)
-		 .'</td><td>'.
-		 &Apache::loncommon::help_open_topic("Other_Symbols",
-						     'Other Symbols',
-						     undef,undef,600)
-		 .'</td></tr></table>'.
+		 . &Apache::loncommon::helpLatexCheatsheet () .
 		 &Apache::edit::editfield($token->[1],$text,"",80,4);
     }
     if ($target eq 'modified') {