Skip to content

Commit

Permalink
Remove extra slash from Remove ingredient call in Edit Recipe.
Browse files Browse the repository at this point in the history
  • Loading branch information
Todd Rogers committed Apr 6, 2017
1 parent ec0347b commit 37b50d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions View/Recipes/edit.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,9 @@ $recipeId = isset($recipe['Recipe']['id']) ? $recipe['Recipe']['id'] : "";
if (confirm("<?php echo __("Are you sure you wish to remove this item?");?>")) {
var itemId = $(this).attr('itemId');
if ($(this).is("[ingredient-delete]")) {
ajaxGet(baseUrl + "/Recipes/RemoveIngredientMapping/" + recipeId + "/" + itemId, "ingredientDeleteResponse");
ajaxGet(baseUrl + "Recipes/RemoveIngredientMapping/" + recipeId + "/" + itemId, "ingredientDeleteResponse");
} else {
ajaxGet(baseUrl + "/Recipes/RemoveRecipeMapping/" + recipeId + "/" + itemId, "recipeDeleteResponse");
ajaxGet(baseUrl + "Recipes/RemoveRecipeMapping/" + recipeId + "/" + itemId, "recipeDeleteResponse");
}
$(this).parent().parent().remove();
}
Expand Down

0 comments on commit 37b50d8

Please sign in to comment.