aboutsummaryrefslogtreecommitdiff
path: root/website/resources
diff options
context:
space:
mode:
Diffstat (limited to 'website/resources')
-rw-r--r--website/resources/js/main.js2
-rw-r--r--website/resources/js/order-license.js4
2 files changed, 3 insertions, 3 deletions
diff --git a/website/resources/js/main.js b/website/resources/js/main.js
index 3ad77958..f07da70d 100644
--- a/website/resources/js/main.js
+++ b/website/resources/js/main.js
@@ -37,7 +37,7 @@
if (self.data("clc")) return;
var href = self.attr("href");
self.data("clc", true);
- if (!href || href.substr(0, 4) === "http" || href === "/api/") return;
+ if (!href || href.substr(0, 4) === "http" || href === "/api/" || href === "/" || href === "/supporters" || href === "/order-license") return;
var ext = href.substr(href.length - 4, 4);
if (ext === ".xml" || ext === ".jar") return;
self.on("click", function(evt) {
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;