IE fixes
authorMichael M Slusarz <slusarz@curecanti.org>
Thu, 20 Jan 2011 08:56:41 +0000 (01:56 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Thu, 20 Jan 2011 17:49:31 +0000 (10:49 -0700)
imp/js/imp.js
imp/js/message.js

index 9474ac6..c2ece1c 100644 (file)
@@ -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));
     }
 });
index 034f279..75b98f5 100644 (file)
@@ -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() {