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 <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2024-04-28 12:11:42 +02:00
parent 0109c2d26f
commit 7d99244b9d

View File

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