diff options
author | jeff <jeff> | 2009-02-12 15:55:40 +0000 |
---|---|---|
committer | jeff <jeff> | 2009-02-12 15:55:40 +0000 |
commit | 07a313acb1d91488c6aa6044771f3136d5a6fe11 (patch) | |
tree | 0dd8012eade1e7af6a990ed11ce154ea60882ec9 /httemplate | |
parent | 850f16089f73212d65751dec48e799d83defa6fb (diff) |
better upload error handling and correction of tax upload filecount
Diffstat (limited to 'httemplate')
-rw-r--r-- | httemplate/elements/form-file_upload.html | 2 | ||||
-rw-r--r-- | httemplate/misc/tax-import.cgi | 2 |
2 files changed, 2 insertions, 2 deletions
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', ) |