UI improvements for subscription key generation
This commit is contained in:
@@ -131,25 +131,46 @@ app.ravLicense = (function () {
|
|||||||
$("#subusercountblock").toggleClass("d-none");
|
$("#subusercountblock").toggleClass("d-none");
|
||||||
$("#subcustcountblock").toggleClass("d-none");
|
$("#subcustcountblock").toggleClass("d-none");
|
||||||
|
|
||||||
$('#licenseExpires').prop('checked', !$('#perpetual').prop('checked'));
|
$("#licenseExpires").prop("checked", !$("#perpetual").prop("checked"));
|
||||||
|
|
||||||
return false; //prevent default
|
return false; //prevent default
|
||||||
};
|
};
|
||||||
|
|
||||||
onLicenseExpiresSetOneMonth = function (event) {
|
onLicenseExpiresSetOneMonth = function (event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
$('#licenseExpirationDate').val( moment().add(1, 'months').toISOString().substring(0, 10));
|
$("#licenseExpirationDate").val(
|
||||||
|
moment().add(1, "months").toISOString().substring(0, 10)
|
||||||
|
);
|
||||||
|
|
||||||
return false; //prevent default
|
return false; //prevent default
|
||||||
};
|
};
|
||||||
|
|
||||||
onLicenseExpiresSetOneYear = function (event) {
|
onLicenseExpiresSetOneYear = function (event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
$('#licenseExpirationDate').val( moment().add(1, 'years').toISOString().substring(0, 10));
|
$("#licenseExpirationDate").val(
|
||||||
|
moment().add(1, "years").toISOString().substring(0, 10)
|
||||||
|
);
|
||||||
|
|
||||||
return false; //prevent default
|
return false; //prevent default
|
||||||
};
|
};
|
||||||
|
|
||||||
|
onMaintExpiresSetOneMonth = function (event) {
|
||||||
|
event.preventDefault();
|
||||||
|
$("#maintenanceExpirationDate").val(
|
||||||
|
moment().add(1, "months").toISOString().substring(0, 10)
|
||||||
|
);
|
||||||
|
|
||||||
|
return false; //prevent default
|
||||||
|
};
|
||||||
|
|
||||||
|
onMaintExpiresSetOneYear = function (event) {
|
||||||
|
event.preventDefault();
|
||||||
|
$("#maintenanceExpirationDate").val(
|
||||||
|
moment().add(1, "years").toISOString().substring(0, 10)
|
||||||
|
);
|
||||||
|
|
||||||
|
return false; //prevent default
|
||||||
|
};
|
||||||
|
|
||||||
// onSelectAllAddOns = function (event) {
|
// onSelectAllAddOns = function (event) {
|
||||||
// event.preventDefault();
|
// event.preventDefault();
|
||||||
@@ -260,9 +281,23 @@ app.ravLicense = (function () {
|
|||||||
$("#btn-revoke").bind("click", onRevoke);
|
$("#btn-revoke").bind("click", onRevoke);
|
||||||
$("#perpetual").bind("change", onPerpetualChanged);
|
$("#perpetual").bind("change", onPerpetualChanged);
|
||||||
|
|
||||||
$("#btn-license-expires-plus-one-month").bind("click", onLicenseExpiresSetOneMonth);
|
$("#btn-license-expires-plus-one-month").bind(
|
||||||
$("#btn-license-expires-plus-one-year").bind("click", onLicenseExpiresSetOneYear);
|
"click",
|
||||||
|
onLicenseExpiresSetOneMonth
|
||||||
|
);
|
||||||
|
$("#btn-license-expires-plus-one-year").bind(
|
||||||
|
"click",
|
||||||
|
onLicenseExpiresSetOneYear
|
||||||
|
);
|
||||||
|
|
||||||
|
$("#btn-maint-expires-plus-one-month").bind(
|
||||||
|
"click",
|
||||||
|
onMaintExpiresSetOneMonth
|
||||||
|
);
|
||||||
|
$("#btn-maint-expires-plus-one-year").bind(
|
||||||
|
"click",
|
||||||
|
onMaintExpiresSetOneYear
|
||||||
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
// return public methods
|
// return public methods
|
||||||
|
|||||||
@@ -40,6 +40,8 @@
|
|||||||
name="maintenanceExpirationDate"
|
name="maintenanceExpirationDate"
|
||||||
value=""
|
value=""
|
||||||
/>
|
/>
|
||||||
|
<button id="btn-maint-expires-plus-one-month" class="btn btn-outline-primary">+1 Month</button>
|
||||||
|
<button id="btn-maint-expires-plus-one-year" class="btn btn-outline-primary">+1 Year</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user