TIST-31: Favorites model and ajax endpoint #23
@ -174,7 +174,7 @@ function ajax_favorites()
|
||||
return $result;
|
||||
}
|
||||
else {
|
||||
return get_ajax_error("This recipe in your favorite list is not exists", 400);
|
||||
return get_ajax_error("This recipe from your favorites list does not exist.", 400);
|
||||
}
|
||||
}
|
||||
|
||||
@ -185,6 +185,6 @@ function ajax_favorites()
|
||||
$favorite->field_recipe_id = $recipe_id;
|
||||
$favorite->save();
|
||||
|
||||
$result['success'] = 'You have successfully added recipe in your favorite list';
|
||||
$result['success'] = 'You have successfully added the recipe to your favorites list';
|
||||
return $result;
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user