Fix success message on failure
This commit is contained in:
parent
065ccf5cb7
commit
07e38ced91
2 changed files with 14 additions and 2 deletions
|
@ -587,6 +587,10 @@ $(function () {
|
|||
.then(handleFetchError)
|
||||
.then(handleFetchResponse)
|
||||
.then(function(response) {
|
||||
if (true !== response.success) {
|
||||
return;
|
||||
}
|
||||
|
||||
$('body').toast({ message: text.toast_wish_update });
|
||||
|
||||
wishlistsRefresh();
|
||||
|
@ -614,6 +618,10 @@ $(function () {
|
|||
.then(handleFetchError)
|
||||
.then(handleFetchResponse)
|
||||
.then(function(response) {
|
||||
if (true !== response.success) {
|
||||
return;
|
||||
}
|
||||
|
||||
$('body').toast({ message: text.toast_wish_update });
|
||||
|
||||
wishlistsRefresh();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue