Bug #8880: Close contextmenu when clicking on any element that activates the same...
authorMichael M Slusarz <slusarz@curecanti.org>
Thu, 22 Apr 2010 21:18:09 +0000 (15:18 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Thu, 22 Apr 2010 21:18:09 +0000 (15:18 -0600)
horde/js/ContextSensitive.js

index 2a5c369..e52d0b8 100644 (file)
@@ -237,7 +237,8 @@ var ContextSensitive = Class.create({
         if (!ctx ||
             ctx.disable ||
             !(el = $(ctx.ctx)) ||
-            (leftclick && target == this.baseelt)) {
+            (leftclick && target == this.baseelt) ||
+            this.currentmenu() == ctx.ctx) {
             this.close();
             return false;
         }