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

raeburn raeburn at source.lon-capa.org
Mon May 14 21:23:04 EDT 2012


raeburn		Tue May 15 01:23:04 2012 EDT

  Modified files:              
    /loncom/interface	londocs.pm 
  Log:
  - Content Change log page needs toContents() javascript function, so
    "To Overview" link will work in this context.
  
  
Index: loncom/interface/londocs.pm
diff -u loncom/interface/londocs.pm:1.485 loncom/interface/londocs.pm:1.486
--- loncom/interface/londocs.pm:1.485	Wed May  9 19:46:30 2012
+++ loncom/interface/londocs.pm	Tue May 15 01:23:04 2012
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Documents
 #
-# $Id: londocs.pm,v 1.485 2012/05/09 19:46:30 raeburn Exp $
+# $Id: londocs.pm,v 1.486 2012/05/15 01:23:04 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -425,9 +425,11 @@
 
 sub docs_change_log {
     my ($r,$coursenum,$coursedom,$folder,$allowed,$crstype,$iconpath)=@_;
+    my $supplementalflag=($env{'form.folderpath'}=~/^supplemental/);
     my $js = '<script type="text/javascript">'."\n".
              '// <![CDATA['."\n".
              &Apache::loncommon::display_filter_js('docslog')."\n".
+             &editing_js($env{'user.domain'},$env{'user.name'},$supplementalflag)."\n".
              &history_tab_js()."\n".
              &Apache::lonratedt::editscript('simple')."\n".
              '// ]]>'."\n".




More information about the LON-CAPA-cvs mailing list