[LON-CAPA-cvs] cvs: loncom /publisher lonpubdir.pm

raeburn raeburn at source.lon-capa.org
Tue Aug 13 12:59:12 EDT 2019


raeburn		Tue Aug 13 16:59:12 2019 EDT

  Modified files:              
    /loncom/publisher	lonpubdir.pm 
  Log:
  - file_upload.js not needed when error page displayed for 2.11.0 and later,
    because Authoring Space migration is incomplete.
  - Remove unused class (testclass)
  - Add double quotes for value attribute
  
  
Index: loncom/publisher/lonpubdir.pm
diff -u loncom/publisher/lonpubdir.pm:1.172 loncom/publisher/lonpubdir.pm:1.173
--- loncom/publisher/lonpubdir.pm:1.172	Sun Aug 11 15:15:43 2019
+++ loncom/publisher/lonpubdir.pm	Tue Aug 13 16:59:12 2019
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Authoring Space Directory Lister
 #
-# $Id: lonpubdir.pm,v 1.172 2019/08/11 15:15:43 raeburn Exp $
+# $Id: lonpubdir.pm,v 1.173 2019/08/13 16:59:12 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -67,9 +67,7 @@
             $r->send_http_header;
 
             &Apache::lonhtmlcommon::clear_breadcrumbs();
-            my $js = '<script type="text/javascript" 
-                        src="/res/adm/includes/file_upload.js"></script>';
-            $r->print(&Apache::loncommon::start_page('Authoring Space', $js).
+            $r->print(&Apache::loncommon::start_page('Authoring Space').
                       '<div class="LC_error">'.
                       '<br /><p>'.
                       &mt('Your Authoring Space is currently in the location used by LON-CAPA version 2.10 and older, but your domain is using a newer LON-CAPA version ([_1]).',$version).'</p>'.
@@ -108,7 +106,7 @@
                                                  $cstr,$crstype); # expressed in MB
 
     # Put out the start of page.
-    &startpage($r, $uname, $udom, $thisdisfn, $current_disk_usage, $disk_quota, $crsauthor); 
+    &startpage($r, $uname, $udom, $thisdisfn, $current_disk_usage, $disk_quota, $crsauthor);
 
     if (!-d $fn) {
         if (-e $fn) {
@@ -586,8 +584,8 @@
       <fieldset>
         <legend>$lt{'updc'}</legend>
         <input type="hidden" name="filename" value="/priv$thisdisfn/" />
-        <input type="file" name="upfile" class="LC_flUpload testclass" size="20" />
-        <input type="hidden" id="LC_free_space" value=$free_space />
+        <input type="file" name="upfile" class="LC_flUpload" size="20" />
+        <input type="hidden" id="LC_free_space" value="$free_space" />
         <input type="button" value="$lt{'uplo'}"  onclick="checkUpload(this.form)" />
       </fieldset>
     </form>




More information about the LON-CAPA-cvs mailing list