Autofix small errors

This commit is contained in:
Igor Barkov [iwork]
2019-01-16 19:45:30 +02:00
parent d330721114
commit 094b8a6027
313 changed files with 736 additions and 2280 deletions
+6 -6
View File
@@ -60,9 +60,9 @@ function dump(arr,level) {
Загрузить HTML в контейнер
*/
function ajaxLoad(url,iid,params){
xmlHttpp[iid]=GetXmlHttpObject1()
xmlHttpp[iid]=GetXmlHttpObject1();
if (xmlHttpp[iid]==null){
alert ("Browser does not support HTTP Request")
alert ("Browser does not support HTTP Request");
return
}
//document.getElementById(iid).innerHTML="<img src='./i/loading2.gif' />";
@@ -75,7 +75,7 @@ function ajaxLoad(url,iid,params){
if(xmlHttpp[iid].responseText.indexOf('<!--CONTAINER=') == 0){
var a = xmlHttpp[iid].responseText.indexOf('-->');
if(a >= 0){
var b = xmlHttpp[iid].responseText.substr(14,a-14)
var b = xmlHttpp[iid].responseText.substr(14,a-14);
if(document.getElementById(b) != undefined){
container = document.getElementById(b);
} else{
@@ -110,7 +110,7 @@ function ajaxLoad(url,iid,params){
// Вызываем своё событие
$(window).trigger('ajaxLoadComplete');
}
}
};
xmlHttpp[iid].setRequestHeader("Accept-Charset", "windows-1251");
xmlHttpp[iid].setRequestHeader("Accept-Language","ru, en");
xmlHttpp[iid].setRequestHeader("Content-Type","application/x-www-form-urlencoded");
@@ -155,7 +155,7 @@ appearance = {
error: function(){
$('div#appearance_out').text('error');
}
}
};
core = {
@@ -202,7 +202,7 @@ core = {
document.location = document.location;
}
}
};
function str_replace ( search, replace, subject ) {
if(!(replace instanceof Array)){