From: Michael M Slusarz Date: Thu, 20 Jan 2011 08:56:41 +0000 (-0700) Subject: IE fixes X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=6d2bac9d76af5730de6ec870382dcaee0dd392e9;p=horde.git IE fixes --- diff --git a/imp/js/imp.js b/imp/js/imp.js index 9474ac6ea..c2ece1c10 100644 --- a/imp/js/imp.js +++ b/imp/js/imp.js @@ -129,7 +129,8 @@ document.observe('dom:loaded', function() { // If menu is present, attach event handlers to folder switcher. var tmp = $('openfoldericon'); if (tmp) { - $('menuform').observe('change', IMP.menuFolderSubmit.bind(IMP)); + // Observe actual element since IE does not bubble change events. + $('menu').down('[name=mailbox]').observe('change', IMP.menuFolderSubmit.bind(IMP)); tmp.down().observe('click', IMP.menuFolderSubmit.bind(IMP, true)); } }); diff --git a/imp/js/message.js b/imp/js/message.js index 034f27995..75b98f559 100644 --- a/imp/js/message.js +++ b/imp/js/message.js @@ -120,16 +120,16 @@ var ImpMessage = { return; } - fixcopy = iefix.clone(false); + fixcopy = $(iefix.clone(false)); li.insert(fixcopy); fixcopy.clonePosition(ul); zindex = li.getStyle('zIndex'); - if (zindex == '') { + if (zindex === null || zindex == '') { li.setStyle({ zIndex: 2 }); fixcopy.setStyle({ zIndex: 1 }); } else { - fixcopy.setStyle({ zIndex: parseInt(zindex) - 1 }); + fixcopy.setStyle({ zIndex: parseInt(zindex, 10) - 1 }); } li.observe('mouseout', function() {