Skip to content
This repository has been archived by the owner on Jun 18, 2019. It is now read-only.

Commit

Permalink
hotfix: cart 삭제기능 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
inhobaek committed Aug 25, 2015
1 parent a8cbfcf commit 4ee211e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
7 changes: 2 additions & 5 deletions app/views/carts/_cart_row.html.erb
Expand Up @@ -22,7 +22,7 @@
<div class="btn-group">

<%= f.submit "수량 변경", class: "btn btn-primary" %>
<%= link_to "삭제", order_item, { data: { confirm: "카트에서 '#{order_item.product.name}'를 삭제하시겠습니까?" }, method: :delete, remote: true, class: "btn btn-danger" } %>
<%= link_to "삭제", order_item, { method: :delete, remote: true, class: "btn btn-danger" } %>
</div>
</div>
</div>
Expand All @@ -32,7 +32,4 @@
</div>

</div>
</div>
<center>
<a class="btn btn-danger" data-confirm="결제하시겠습니까?" data-method="delete" data-remote="true" href="#" rel="nofollow">PAYCO로 결제하기</a>
</center>
</div>
5 changes: 4 additions & 1 deletion app/views/carts/show.html.erb
@@ -1,3 +1,6 @@
<div class="shopping-cart">
<%= render "shopping_cart" %>
</div>
</div>
<center>
<a class="btn btn-danger" data-confirm="결제하시겠습니까?" data-method="delete" data-remote="true" href="#" rel="nofollow">PAYCO로 결제하기</a>
</center>

0 comments on commit 4ee211e

Please sign in to comment.