summaryrefslogtreecommitdiff
path: root/program/js/app.js
diff options
context:
space:
mode:
authorsvncommit <devs@roundcube.net>2008-09-17 11:22:05 +0000
committersvncommit <devs@roundcube.net>2008-09-17 11:22:05 +0000
commit8b7f5a3792d1514b7c0310c0f1dc5139958c1502 (patch)
tree4a2f5a442d8541b01caf2fcb83c49439be66856d /program/js/app.js
parentc9e7c742aa15bb9e6cf2db7d4c99887e11507fc2 (diff)
Workaround a (possible) IE bug (#1485309).
Diffstat (limited to 'program/js/app.js')
-rw-r--r--program/js/app.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/program/js/app.js b/program/js/app.js
index 1ee319bbd..0f074f375 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -1240,6 +1240,18 @@ function rcube_webmail()
if (this.env.mailbox.indexOf(id + this.env.delimiter) == 0)
this.command('list', id);
}
+
+ // Work around a bug in IE6 and IE7, see #1485309
+ if ((bw.ie6 || bw.ie7) &&
+ li.nextSibling &&
+ (li.nextSibling.getElementsByTagName("ul").length>0) &&
+ li.nextSibling.getElementsByTagName("ul")[0].style &&
+ (li.nextSibling.getElementsByTagName("ul")[0].style.display!='none'))
+ {
+ li.nextSibling.getElementsByTagName("ul")[0].style.display = 'none';
+ li.nextSibling.getElementsByTagName("ul")[0].style.display = '';
+ }
+
this.http_post('save-pref', '_name=collapsed_folders&_value='+escape(this.env.collapsed_folders));
this.set_unread_count_display(id, false);
}