| Current Path : /var/www/homesaver/www/bitrix/components/bitrix/rest.apconnect/templates/.default/ |
| Current File : /var/www/homesaver/www/bitrix/components/bitrix/rest.apconnect/templates/.default/script.min.js |
(function(){BX.namespace("BX.Rest.ApConnect");if(!BX.Rest.ApConnect){return}function n(){}n.prototype={init:function(n){this.isRestAvailable=n.isRestAvailable==="Y";this.formId=n.formId;this.landingCode=n.landingCode;if(!this.isRestAvailable&&this.landingCode!==""){this.eventHold=true;BX.bind(BX(this.formId),"submit",BX.delegate(function(n){if(this.eventHold){n.preventDefault();this.openLanding()}},this))}},openLanding:function(){if(this.landingCode!==""){top.BX.UI.InfoHelper.show(this.landingCode);this.eventHold=true}}};BX.Rest.ApConnect=new n})(window);
//# sourceMappingURL=script.map.js