Revision: 4403
          http://vexi.svn.sourceforge.net/vexi/?rev=4403&view=rev
Author:   clrg
Date:     2012-06-03 03:03:16 +0000 (Sun, 03 Jun 2012)
Log Message:
-----------
Close context menu after selecting an item

Modified Paths:
--------------
    trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/role/contextable.t

Modified: trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/role/contextable.t
===================================================================
--- trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/role/contextable.t        
2012-06-03 03:02:31 UTC (rev 4402)
+++ trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/role/contextable.t        
2012-06-03 03:03:16 UTC (rev 4403)
@@ -14,9 +14,11 @@
         var actions = trapee.contextActions;
         if (actions != null and actions.length>1) {
             var model = trapee.surface.popup;
-            var popup = new .submenu();
+            var popup = new .menu();
+            var close = function(v) { cascade = v; model.pop(popup, false); }
             popup.popdownOnExternalEvent = true;
             for (var i,item in actions) {
+                item.action ++= close;
                 popup.add(item);
             }
             popup.v_popbox.visible ++= function(v) {

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Vexi-svn mailing list
Vexi-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to