mirror of
https://github.com/grocy/grocy.git
synced 2025-10-15 17:58:32 +00:00
Prevent error message spam when navigating away before the page has completely loaded
This commit is contained in:
@@ -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)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user