Fixed page reloads with unsaved form data and "Auto reload on external changes" enabled (fixes #265)

This commit is contained in:
Bernd Bestel
2019-06-09 08:58:46 +02:00
parent f736c4de44
commit a56f8be19e
2 changed files with 4 additions and 3 deletions

View File

@@ -374,11 +374,11 @@ Grocy.FrontendHelpers.ShowGenericError = function(message, exception)
console.error(exception);
}
$("form").on("keyup paste", "input, textarea", function()
$(document).on("keyup paste change", "input, textarea", function()
{
$(this).closest("form").addClass("is-dirty");
});
$("form").on("click", "select", function()
$(document).on("click", "select", function()
{
$(this).closest("form").addClass("is-dirty");
});