Fixes for IE7/8 to avoid problems with javascript on some screens.
[fa-stable.git] / js / utils.js
index a801a13ecd59ae1c81e1e9c01161510963a3ed54..cd416339e143dccfb65b69f4bdcbebb425e90e02 100644 (file)
@@ -119,7 +119,7 @@ JsHttpRequest._request = function(trigger, form, tout, retry) {
                          } else if(cmd=='fc') { // set focus
                                  _focus = data;
                          } else if(cmd=='js') {        // evaluate js code
-                                 eval(data);
+                                       setTimeout(function(){eval(data)}, 200); // timeout required by IE7/8
                          } else if(cmd=='rd') {        // client-side redirection
                                  window.location = data;
                          } else if(cmd=='pu') {        // pop-up
@@ -352,4 +352,4 @@ function element_pos(e) {
        // parentNode has style.display set to none
        if (parentNode != document.documentElement) return null;
        return res;
-}
\ No newline at end of file
+}