Sha256: a25ca8cc9be01751c219cc162bf4a0ae36b4d14bf4074742fc3c33df73a3fa2d

Contents?: true

Size: 511 Bytes

Versions: 6

Compression:

Stored size: 511 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.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

6 entries across 6 versions & 1 rubygems

Version Path
catarse_paypal_express-2.2.4 app/assets/javascripts/catarse_paypal_express/paypal_form.js
catarse_paypal_express-3.0.0 app/assets/javascripts/catarse_paypal_express/paypal_form.js
catarse_paypal_express-2.2.3 app/assets/javascripts/catarse_paypal_express/paypal_form.js
catarse_paypal_express-2.2.2 app/assets/javascripts/catarse_paypal_express/paypal_form.js
catarse_paypal_express-2.2.1 app/assets/javascripts/catarse_paypal_express/paypal_form.js
catarse_paypal_express-2.2.0 app/assets/javascripts/catarse_paypal_express/paypal_form.js