summaryrefslogtreecommitdiff
path: root/plugins/legacy_browser/js
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-04-15 19:11:00 +0200
committerAleksander Machniak <alec@alec.pl>2014-04-15 19:11:00 +0200
commit2e79d8d539ebc1830553a49a8080d0356c9d9531 (patch)
tree80411db7a7e042cc12e3d9b7d53230d3902497da /plugins/legacy_browser/js
parentb58abd86c596522507442e399a70a7d30430b844 (diff)
Move more IE<9 specific code to legacy_browser
Diffstat (limited to 'plugins/legacy_browser/js')
-rw-r--r--plugins/legacy_browser/js/iehacks.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/plugins/legacy_browser/js/iehacks.js b/plugins/legacy_browser/js/iehacks.js
new file mode 100644
index 000000000..129ad6003
--- /dev/null
+++ b/plugins/legacy_browser/js/iehacks.js
@@ -0,0 +1,20 @@
+
+// Make getElementById() case-sensitive on IE7
+document._getElementById = document.getElementById;
+document.getElementById = function(id) {
+ var i = 0, obj = document._getElementById(id);
+
+ if (obj && obj.id != id)
+ while ((obj = document.all[i]) && obj.id != id)
+ i++;
+
+ return obj;
+}
+
+// fix missing :last-child selectors
+$(document).ready(function() {
+ if (rcmail && rcmail.env.skin != 'classic')
+ $('ul.treelist ul').each(function(i, ul) {
+ $('li:last-child', ul).css('border-bottom', 0);
+ });
+});