diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2018-03-11 17:08:03 +0100 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2018-03-11 17:16:19 +0100 |
commit | 9b4bf8334b21393bb0a587ac0a4f0dc342d22bb2 (patch) | |
tree | 935a39f2b201184d1203822feea896d89d92987e /website/resources/js/order-license.js | |
parent | 2f1a26b6069d6d75729a971be20d45f0fc5fefcc (diff) | |
download | lombok-9b4bf8334b21393bb0a587ac0a4f0dc342d22bb2.tar.gz lombok-9b4bf8334b21393bb0a587ac0a4f0dc342d22bb2.tar.bz2 lombok-9b4bf8334b21393bb0a587ac0a4f0dc342d22bb2.zip |
last minute bugfixes to license order form mechanics.
Diffstat (limited to 'website/resources/js/order-license.js')
-rw-r--r-- | website/resources/js/order-license.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/website/resources/js/order-license.js b/website/resources/js/order-license.js index 4a3edca0..b2842456 100644 --- a/website/resources/js/order-license.js +++ b/website/resources/js/order-license.js @@ -33,7 +33,7 @@ function getPriceIndication() { try { var seats = parseInt($("#seats").val()); - if (isNaN(seats)) return ""; + if (isNaN(seats) || seats < 1) return ""; var licenseType = $("input:radio[name='licenseType']:checked").val(); var costPer; if (licenseType === "enterprise") costPer = 5; @@ -110,7 +110,7 @@ formFail = true; } - if (!data.seats || isNaN(data.seats)) { + if (!data.seats || isNaN(data.seats) || data.seats < 1) { $("#seats").focus(); showError("seats"); formFail = true; |