(function (ns) { ns.Form = function () { qs.FormNode.apply(this, arguments); this.node.on('qsFormValidationSuccess', _.bind(this.onValid, this)); }; ns.Form.prototype = Object.create(qs.FormNode.prototype); var proto = ns.Form.prototype; proto.onValid = function (event) { this.showThankYouMessage(); }; proto.showThankYouMessage = function () { this.get('formContainer').hide(); this.get('thanksContainer').show(); this.node.data('stopSubmit', true); }; })(qs.defineNS('app.sideBlock'));