diff options
author | jeff <jeff> | 2010-10-11 19:00:33 +0000 |
---|---|---|
committer | jeff <jeff> | 2010-10-11 19:00:33 +0000 |
commit | eec4949e2c8f09a0b89331437186b77c4db6ff38 (patch) | |
tree | 5e41fdf9edb1b8ca1fa16051225dc1056e2b84de /httemplate/misc/order_pkg.html | |
parent | 001393ff80427429f376f7bf38c42d5280d98dc5 (diff) |
external taxes support package locations RT10093
Diffstat (limited to 'httemplate/misc/order_pkg.html')
-rw-r--r-- | httemplate/misc/order_pkg.html | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/httemplate/misc/order_pkg.html b/httemplate/misc/order_pkg.html index 8479a7573..e9a56b1a5 100644 --- a/httemplate/misc/order_pkg.html +++ b/httemplate/misc/order_pkg.html @@ -9,14 +9,14 @@ function enable_order_pkg () { if ( document.OrderPkgForm.pkgpart.selectedIndex > 0 ) { - document.OrderPkgForm.submit.disabled = false; + document.OrderPkgForm.submitButton.disabled = false; if ( document.OrderPkgForm.pkgpart.options[document.OrderPkgForm.pkgpart.selectedIndex].getAttribute('data-can_discount') == 1 ) { document.OrderPkgForm.discountnum.disabled = false; } else { document.OrderPkgForm.discountnum.disabled = true; } } else { - document.OrderPkgForm.submit.disabled = true; + document.OrderPkgForm.submitButton.disabled = true; document.OrderPkgForm.discountnum.disabled = true; } } @@ -101,8 +101,16 @@ </TABLE> +<% include( '/elements/standardize_locations.html', + 'form' => "OrderPkgForm", + 'onlyship' => 1, + 'no_company' => 1, + 'callback' => 'document.OrderPkgForm.submit();', + ) +%> + <BR> -<INPUT NAME="submit" TYPE="submit" VALUE="Order Package" <% $pkgpart ? '' : 'DISABLED' %>> +<INPUT NAME="submitButton" TYPE="button" VALUE="Order Package" onClick = "this.disabled=true; standardize_locations();" <% $pkgpart ? '' : 'DISABLED' %>> </FORM> </BODY> |