mirror of
https://github.com/grocy/grocy.git
synced 2025-08-17 11:06:36 +00:00
Optimized Userfield save event handling (fixes #2458)
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
(xhr) =>
|
||||
{
|
||||
Grocy.FrontendHelpers.EndUiBusy("user-form");
|
||||
Grocy.FrontendHelpers.ShowGenericError('Error while saving, probably this item already exists', xhr.response)
|
||||
Grocy.FrontendHelpers.ShowGenericError('Error while saving, probably this item already exists', xhr.response);
|
||||
}
|
||||
);
|
||||
}
|
||||
@@ -63,7 +63,7 @@ $('#save-user-button').on('click', function(e)
|
||||
{
|
||||
jsonData.picture_file_name = null;
|
||||
|
||||
Grocy.Api.DeleteFile(Grocy.UserPictureFileName, 'userpictures', {},
|
||||
Grocy.Api.DeleteFile(Grocy.UserPictureFileName, 'userpictures',
|
||||
function(result)
|
||||
{
|
||||
// Nothing to do
|
||||
@@ -71,7 +71,7 @@ $('#save-user-button').on('click', function(e)
|
||||
function(xhr)
|
||||
{
|
||||
Grocy.FrontendHelpers.EndUiBusy("user-form");
|
||||
Grocy.FrontendHelpers.ShowGenericError('Error while saving, probably this item already exists', xhr.response)
|
||||
Grocy.FrontendHelpers.ShowGenericError('Error while saving, probably this item already exists', xhr.response);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user