26 Feb 2014, 13:05
Generic-user-small

Jooin Kim (15 posts)

I wrote the code as described.

it works. unlike some other guys, double submit thing didn’t occur to me. if i click an image, it adds an item to the cart. but css transition doesn’t work. clicking the ‘add to cart’ button works as ajax. but clicking image trigger refreshing the page with no css transition.

I think in the file store.js.coffe

$(document).on “ready, page:change”, -> 

 $(‘.store .entry > img’).click -> 

    $(this).parent().find(‘:submit’).click -> 

” $(this).parent().find(‘:submit’).click -> ‘

this just triggeres the submit action with no ajax…

did I do something wrong?

Or is anyone having the same issue?

  You must be logged in to comment