Contextmenu for popdown parent got lost somewhere
authorMichael M Slusarz <slusarz@curecanti.org>
Tue, 4 May 2010 08:34:31 +0000 (02:34 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Tue, 4 May 2010 08:34:31 +0000 (02:34 -0600)
imp/js/DimpCore.js

index 9c9050e..2268c2c 100644 (file)
@@ -335,7 +335,17 @@ var DimpCore = {
     addPopdown: function(p, t, d)
     {
         var elt = new Element('SPAN', { className: 'iconImg popdownImg popdown' });
-        $(p).insert({ after: elt });
+        p = $(p);
+
+        p.insert({ after: elt });
+
+        this.addContextMenu({
+            disable: d,
+            id: p.identify(),
+            left: true,
+            offset: p.up(),
+            type: t
+        });
 
         this.addContextMenu({
             disable: d,