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

raeburn raeburn at source.lon-capa.org
Tue Jul 11 08:44:18 EDT 2023


raeburn		Tue Jul 11 12:44:18 2023 EDT

  Modified files:              
    /loncom/interface	londocs.pm 
  Log:
  - Apache::lonparmset not used
  - Remove duplicate line
  - Add a space before disabled="disabled" attribute
  - Add missing </fieldset> tag 
  
  
Index: loncom/interface/londocs.pm
diff -u loncom/interface/londocs.pm:1.699 loncom/interface/londocs.pm:1.700
--- loncom/interface/londocs.pm:1.699	Mon May 22 21:10:55 2023
+++ loncom/interface/londocs.pm	Tue Jul 11 12:44:18 2023
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Documents
 #
-# $Id: londocs.pm,v 1.699 2023/05/22 21:10:55 raeburn Exp $
+# $Id: londocs.pm,v 1.700 2023/07/11 12:44:18 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -45,7 +45,6 @@
 use Apache::lonsimplepage();
 use Apache::lonhomework();
 use Apache::lonpublisher();
-use Apache::lonparmset();
 use Apache::loncourserespicker();
 use HTML::Entities;
 use HTML::TokeParser;
@@ -2657,7 +2656,7 @@
                     if ($is_exttool) {
                         $exttoolchg = 1;
                     }
-                } elsif (($rem =~ m{\d+/ext\.tool$}) &&
+                } elsif (($is_exttool) &&
                          ($env{'form.docs.markedcopy_options'} ne 'move')) {
                     $dbcopies->{$oldurl}{$id}{'src'} = $ressrc;
                     $dbcopies->{$oldurl}{$id}{'cdom'} = $srcdom;
@@ -3754,7 +3753,7 @@
     return unless (ref($listsref) eq 'HASH');
     my $disabled;
     unless ($canedit) {
-        $disabled = 'disabled="disabled"'; 
+        $disabled = ' disabled="disabled"';
     }
     my $output =
     '<form action="/adm/coursedocs" method="post" name="togglemult'.$caller.'">'.
@@ -3792,7 +3791,7 @@
             '</label></span></td>'."\n".
             '<td class="LC_docs_entry_parameter">'.
             '<span class="LC_nobreak LC_docs_copy">'.
-            '<label><input type="checkbox" name="copyall" id="copyall" onclick="propagateState(this.form,'."'copy'".')"'. $disabled.' />'.&mt('Copy').
+            '<label><input type="checkbox" name="copyall" id="copyall" onclick="propagateState(this.form,'."'copy'".')"'.$disabled.' />'.&mt('Copy').
             '</label></span></td>'.
             '</tr></table>'."\n";
     }
@@ -6896,6 +6895,7 @@
 	$pathitem
 	<input type="hidden" name="cmd" value="upload_supplemental" />
         <input type='submit' value="$lt{'upld'}" />
+        </fieldset>
         </form>
 SUPDOCFORM
 




More information about the LON-CAPA-cvs mailing list