diff options
author | Aleksander Machniak <alec@alec.pl> | 2013-03-22 19:06:14 +0100 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2013-03-22 19:06:14 +0100 |
commit | f38d15c700303b3d63e7ad1b06a418986ac815f9 (patch) | |
tree | 19752392eed9eb89090ce18b1b6a7c8547e2fb68 /program/js/common.js | |
parent | 39f40104f06cdcd9b8153b9fa4a32e5a7686bbb2 (diff) |
Better fix for IE9 issue with document.activeElement error (#1489008)
Diffstat (limited to 'program/js/common.js')
-rw-r--r-- | program/js/common.js | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/program/js/common.js b/program/js/common.js index 7ad1891ec..1075225b4 100644 --- a/program/js/common.js +++ b/program/js/common.js @@ -743,12 +743,8 @@ jQuery.fn.placeholder = function(text) { }); // Do not blur currently focused element - // Catch "unspecified error" in IE9 (#1489008) - try { - if (this != document.activeElement) - elem.blur(); - } - catch(e) {} + if (this != document.activeElement) + elem.blur(); } }); }; |