aboutsummaryrefslogtreecommitdiff
path: root/website/resources/js/order-license.js
diff options
context:
space:
mode:
Diffstat (limited to 'website/resources/js/order-license.js')
-rw-r--r--website/resources/js/order-license.js4
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;