better upload error handling and correction of tax upload filecount
authorjeff <jeff>
Thu, 12 Feb 2009 15:55:40 +0000 (15:55 +0000)
committerjeff <jeff>
Thu, 12 Feb 2009 15:55:40 +0000 (15:55 +0000)
httemplate/elements/form-file_upload.html
httemplate/misc/tax-import.cgi

index 234438c..4ab70ad 100644 (file)
@@ -53,7 +53,7 @@ Example:
 
     var uploaded = document.getElementById('uploaded_files');
     var a = uploaded.value.split(',');
-    if (uploaded.value.split(',').length == <% $opt{num_files} %>){
+    if (success && uploaded.value.split(',').length == <% $opt{num_files} %>){
       process(); 
     }else{
       var p = document.getElementById('uploadError');
index bca623f..a695e97 100644 (file)
@@ -6,7 +6,7 @@ Import a CSV file set containing tax rate records.
 <% include( '/elements/form-file_upload.html',
               'name'      => 'TaxRateUpload',
               'action'    => 'process/tax-import.cgi', 
-              'num_files' => 4,
+              'num_files' => 5,
               'fields'    => [ 'format', ],
               'message'   => 'Tax rates imported',
           )