New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disable via js double click on remove link and update button, fixes #187... #1934

Closed
wants to merge 1 commit into
base: master
from

Conversation

Projects
None yet
2 participants
@kennyadsl
Member

kennyadsl commented Sep 7, 2012

No description provided.

@@ -1,6 +1,9 @@
$ ->
if ($ 'form#update-cart').is('*')
($ 'form#update-cart a.delete').show().on 'click', ->
($ 'form#update-cart a.delete').show().one 'click', ->

This comment has been minimized.

@radar

radar Sep 8, 2012

Member

I think you may have made a mistake here.

@radar

radar Sep 8, 2012

Member

I think you may have made a mistake here.

This comment has been minimized.

@kennyadsl

kennyadsl Sep 8, 2012

Member

one() is a jquery method that allows to execute the handler at most once per element as defined here: http://api.jquery.com/one/
It allows to prevent double click on the link.

@kennyadsl

kennyadsl Sep 8, 2012

Member

one() is a jquery method that allows to execute the handler at most once per element as defined here: http://api.jquery.com/one/
It allows to prevent double click on the link.

This comment has been minimized.

@radar

radar Sep 8, 2012

Member

Ah, alright then. I didn't know about one :)

@radar

radar Sep 8, 2012

Member

Ah, alright then. I didn't know about one :)

This comment has been minimized.

@kennyadsl

kennyadsl Sep 8, 2012

Member

Even I until yesterday :)

@kennyadsl

kennyadsl Sep 8, 2012

Member

Even I until yesterday :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment