diff options
Diffstat (limited to 'website')
-rw-r--r-- | website/resources/js/main.js | 2 | ||||
-rw-r--r-- | website/resources/js/order-license.js | 4 | ||||
-rw-r--r-- | website/templates/main.html | 2 | ||||
-rw-r--r-- | website/templates/order-license-info.html | 2 |
4 files changed, 5 insertions, 5 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; diff --git a/website/templates/main.html b/website/templates/main.html index e89557d6..52b3ac0e 100644 --- a/website/templates/main.html +++ b/website/templates/main.html @@ -39,7 +39,7 @@ </div> <div class="row text-center supporterBar"> <h2 class="introText" hidden="hidden">Project Lombok is <a href="/supporters">powered by</a>:</h2> - <div class="supporterFooter" hidden="hidden"><a class="buttonLike" href="/support">I want to support Project Lombok too!</a></div> + <div class="supporterFooter" hidden="hidden"><a class="buttonLike" href="/order-license-info">I want to support Project Lombok too!</a></div> </div> </div> </@main.scaffold> diff --git a/website/templates/order-license-info.html b/website/templates/order-license-info.html index a58ef913..724e44f7 100644 --- a/website/templates/order-license-info.html +++ b/website/templates/order-license-info.html @@ -9,7 +9,7 @@ <p> Lombok is open source. We offer three licenses for using lombok. The standard license is free. Here you can order a professional or enterprise license. </p><p> - <a class="buttonLike orderButton" href="order-license">Order a professional or enterprise license</a><br /> + <a class="buttonLike orderButton" href="/order-license">Order a professional or enterprise license</a><br /> <a class="buttonLike orderButton" href="https://www.patreon.com/lombok">For individuals: Become a patreon</a> </p> <div class="row text-center"> |