Autofix small errors
This commit is contained in:
+6
-6
@@ -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)){
|
||||
|
||||
Reference in New Issue
Block a user