Your IP : 18.216.78.185


Current Path : /home/bitrix/ext_www/klimatlend.ua/bitrix/wizards/bitrix/statistic.locations/js/
Upload File :
Current File : /home/bitrix/ext_www/klimatlend.ua/bitrix/wizards/bitrix/statistic.locations/js/import.min.js

function Import(e,t){if(e==null)e=1;if(typeof e=="object")e=1;function n(e){var t=document.getElementById("output");if(t){t.innerHTML+=e}BX.hide(BX("wait_message"))}BX("wait_message").innerHTML=BX.message("JS_CORE_LOADING");BX.show(BX("wait_message"));if(e<=2){if(t!=null){var i=Math.round(t.POS/t.AMOUNT*100);jsPB.Update(i);var o=document.getElementById("wait_message");o.appendChild(document.createTextNode(" "+i+"%("+e+"/2)"))}else{jsPB.Init("progress");var o=document.getElementById("wait_message");o.appendChild(document.createTextNode(" 0% ("+e+"/2)"))}}else if(e==3){jsPB.Update(100)}BX.ajax.post(path+"/scripts/import.php",{import_type:import_type,file_name:file_name,STEP:e,file_position:t?t.file_position:0,lang:LANG},n)}function RunError(){var e=document.getElementById("error_message");if(e)e.style.display="inline"}function RunAgain(){var e=document.getElementById("output");var t=document.getElementById("error_message");e.innerHTML="";t.style.display="none";Run(1)}function DisableButton(e){var t=document.forms[formID][nextButtonID];t.disabled=true}function EnableButton(){var e=document.forms[formID][nextButtonID];e.disabled=false}var jsPB={bInit:false,curValue:0,width:0,Init:function(e){if(this.bInit){this.Update(0);return}var t=document.getElementById(e);if(!t)return false;this.width=t.offsetWidth;var n=document.createElement("DIV");n.id="pb";n.style.height=t.offsetHeight;n.style.backgroundColor="#E0E0E0";n.style.width=this.width+"px";var i=document.createElement("DIV");i.id="pb_indicator";i.style.height=t.offsetHeight;i.style.backgroundColor="blue";i.style.width="0px";n.appendChild(i);t.appendChild(n);this.bInit=true},Update:function(e){this.curValue=e;var t=document.getElementById("pb_indicator");t.style.width=Math.round(this.width*e/100)},Remove:function(e){if(e==null)e=false;var t=document.getElementById("pb");if(t){if(!e)t.parentNode.removeChild(t);else t.parentNode.parentNode.removeChild(t.parentNode)}}};
//# sourceMappingURL=import.map.js