This commit is contained in:
@@ -22,7 +22,9 @@ app.ravLicense = (function () {
|
||||
onRevoke,
|
||||
onPerpetualChanged,
|
||||
onLicenseExpiresSetOneMonth,
|
||||
onLicenseExpiresSetOneYear;
|
||||
onLicenseExpiresSetOneYear,
|
||||
onMaintExpiresSetOneMonth,
|
||||
onMaintExpiresSetOneYear;
|
||||
//----------------- END MODULE SCOPE VARIABLES ---------------
|
||||
|
||||
//------------------- BEGIN UTILITY METHODS ------------------
|
||||
@@ -131,7 +133,11 @@ app.ravLicense = (function () {
|
||||
$("#subusercountblock").toggleClass("d-none");
|
||||
$("#subcustcountblock").toggleClass("d-none");
|
||||
|
||||
$("#licenseExpires").prop("checked", !$("#perpetual").prop("checked"));
|
||||
const isPerpetual = $("#perpetual").prop("checked");
|
||||
$("#licenseExpires").prop("checked", !isPerpetual);
|
||||
$("#title").text(
|
||||
isPerpetual ? "Perpetual license" : "Subscription license"
|
||||
);
|
||||
|
||||
return false; //prevent default
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user