Sha256: 67423d8a7dae79944f05f7a9088667cbd647bc742da3613b72c0c1750d4211c4
Contents?: true
Size: 518 Bytes
Versions: 11
Compression:
Stored size: 518 Bytes
Contents
App.views.PagarmeForm.addChild('PaymentChoice', { el: '.list_payment', events: { 'change input[type="radio"]' : 'onListPaymentChange' }, onListPaymentChange: function(e){ var that = this.parent; $('.payment_section').fadeOut('fast', function(){ var currentElementId = $(e.currentTarget).attr('id'); that.$('#'+currentElementId+'_section').fadeIn('fast'); }); }, activate: function(){ var that = this.parent; that.$('input#payment_type_credit_card').click(); } });
Version data entries
11 entries across 11 versions & 1 rubygems