mirror of
https://github.com/grocy/grocy.git
synced 2026-04-11 23:16:14 +02:00
Optimized form is-dirty handling (references #2900)
This commit is contained in:
parent
c0c9a38e39
commit
00a7160d74
|
|
@ -48,7 +48,7 @@
|
|||
|
||||
### Userfields
|
||||
|
||||
- xxx
|
||||
- Fixed that Userfields of type "Select list (a single item can be selected)" changed by keyboard only were not saved
|
||||
|
||||
### General
|
||||
|
||||
|
|
|
|||
|
|
@ -495,11 +495,7 @@ Grocy.FrontendHelpers.RunWebhook = function(webhook, data, repetitions = 1)
|
|||
}
|
||||
}
|
||||
|
||||
$(document).on("keyup paste change", "input, textarea", function()
|
||||
{
|
||||
$(this).addClass("is-dirty").closest("form").addClass("is-dirty");
|
||||
});
|
||||
$(document).on("click", "select", function()
|
||||
$(document).on("keyup paste change click", "input, select, textarea", function ()
|
||||
{
|
||||
$(this).addClass("is-dirty").closest("form").addClass("is-dirty");
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user