Sha256: ad4799dc74d191418b63586e34e2e6820831ce23493aaa57852209a1ec866104

Contents?: true

Size: 499 Bytes

Versions: 5

Compression:

Stored size: 499 Bytes

Contents

App.addChild('PayPalForm', _.extend({
  el: '#catarse_paypal_express_form',

  events: {
    'click input[type=submit]': 'onSubmitToPayPal',
    'keyup #user_document' : 'onUserDocumentKeyup'
  },

  activate: function() {
    this.loader = $('.loader');
    this.parent.backerId = $('input#backer_id').val();
    this.parent.projectId = $('input#project_id').val();
  },

  onSubmitToPayPal: function(e) {
    $(e.currentTarget).hide();
    this.loader.show();
  }
}, window.PayPal.UserDocument));

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
catarse_paypal_express-2.1.2 app/assets/javascripts/catarse_paypal_express/paypal_form.js
catarse_paypal_express-2.1.1 app/assets/javascripts/catarse_paypal_express/paypal_form.js
catarse_paypal_express-2.1.0 app/assets/javascripts/catarse_paypal_express/paypal_form.js
catarse_paypal_express-2.0.0 app/assets/javascripts/catarse_paypal_express/paypal_form.js
catarse_paypal_express-1.0.0 app/assets/javascripts/catarse_paypal_express/paypal_form.js