diff options
| author | robin <robin@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-09-17 11:22:05 +0000 |
|---|---|---|
| committer | robin <robin@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-09-17 11:22:05 +0000 |
| commit | 29f2b641b998bb3d46dc91c3b098955f2430d1a9 (patch) | |
| tree | c0e595669d514cda6d68a37d038d3f586e105a6e /roundcubemail/program/js | |
| parent | 6e22f7bb324e6c456a4ef56f415e63a79523850a (diff) | |
Workaround a (possible) IE bug (#1485309).
git-svn-id: https://svn.roundcube.net/trunk@1813 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/js')
| -rw-r--r-- | roundcubemail/program/js/app.js | 12 | ||||
| -rw-r--r-- | roundcubemail/program/js/common.js | 1 |
2 files changed, 13 insertions, 0 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js index 1ee319bbd..0f074f375 100644 --- a/roundcubemail/program/js/app.js +++ b/roundcubemail/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); } diff --git a/roundcubemail/program/js/common.js b/roundcubemail/program/js/common.js index be98feb28..5049061b4 100644 --- a/roundcubemail/program/js/common.js +++ b/roundcubemail/program/js/common.js @@ -49,6 +49,7 @@ function roundcube_browser() this.ie4 = (this.ie && !this.dom); this.ie5 = (this.dom && this.appver.indexOf('MSIE 5')>0); this.ie6 = (this.dom && this.appver.indexOf('MSIE 6')>0); + this.ie7 = (this.dom && this.appver.indexOf('MSIE 7')>0); this.mz = (this.dom && this.ver>=5); // (this.dom && this.product=='Gecko') this.ns = ((this.ver<5 && this.name=='Netscape') || (this.ver>=5 && this.vendor.indexOf('Netscape')>=0)); |
