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