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

raeburn raeburn at source.lon-capa.org
Thu Nov 8 15:51:41 EST 2012


raeburn		Thu Nov  8 20:51:41 2012 EDT

  Modified files:              
    /loncom/interface	londocs.pm 
  Log:
  - changes in args passed to lonnet::can_edit_resource() and 
    lonhtmlcommon::jump_to_editres().
  
  
Index: loncom/interface/londocs.pm
diff -u loncom/interface/londocs.pm:1.502 loncom/interface/londocs.pm:1.503
--- loncom/interface/londocs.pm:1.502	Thu Nov  1 01:01:13 2012
+++ loncom/interface/londocs.pm	Thu Nov  8 20:51:40 2012
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Documents
 #
-# $Id: londocs.pm,v 1.502 2012/11/01 01:01:13 raeburn Exp $
+# $Id: londocs.pm,v 1.503 2012/11/08 20:51:40 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -2467,13 +2467,14 @@
             </form>
 EXTLNK
         } else { 
-            my ($cfile,$home,$switchserver,$uploaded) = 
-                &Apache::lonnet::can_edit_resource($fileloc,$coursenum,$coursedom);
+            my ($cfile,$home,$switchserver,$forceedit,$forceview) = 
+                &Apache::lonnet::can_edit_resource($fileloc,$coursenum,$coursedom,$orig_url);
             if (($cfile ne '') && ($symb ne '')) {
                 my $jscall = 
                     &Apache::lonhtmlcommon::jump_to_editres($cfile,$home,
                                                             $switchserver,
-                                                            $uploaded,$symb);
+                                                            $forceedit,
+                                                            undef,$symb);
                 if ($jscall) {
                     $editlink = ' <a class="LC_docs_ext_edit" href="javascript:'.
                                 $jscall.'" >'.&mt('Edit').'</a>';
@@ -4785,6 +4786,7 @@
 	currentData.style.display = 'block';
         activeTab = pageId;
         toggleUpload();
+        toggleMap();
         if (nav == 'mainnav') {
             var storedpath = "$docs_folderpath";
             if (storedpath == '') {




More information about the LON-CAPA-cvs mailing list