Current Path : /var/www/u0635749/data/www/hobbyclick.ru/public/hobbyclick/bitrix/js/main/ |
Current File : /var/www/u0635749/data/www/hobbyclick.ru/public/hobbyclick/bitrix/js/main/usertype.min.js |
function addNewRow(e,i){var n=document.getElementById(e);var r=n.rows.length;var a=n.insertRow(r-1);var t=a.insertCell(0);var l=n.rows[r-2].cells[0].innerHTML;var s=/\[(\d+)\]/gi;var d=l.match(s);var g=d[d.length-1].replace(/\[|\]/g,"");var o=new RegExp("("+i+")\\[(\\d*)\\]","gi");var f=new RegExp("("+i+")_(\\d*)_","gi");t.innerHTML=l.replace(o,"$1["+(parseInt(g)+1)+"]");t.innerHTML=t.innerHTML.replace(f,"$1_"+(parseInt(g)+1)+"_");var c=BX.findChild(t,{tag:"span","class":"adm-input-file"},true);if(c){c.firstChild.innerHTML=BX.message("JSADM_FILE")}if(BX.adminFormTools){BX.bind(BX.findChild(t,{tag:"input","class":"adm-designed-file"},true),"change",BX.adminFormTools._modified_file_onchange)}setTimeout(function(){var e=BX.findChildren(t,{tag:/^(input|select|textarea)$/i});if(e&&e.length>0){for(var i=0,n=e.length;i<n;i++){if(e[i].form&&e[i].form.BXAUTOSAVE)e[i].form.BXAUTOSAVE.RegisterInput(e[i]);else break}}},10);var m=new RegExp("<script[^>]*?>([\\w\\s\\S]*?)</script>","gmi");var v;while(v=m.exec(t.innerHTML)){if(v[1]){BX.evalGlobal(v[1])}}} //# sourceMappingURL=usertype.map.js