[LON-CAPA-cvs] cvs: loncom(version_2_11_X) /interface lonfeedback.pm

raeburn raeburn at source.lon-capa.org
Mon Aug 12 12:51:07 EDT 2019


raeburn		Mon Aug 12 16:51:07 2019 EDT

  Modified files:              (Branch: version_2_11_X)
    /loncom/interface	lonfeedback.pm 
  Log:
  - For 2.11
    Backport 1.371, 1.381, 1.382, 1.383
  
  
Index: loncom/interface/lonfeedback.pm
diff -u loncom/interface/lonfeedback.pm:1.370.2.3 loncom/interface/lonfeedback.pm:1.370.2.4
--- loncom/interface/lonfeedback.pm:1.370.2.3	Wed Jun 12 13:32:38 2019
+++ loncom/interface/lonfeedback.pm	Mon Aug 12 16:51:07 2019
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Feedback
 #
-# $Id: lonfeedback.pm,v 1.370.2.3 2019/06/12 13:32:38 raeburn Exp $
+# $Id: lonfeedback.pm,v 1.370.2.4 2019/08/12 16:51:07 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1947,6 +1947,7 @@
     $anonscript
 //-->
 </script>
+<script type="text/javascript" src="/res/adm/includes/file_upload.js"></script>
 END
 
   my ($textareaheader,$textareaclass);
@@ -2054,7 +2055,8 @@
     } else {
         $r->print(<<END);
 <p>
-$lt{'atta'} $attachmaxtext: <input type="file" name="attachment" />
+$lt{'atta'} $attachmaxtext: <input type="file" name="attachment" class="LC_flUpload" />
+<input type="hidden" id="LC_free_space" value="131072" />
 </p>
 END
     }
@@ -3502,7 +3504,8 @@
    document.modattachments.action = document.modattachments.origpage.value;
    document.modattachments.submit();
  }
-</script> 
+</script>
+<script type="text/javascript" src="/res/adm/includes/file_upload.js"></script>
 END
 
     # Breadcrumbs
@@ -3544,7 +3547,10 @@
     $r->print('<b>'.$subject.'</b>');
     $r->print(&Apache::lonhtmlcommon::row_closure());
     $r->print(&Apache::lonhtmlcommon::row_title($lt{'adda'}));
-    $r->print('<input type="file" name="addnewattach" /><input type="button" name="upload" value="Upload" onclick="this.form.submit()" />  '.$attachmaxtext);
+    $r->print('<input type="file" name="addnewattach" class="LC_flUpload" />'
+        .'<input type="hidden" id="LC_free_space" value="131072" />'
+        .'<input type="button" name="upload" value="Upload" '
+        .'onclick="this.form.submit()" />  '.$attachmaxtext);
     if(($idx)||(ref($currnewattach) eq 'ARRAY') && (@{$currnewattach} > 0)){
         $r->print(&Apache::lonhtmlcommon::row_closure());
         $r->print(&Apache::lonhtmlcommon::row_title(&mt('Attachments')));




More information about the LON-CAPA-cvs mailing list