mirror of
https://github.com/grocy/grocy.git
synced 2026-04-08 05:36:15 +02:00
Optimized form is-dirty handling (references #2900)
This commit is contained in:
parent
c0c9a38e39
commit
00a7160d74
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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");
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user