From: jeff Date: Thu, 12 Feb 2009 15:55:40 +0000 (+0000) Subject: better upload error handling and correction of tax upload filecount X-Git-Tag: root_of_webpay_support~62 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=07a313acb1d91488c6aa6044771f3136d5a6fe11 better upload error handling and correction of tax upload filecount --- diff --git a/httemplate/elements/form-file_upload.html b/httemplate/elements/form-file_upload.html index 234438c57..4ab70ad9c 100644 --- a/httemplate/elements/form-file_upload.html +++ b/httemplate/elements/form-file_upload.html @@ -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'); diff --git a/httemplate/misc/tax-import.cgi b/httemplate/misc/tax-import.cgi index bca623fed..a695e9706 100644 --- a/httemplate/misc/tax-import.cgi +++ b/httemplate/misc/tax-import.cgi @@ -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', )