From 7d99244b9decf61176239259e460398053008ae8 Mon Sep 17 00:00:00 2001 From: Michael Kaufmann Date: Sun, 28 Apr 2024 12:11:42 +0200 Subject: [PATCH] higher delay and dont reset input to wrong value to avoid not being able to enter a date manually without datetime-picker; fixes #1243 Signed-off-by: Michael Kaufmann --- templates/Froxlor/assets/js/jquery/apikeys.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/Froxlor/assets/js/jquery/apikeys.js b/templates/Froxlor/assets/js/jquery/apikeys.js index c5203cd3..641c17e0 100644 --- a/templates/Froxlor/assets/js/jquery/apikeys.js +++ b/templates/Froxlor/assets/js/jquery/apikeys.js @@ -1,6 +1,6 @@ export default function () { $(function () { - var timer, delay = 500; + var timer, delay = 650; $('div[data-action="apikeys"] #allowed_from').on('keyup change', function () { var _this = $(this); clearTimeout(timer); @@ -54,7 +54,7 @@ export default function () { } else { _this.removeClass('is-invalid'); _this.addClass('is-valid'); - _this.val(data.valid_until); + //_this.val(data.valid_until); } }, error: function (request, status, error) {