--- loncom/javascriptlib/file_upload.js 2015/06/18 20:19:18 1.1
+++ loncom/javascriptlib/file_upload.js 2019/08/07 16:08:17 1.2
@@ -2,7 +2,7 @@
The LearningOnline Network with CAPA
JavaScript functions handling file uploading
-$Id: file_upload.js,v 1.1 2015/06/18 20:19:18 musolffc Exp $
+$Id: file_upload.js,v 1.2 2019/08/07 16:08:17 raeburn Exp $
Copyright Michigan State University Board of Trustees
@@ -36,8 +36,8 @@ to do this check on the client before up
INPUT:
fileInput -
-
- Using the class "flUpload" is needed to use the event handlers below.
+
+ Using the class "LC_flUpload" is needed to use the event handlers below.
maxSize -
Maximum upload size in bytes. It is usually calculated from quota and
disk usage.
@@ -77,9 +77,9 @@ function clearFileInput(ctrl) {
/*
This block adds event listeners to file upload elements. It looks for input
-elements with class="flUpload".
+elements with class="LC_flUpload".
-
+
It also looks for a hidden element with id="free_space" that contains the maximum
upload size.
@@ -91,7 +91,7 @@ checks if it is allowed based on size.
*/
$( document ).ready(function() {
var maxSize = $( "#free_space" ).val();
- var upload_elements = $( ".flUpload" );
+ var upload_elements = $( ".LC_flUpload" );
for (var i=0; i