mirror of
https://github.com/grocy/grocy.git
synced 2025-04-30 10:05:45 +00:00
Prevent error message spam when navigating away before the page has completely loaded
This commit is contained in:
parent
4c57bf8b9d
commit
f7c4662e2b
@ -442,7 +442,10 @@ $(".user-setting-control").on("change", function()
|
|||||||
},
|
},
|
||||||
function(xhr)
|
function(xhr)
|
||||||
{
|
{
|
||||||
Grocy.FrontendHelpers.ShowGenericError('Error while saving, probably this item already exists', xhr.response)
|
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