Sha256: 2e27d0bf59209776e76a1dedf99f02a91236812af4e61a9841b03f01506cee75

Contents?: true

Size: 447 Bytes

Versions: 2

Compression:

Stored size: 447 Bytes

Contents

App.addChild('WePayForm', _.extend({
  el: '#catarse_wepay_form',

  events: {
    'click input[type=submit]': 'onSubmitToWePay',
  },

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

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
catarse_wepay-0.0.2 app/assets/javascripts/catarse_wepay/paypal_form.js
catarse_wepay-0.0.1 app/assets/javascripts/catarse_wepay/paypal_form.js