Skip to content

Instantly share code, notes, and snippets.

View stephensprinkle-zz's full-sized avatar
🤔
Thinking...

Stephen Sprinkle stephensprinkle-zz

🤔
Thinking...
View GitHub Profile
@stephensprinkle-zz
stephensprinkle-zz / subscriptions.js
Created June 11, 2012 21:35 — forked from justinthiele/subscriptions.js
Updated Subscriptions JS (fixed to work with dynamically loaded forms)
$(function() {
var subscription;
$(function() {
Stripe.setPublishableKey($('meta[name="stripe-key"]').attr('content'));
return subscription.setupForm();
});
subscription = {
setupForm: function() {
return $('#new_subscription').submit(function() {
$('input[type=submit]').attr('disabled', true);