From 07a313acb1d91488c6aa6044771f3136d5a6fe11 Mon Sep 17 00:00:00 2001 From: jeff Date: Thu, 12 Feb 2009 15:55:40 +0000 Subject: [PATCH] better upload error handling and correction of tax upload filecount --- httemplate/elements/form-file_upload.html | 2 +- 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', ) -- 2.11.0