RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: vanceza
In subscriptions.js.coffee:
subscription = setupForm: -> $('#new_subscription').submit -> $('input[type=submit]').attr('disabled', true) subscription.processCard() false
You need to add 'false' to prevent the submit button from working and going to the next page.
In subscriptions.js.coffee:
You need to add 'false' to prevent the submit button from working and going to the next page.