Sha256: 105dba80542c877fad6656f67feff0fb85d0d584fa2e5c43ced85968423c6df0

Contents?: true

Size: 520 Bytes

Versions: 3

Compression:

Stored size: 520 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 = this.$('.loader img');
    this.parent.contributionId = $('input#contribution_id').val();
    this.parent.projectId = $('input#project_id').val();
  },

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

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
catarse_paypal_express-3.0.2 app/assets/javascripts/catarse_paypal_express/paypal_form.js
funddit_paypal_express-3.0.1 app/assets/javascripts/catarse_paypal_express/paypal_form.js
catarse_paypal_express-3.0.1 app/assets/javascripts/catarse_paypal_express/paypal_form.js