Commit 8d8592ff authored by Alexander.Trofimov's avatar Alexander.Trofimov

fix ie9 problems with loading scripts

parent 90809774
......@@ -2707,7 +2707,12 @@ CUserCacheColor.prototype.init = function(nColor) {
script.type = 'text/javascript';
script.src = url;
script.onreadystatechange = callback;
script.onreadystatechange = function () {
if (this.readyState === 'complete' || this.readyState === 'loaded') {
script.onreadystatechange = null;
setTimeout(callback, 0);
}
};
script.onload = callback;
// Fire the loading
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment