Current Path : /var/www/www-root/data/www/monolith-realty.ru/bitrix/wizards/bitrix/perfmon.pgsql/js/ |
Current File : /var/www/www-root/data/www/monolith-realty.ru/bitrix/wizards/bitrix/perfmon.pgsql/js/wizard.min.js |
(function(){BX.namespace("BX.Wizard");BX.Wizard.PgSql={nextButtonID:"",formID:"",LANG:"",path:"",sessid:"",connection:"",init(t){if(BX.Type.isObject(t)){this.nextButtonID=t.nextButtonID||"";this.formID=t.formID||"";this.LANG=t.LANG;this.path=t.path||"";this.sessid=t.sessid||"";this.connection=t.connection||""}},action(t,e=""){BX.ajax({method:"POST",dataType:"html",url:`${this.path}/scripts/${t}.php`,data:{sessid:this.sessid,lang:this.LANG,connection:this.connection,next:e},onsuccess:BX.delegate((t=>{const e=document.getElementById("output");if(e){e.innerHTML=t;if(t.includes("pgwiz_err")){document.forms[this.formID].NextStepID.value=document.forms[this.formID].CurrentStepID.value;const t=document.forms[this.formID][this.nextButtonID];t.disabled=false;t.value=BX.Loc.getMessage("PGWIZ_RETRYSTEP_BUTTONTITLE")}}}),this),onfailure:BX.delegate(((t,e,n)=>{const s=document.getElementById("output");if(s){s.innerHTML=BX.Loc.getMessage("PGWIZ_FIX_AND_RETRY");document.forms[this.formID].NextStepID.value=document.forms[this.formID].CurrentStepID.value;const t=document.forms[this.formID][this.nextButtonID];t.disabled=false;t.value=BX.Loc.getMessage("PGWIZ_RETRYSTEP_BUTTONTITLE")}}),this)})},RunError(){const t=document.getElementById("error_message");if(t){BX.Dom.style(t,"display","inline")}},RunAgain(){const t=document.getElementById("output");const e=document.getElementById("error_message");t.innerHTML="";BX.Dom.style(e,"display","none");window.Run(1)},DisableButton(){const t=document.forms[this.formID][this.nextButtonID];t.disabled=true},EnableButton(){const t=document.forms[this.formID][this.nextButtonID];t.disabled=false}}})(); //# sourceMappingURL=wizard.map.js