This commit is contained in:
@@ -79,6 +79,12 @@ app.ravLicense = (function () {
|
|||||||
Count: Number($("#techcount").val())
|
Count: Number($("#techcount").val())
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
if (!$("#licenseExpires").prop("checked")) {
|
||||||
|
alert(
|
||||||
|
"Subscriptin licenses MUST have a license expiry, can not process"
|
||||||
|
);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
features.push({
|
features.push({
|
||||||
Feature: "ActiveInternalUsers",
|
Feature: "ActiveInternalUsers",
|
||||||
Count: Number($("#subusercount").val())
|
Count: Number($("#subusercount").val())
|
||||||
@@ -97,8 +103,8 @@ app.ravLicense = (function () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
submitData["features"] = features;
|
submitData["features"] = features;
|
||||||
|
console.log("submitData", submitData);
|
||||||
//submit
|
//submit
|
||||||
// alert("STUB submit");
|
|
||||||
app.api.createRavLicense(submitData, function (res) {
|
app.api.createRavLicense(submitData, function (res) {
|
||||||
if (res.error) {
|
if (res.error) {
|
||||||
$.gevent.publish("app-show-error", res.msg);
|
$.gevent.publish("app-show-error", res.msg);
|
||||||
@@ -135,7 +141,6 @@ app.ravLicense = (function () {
|
|||||||
|
|
||||||
const isPerpetual = $("#perpetual").prop("checked");
|
const isPerpetual = $("#perpetual").prop("checked");
|
||||||
$("#licenseExpires").prop("checked", !isPerpetual);
|
$("#licenseExpires").prop("checked", !isPerpetual);
|
||||||
$("#licenseExpires").prop("disabled", !isPerpetual);
|
|
||||||
$("#title").text(
|
$("#title").text(
|
||||||
isPerpetual ? "Perpetual license" : "Subscription license"
|
isPerpetual ? "Perpetual license" : "Subscription license"
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -75,7 +75,6 @@
|
|||||||
name="licenseExpires"
|
name="licenseExpires"
|
||||||
id="licenseExpires"
|
id="licenseExpires"
|
||||||
checked
|
checked
|
||||||
disabled
|
|
||||||
/>
|
/>
|
||||||
Temporary key / expires
|
Temporary key / expires
|
||||||
</label>
|
</label>
|
||||||
|
|||||||
Reference in New Issue
Block a user