Sha256: ac94372bd404a10cf18539f33fed54081c00494917dd326c5c2bb45d671e5217
Contents?: true
Size: 1003 Bytes
Versions: 31
Compression:
Stored size: 1003 Bytes
Contents
App.views.MoipForm.addChild('PaymentSlip', _.extend({ el: '#payment_type_boleto_section', events: { 'click input#build_boleto' : 'onBuildBoletoClick', 'click .link_content a' : 'onContentClick', 'keyup #user_document_payment_slip' : 'onUserDocumentPaymentSlipKeyup' }, onUserDocumentPaymentSlipKeyup: function(e){ var $documentField = $(e.currentTarget); this.onUserDocumentKeyup(e); $('input#build_boleto').attr('disabled', !$documentField.hasClass('ok')); }, activate: function(options){ this.moipForm = this.parent; this.$('input#user_document_payment_slip').mask("999.999.999-99"); }, onBuildBoletoClick: function(e){ var that = this; e.preventDefault(); $(e.currentTarget).hide(); that.moipForm.loader.show(); // Get token and send payment that.moipForm.getMoipToken(function(){ var settings = { "Forma":"BoletoBancario" } MoipWidget(settings); }); } }, App.views.MoipForm.UserDocument));
Version data entries
31 entries across 31 versions & 1 rubygems