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
+10 -10
View File
@@ -145,14 +145,14 @@ ImageSizeDetector.init = function (src, callback) {
if (callback) {
callback();
}
}
};
ImageSizeDetector.isNotEmpty = function () {
return ImageSizeDetector.width != null && ImageSizeDetector.width > 0 &&
ImageSizeDetector.height != null && ImageSizeDetector.height > 0;
}
};
ImageSizeDetector.isEmpty = function () {
return !ImageSizeDetector.isNotEmpty();
}
};
SmileParser = new Object();
SmileParser.map = null;
@@ -174,7 +174,7 @@ SmileParser.init = function (callback) {
}
});
}
};
SmileParser.replace = function (str) {
var result = str;
for (smileCode in SmileParser.map) {
@@ -186,14 +186,14 @@ SmileParser.replace = function (str) {
result = result.replace(smileCode, "<img src='" + smileURL + "'/>");
}
return result;
}
};
SmileParser.proceed = function () {
jQuery("p.pleft").each(function (index, value) {
var html = jQuery(value).html();
jQuery(value).html(SmileParser.replace(html));
});
}
};
SmileParser.smileList = [];
SmileParser.prepareSmileList = function () {
SmileParser.smileList = [];
@@ -207,13 +207,13 @@ SmileParser.prepareSmileList = function () {
SmileParser.smileList.push(smileListItem);
}
return SmileParser.smileList;
}
};
SmileParser.oldMap = {
":)":"/i/forum/icon7.gif",
":(":"/i/smile/grust.gif",
":D":"/i/smile/laugh.gif",
";)":"/i/smile/wink.gif"
}
};
function storeCaret(text) {
if (text.createTextRange) {
@@ -254,7 +254,7 @@ function cs(s1, s2, formname) {
} else {
if ((str.text != "") && (s.indexOf(str.text) >= 0)) {
if (str.text.indexOf(s1) == 0)
return ''
return '';
str.text = s1 + str.text + s2;
} else {
if (document[formname].text.createTextRange
@@ -365,4 +365,4 @@ var $addFavoriteSet = function () {
});
});
});
}
};