mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 14:16:11 +00:00
last minute bugfixes to license order form mechanics.
This commit is contained in:
1 parent
2f1a26b606
commit
9b4bf8334b
4 files changed
+5
-5
No files matched your search
@@ -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) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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>
|
||||
@@ -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">
|
||||
|
||||
Reference in new issue
Block a user