From 60f8b3ef5a0e2a1779f590394d3325343b84a54c Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Wed, 24 Aug 2022 21:33:22 +0000 Subject: [PATCH] --- notes/deploy.txt | 2 +- util/RfVersion.cs | 2 +- wwwroot/default.htm | 112 +++++++++--------- wwwroot/js/app.api.js | 2 +- wwwroot/js/app.ravLicense.js | 26 +++- .../js/templates/app.ravLicense.handlebars | 2 + 6 files changed, 86 insertions(+), 60 deletions(-) diff --git a/notes/deploy.txt b/notes/deploy.txt index b523165..2a049a9 100644 --- a/notes/deploy.txt +++ b/notes/deploy.txt @@ -5,7 +5,7 @@ 1) SET VERSION SET app.api RFVERSION property -RENAME ?rfv=6.19 parameter in default.htm to the new version so all files update on mobile +RENAME ?rfv=6.20 parameter in default.htm to the new version so all files update on mobile 1.5) Run buildtemplates.bat if handlebars templates have changed at all diff --git a/util/RfVersion.cs b/util/RfVersion.cs index bd0e19b..555b546 100644 --- a/util/RfVersion.cs +++ b/util/RfVersion.cs @@ -2,7 +2,7 @@ namespace rockfishCore.Util { public static class RfVersion { - public const string NumberOnly="6.19"; + public const string NumberOnly="6.20"; public const string Full = "Rockfish server " + NumberOnly; } } \ No newline at end of file diff --git a/wwwroot/default.htm b/wwwroot/default.htm index 4fbb54f..3807192 100644 --- a/wwwroot/default.htm +++ b/wwwroot/default.htm @@ -11,73 +11,73 @@ Rockfish loading.... - - - - - + + + + + - - - - + + + + - - - - - - - - + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + \ No newline at end of file diff --git a/wwwroot/js/app.api.js b/wwwroot/js/app.api.js index 88cc127..1a9aaa4 100644 --- a/wwwroot/js/app.api.js +++ b/wwwroot/js/app.api.js @@ -29,7 +29,7 @@ app.api = (function () { generateFromRequest, licenseEmailResponse; - RockFishVersion = "6.19"; + RockFishVersion = "6.20"; ////////////////////////////////////////////////////////////////////////////////////// // NOT AUTHORIZED ERROR HANDLER diff --git a/wwwroot/js/app.ravLicense.js b/wwwroot/js/app.ravLicense.js index d85c9d9..132db4f 100644 --- a/wwwroot/js/app.ravLicense.js +++ b/wwwroot/js/app.ravLicense.js @@ -20,7 +20,9 @@ app.ravLicense = (function () { initModule, onGenerate, onRevoke, - onPerpetualChanged; + onPerpetualChanged, + onLicenseExpiresSetOneMonth, + onLicenseExpiresSetOneYear; //----------------- END MODULE SCOPE VARIABLES --------------- //------------------- BEGIN UTILITY METHODS ------------------ @@ -128,9 +130,27 @@ app.ravLicense = (function () { $("#perpettechcountblock").toggleClass("d-none"); $("#subusercountblock").toggleClass("d-none"); $("#subcustcountblock").toggleClass("d-none"); + + $('#licenseExpires').prop('checked', !$('#perpetual').prop('checked')); + return false; //prevent default }; + onLicenseExpiresSetOneMonth = function (event) { + event.preventDefault(); + $('#licenseExpirationDate').val( moment().add(1, 'months').toISOString().substring(0, 10)); + + return false; //prevent default + }; + + onLicenseExpiresSetOneYear = function (event) { + event.preventDefault(); + $('#licenseExpirationDate').val( moment().add(1, 'years').toISOString().substring(0, 10)); + + return false; //prevent default +}; + + // onSelectAllAddOns = function (event) { // event.preventDefault(); // $('#wbi').prop('checked', true); @@ -239,6 +259,10 @@ app.ravLicense = (function () { // bind actions $("#btn-revoke").bind("click", onRevoke); $("#perpetual").bind("change", onPerpetualChanged); + + $("#btn-license-expires-plus-one-month").bind("click", onLicenseExpiresSetOneMonth); + $("#btn-license-expires-plus-one-year").bind("click", onLicenseExpiresSetOneYear); + }; // return public methods diff --git a/wwwroot/js/templates/app.ravLicense.handlebars b/wwwroot/js/templates/app.ravLicense.handlebars index 26dd8d3..7298d3b 100644 --- a/wwwroot/js/templates/app.ravLicense.handlebars +++ b/wwwroot/js/templates/app.ravLicense.handlebars @@ -61,6 +61,8 @@ name="licenseExpirationDate" value="" /> + +