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

raeburn raeburn at source.lon-capa.org
Tue Mar 12 20:10:13 EDT 2013


raeburn		Wed Mar 13 00:10:13 2013 EDT

  Modified files:              
    /loncom/interface	londocs.pm 
  Log:
  - Use of pagepath and pagesymb was eliminated in londocs.pm rev 1.519.
  
  
Index: loncom/interface/londocs.pm
diff -u loncom/interface/londocs.pm:1.534 loncom/interface/londocs.pm:1.535
--- loncom/interface/londocs.pm:1.534	Mon Mar 11 22:16:11 2013
+++ loncom/interface/londocs.pm	Wed Mar 13 00:10:13 2013
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Documents
 #
-# $Id: londocs.pm,v 1.534 2013/03/11 22:16:11 raeburn Exp $
+# $Id: londocs.pm,v 1.535 2013/03/13 00:10:13 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -2432,12 +2432,7 @@
     my $line=&Apache::loncommon::start_data_table_row();
     my ($form_start,$form_end,$form_common);
 # Edit commands
-    my ($type, $esc_path, $path, $symb);
-    if ($container eq 'page') {
-        $type = 'page';
-    } else {
-        $type = 'folder';
-    }
+    my ($esc_path, $path, $symb);
     if ($env{'form.folderpath'}) {
 	$esc_path=&escape($env{'form.folderpath'});
 	$path = &HTML::Entities::encode($env{'form.folderpath'},'<>&"');
@@ -2605,8 +2600,8 @@
    <form action="/adm/coursedocs" method="post">
 ';
         $form_common=(<<END);
-   <input type="hidden" name="${type}path" value="$path" />
-   <input type="hidden" name="${type}symb" value="$symb" />
+   <input type="hidden" name="folderpath" value="$path" />
+   <input type="hidden" name="symb" value="$symb" />
    <input type="hidden" name="setparms" value="$orderidx" />
    <input type="hidden" name="changeparms" value="0" />
 END
@@ -2614,12 +2609,12 @@
 	$line.=(<<END);
 <td>
 <div class="LC_docs_entry_move">
-  <a href='/adm/coursedocs?cmd=up_$index&${type}path=$esc_path&${type}symb=$symb'>
+  <a href='/adm/coursedocs?cmd=up_$index&folderpath=$esc_path&symb=$symb'>
     <img src="${iconpath}move_up.gif" alt="$lt{'up'}" class="LC_icon" />
   </a>
 </div>
 <div class="LC_docs_entry_move">
-  <a href='/adm/coursedocs?cmd=down_$index&${type}path=$esc_path&${type}symb=$symb'>
+  <a href='/adm/coursedocs?cmd=down_$index&folderpath=$esc_path&$symb=$symb'>
     <img src="${iconpath}move_down.gif" alt="$lt{'dw'}" class="LC_icon" />
   </a>
 </div>




More information about the LON-CAPA-cvs mailing list