[LON-CAPA-cvs] cvs: loncom /xml lonxml.pm

raeburn raeburn at source.lon-capa.org
Sat Jun 21 16:56:41 EDT 2014


raeburn		Sat Jun 21 20:56:41 2014 EDT

  Modified files:              
    /loncom/xml	lonxml.pm 
  Log:
  - Editing HTML file uploaded directly to a course.
    - No undo button.
    - No help links for output tags or languages.
  
  
Index: loncom/xml/lonxml.pm
diff -u loncom/xml/lonxml.pm:1.546 loncom/xml/lonxml.pm:1.547
--- loncom/xml/lonxml.pm:1.546	Thu Feb  6 17:14:33 2014
+++ loncom/xml/lonxml.pm	Sat Jun 21 20:56:40 2014
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # XML Parser Module 
 #
-# $Id: lonxml.pm,v 1.546 2014/02/06 17:14:33 raeburn Exp $
+# $Id: lonxml.pm,v 1.547 2014/06/21 20:56:40 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1575,7 +1575,11 @@
       $add_to_onresize = "resize_textarea('$textarea_id','LC_aftertextarea');";
 
       if ($filetype eq 'html') {
-	  $xml_help=&Apache::loncommon::helpLatexCheatsheet();
+          my $not_author;
+          if ($uri =~ m{^/uploaded/}) {
+              $not_author = 1;
+          }
+	  $xml_help=&Apache::loncommon::helpLatexCheatsheet(undef,undef,$not_author);
       }
 
       my $titledisplay=&display_title();
@@ -1599,6 +1603,10 @@
               }
           }
       }
+      my $undo;
+      unless ($uri =~ m{^/uploaded/}) {
+          $undo = '<input type="submit" name="Undo" accesskey="u" value="'.$lt{'un'}.'" />'."\n";
+      }
       my $editfooter=(<<ENDFOOTER);
 $initialize
 <a name="editsection" />
@@ -1612,8 +1620,7 @@
     </table>
     <div class="LC_edit_problem_discards">
       <input type="submit" name="discardview" accesskey="d" value="$lt{'dv'}" />
-      <input type="submit" name="Undo" accesskey="u" value="$lt{'un'}" />
-      $htmlerror $deps_button $dragmath_button
+      $undo $htmlerror $deps_button $dragmath_button
     </div>
     <div class="LC_edit_problem_saves">
       <input type="submit" name="savethisfile" accesskey="s" value="$lt{'st'}" />




More information about the LON-CAPA-cvs mailing list