Fix mailbox click handler
authorMichael M Slusarz <slusarz@curecanti.org>
Thu, 12 Mar 2009 19:22:51 +0000 (13:22 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Fri, 13 Mar 2009 03:20:21 +0000 (21:20 -0600)
imp/js/src/mailbox.js

index 0fea511..5d00ffd 100644 (file)
@@ -295,15 +295,14 @@ var ImpMessage = {
                 } else if (elt.hasClassName('viewAction')) {
                     this.submit('view_messages');
                 } else if (elt.hasClassName('hideAction') || elt.hasClassName('purgeAction')) {
-                       return;
+                    return;
                 }
 
                 e.stop();
                 return;
-            }
-
-            if (!id) {
-                return;
+            } else if (!id) {
+                elt = elt.up();
+                continue;
             }
 
             switch (id) {