IE 6 hover fix for context menus.
authorMichael M Slusarz <slusarz@curecanti.org>
Fri, 6 Mar 2009 07:50:44 +0000 (00:50 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Fri, 6 Mar 2009 07:52:06 +0000 (00:52 -0700)
imp/js/src/DimpBase.js

index 8ffb548..70b29b8 100644 (file)
@@ -2359,6 +2359,12 @@ var DimpBase = {
             $('dimpbarActions', 'serviceActions', 'applicationfolders', 'specialfolders', 'normalfolders').compact().invoke('select', 'LI').flatten().compact().each(function(e) {
                 e.observe('mouseover', e.addClassName.curry('over')).observe('mouseout', e.removeClassName.curry('over'));
             });
+
+            /* These are links, but they have no href attribute. Hovering
+             * requires something in href on IE6. */
+            $$('.context A').each(function(e) {
+                e.writeAttribute('href', '');
+            });
         }
     },