/** * @requires $ jQuery * @requires _ UnderscoreJS */ (function (/* Object */ ns) { "use strict"; ns.VerificationForm = function (options) { qs.FormNode.apply(this, arguments); this.init(); }; var proto = ns.VerificationForm.prototype = Object.create(qs.FormNode.prototype); proto.init = function () { Qs_Form.setFormOption(this.node.prop('id'), 'onSuccessCallback', _.bind(this.onSuccessCallback, this)); this.get('dialogConfirmButton').on('click', _.bind(this.confirmOnClick, this)); }; proto.onSuccessCallback = function () { this.get('dialog').modal('show'); }; proto.confirmOnClick = function () { this.node.append(''); this.submit(); return false; }; proto.submit = function () { this.node.get(0).submit(); }; })(qs.defineNS('app.payment.form'));