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
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user