This commit is contained in:
2022-09-25 20:01:12 +00:00
parent 1159faf0f9
commit 8fcf632e73
3 changed files with 38 additions and 4 deletions

View File

@@ -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

View File

@@ -76,7 +76,7 @@
id="licenseExpires"
checked
/>
Temporary key / expires
Temporary license
</label>
<input
class="form-control"
@@ -93,6 +93,7 @@
id="btn-license-expires-plus-one-year"
class="btn btn-outline-primary"
>+1 Year</button>
<small>(7 days grace period automatically added)</small>
</div>
</div>