Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready ->
- $('#cart .close-btn').click ->
- line_item = $(this)
- $.ajax
- type: 'DELETE'
- url: line_item.data('href')
- success: (data) ->
- line_item.closest('tr').fadeOut()
- stats = data.split(',')
- $("#cart_link").find("span").text("(" + stats[1]+ ")")
- $('#cart tr.total td.total.price').text('Total: $' + stats[0])
- false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement