Sha256: f86a13bb58579d11dc57fbf5b637b1ff0995b5acc6bf6b404aa9c310c161bed4
Contents?: true
Size: 519 Bytes
Versions: 32
Compression:
Stored size: 519 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
32 entries across 32 versions & 1 rubygems