summaryrefslogtreecommitdiff
path: root/program/js/common.js
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-03-22 19:06:14 +0100
committerAleksander Machniak <alec@alec.pl>2013-03-22 19:07:20 +0100
commitad5cefeefc2dec285f9f9bb177e5bd190d0e6996 (patch)
tree24fb43f3d0c0f03c154e9e0543b5366cc103db8a /program/js/common.js
parent73f094ff3ca151e928e61cc20578310e44d455a3 (diff)
Better fix for IE9 issue with document.activeElement error (#1489008)
Diffstat (limited to 'program/js/common.js')
-rw-r--r--program/js/common.js8
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();
}
});
};