{:uriI"file:///Users/craigphares/Development/tang/app/assets/javascripts/tang/subscriptions.coffee?type=application/javascript&pipeline=self&id=518eb921678ff13feb1fe4d0404dae1a00f9cac51d095161be4d23e4ec73ee12:ET:load_pathI"?/Users/craigphares/Development/tang/app/assets/javascripts;T: filenameI"Y/Users/craigphares/Development/tang/app/assets/javascripts/tang/subscriptions.coffee;T: nameI"tang/subscriptions;T:logical_pathI"tang/subscriptions.self.js;T:content_typeI"application/javascript;T: sourceI"(function() { var stripeResponseHandler; $(function() { var $form; $form = $('#payment-form'); return $form.submit(function(event) { $form.find('.submit').prop('disabled', true); Stripe.card.createToken($form, stripeResponseHandler); return false; }); }); stripeResponseHandler = function(status, response) { var $form, token; $form = $('#payment-form'); if (response.error) { $form.find('.payment-errors').text(response.error.message); return $form.find('.submit').prop('disabled', false); } else { token = response.id; $form.append($('').val(token)); return $form.get(0).submit(); } }; }).call(this); ;T: metadata{ :dependencieso:Set: @hash} I"environment-version;TTI"environment-paths;TTI"rails-env;TTI"jprocessors:type=application/javascript&file_type=application/javascript&engines=.coffee&pipeline=self;TTI"gfile-digest:///Users/craigphares/Development/tang/app/assets/javascripts/tang/subscriptions.coffee;TTF: requiredo;;}F: stubbedo;;}F: linkso;;}F: charsetI" utf-8;F: digest"%,?|9~>]: lengthi:dependencies_digest"% FKJKU Lp9 "y}SfV$?z:idI"E518eb921678ff13feb1fe4d0404dae1a00f9cac51d095161be4d23e4ec73ee12;F: mtimel+\W