mirror of
https://github.com/grocy/grocy.git
synced 2025-04-30 01:55:47 +00:00
Prevent error message spam when navigating away before the page has completely loaded
This commit is contained in:
parent
4c57bf8b9d
commit
f7c4662e2b
@ -441,9 +441,12 @@ $(".user-setting-control").on("change", function()
|
||||
// Nothing to do...
|
||||
},
|
||||
function(xhr)
|
||||
{
|
||||
if (!xhr.statusText.isEmpty())
|
||||
{
|
||||
Grocy.FrontendHelpers.ShowGenericError('Error while saving, probably this item already exists', xhr.response)
|
||||
}
|
||||
}
|
||||
);
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user