mirror of
https://github.com/grocy/grocy.git
synced 2025-08-16 18:54:35 +00:00
Only reload the page on external changes when there is no unsaved form data (fixes #73)
This commit is contained in:
@@ -191,3 +191,12 @@ Grocy.FrontendHelpers.ShowGenericError = function(message, exception)
|
||||
|
||||
console.error(exception);
|
||||
}
|
||||
|
||||
$("form").on("keyup paste", "input, textarea", function()
|
||||
{
|
||||
$(this).closest("form").addClass("is-dirty");
|
||||
});
|
||||
$("form").on("click", "select", function()
|
||||
{
|
||||
$(this).closest("form").addClass("is-dirty");
|
||||
});
|
||||
|
Reference in New Issue
Block a user