This commit is contained in:
@@ -157,10 +157,12 @@ app.ravLicense = (function () {
|
||||
return false; //prevent default
|
||||
};
|
||||
|
||||
|
||||
onLicenseExpiresSetOneMonth = function (event) {
|
||||
event.preventDefault();
|
||||
//Automatically add 7 days grace period to account for payment processing delays etc
|
||||
$("#licenseExpirationDate").val(
|
||||
moment().add(1, "months").toISOString().substring(0, 10)
|
||||
moment().add(1, "months").add(7,"days").toISOString().substring(0, 10)
|
||||
);
|
||||
|
||||
return false; //prevent default
|
||||
@@ -168,8 +170,9 @@ app.ravLicense = (function () {
|
||||
|
||||
onLicenseExpiresSetOneYear = function (event) {
|
||||
event.preventDefault();
|
||||
//Automatically add 7 days grace period to account for payment processing delays etc
|
||||
$("#licenseExpirationDate").val(
|
||||
moment().add(1, "years").toISOString().substring(0, 10)
|
||||
moment().add(1, "years").add(7,"days").toISOString().substring(0, 10)
|
||||
);
|
||||
|
||||
return false; //prevent default
|
||||
|
||||
Reference in New Issue
Block a user