Optimized form is-dirty handling (references #2900)

This commit is contained in:
Bernd Bestel 2026-03-30 16:32:31 +02:00
parent c0c9a38e39
commit 00a7160d74
No known key found for this signature in database
GPG Key ID: 71BD34C0D4891300
2 changed files with 65 additions and 69 deletions

View File

@ -48,7 +48,7 @@
### Userfields ### Userfields
- xxx - Fixed that Userfields of type "Select list (a single item can be selected)" changed by keyboard only were not saved
### General ### General

View File

@ -495,11 +495,7 @@ Grocy.FrontendHelpers.RunWebhook = function(webhook, data, repetitions = 1)
} }
} }
$(document).on("keyup paste change", "input, textarea", function() $(document).on("keyup paste change click", "input, select, textarea", function ()
{
$(this).addClass("is-dirty").closest("form").addClass("is-dirty");
});
$(document).on("click", "select", function()
{ {
$(this).addClass("is-dirty").closest("form").addClass("is-dirty"); $(this).addClass("is-dirty").closest("form").addClass("is-dirty");
}); });