From 6d2bac9d76af5730de6ec870382dcaee0dd392e9 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Thu, 20 Jan 2011 01:56:41 -0700 Subject: [PATCH] IE fixes --- imp/js/imp.js | 3 ++- imp/js/message.js | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) 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() { -- 2.11.0