Revision: 3805
          http://vexi.svn.sourceforge.net/vexi/?rev=3805&view=rev
Author:   jeffbuhrt
Date:     2010-02-17 18:50:41 +0000 (Wed, 17 Feb 2010)

Log Message:
-----------
allow using selected on a selectgroup (vs having to use a 
myradio.group.selected), also allow reading the group

Modified Paths:
--------------
    trunk/widgets/org.vexi.demo/src/org/vexi/demo/feature/widgets_basic.t

Modified: trunk/widgets/org.vexi.demo/src/org/vexi/demo/feature/widgets_basic.t
===================================================================
--- trunk/widgets/org.vexi.demo/src/org/vexi/demo/feature/widgets_basic.t       
2010-02-17 18:50:23 UTC (rev 3804)
+++ trunk/widgets/org.vexi.demo/src/org/vexi/demo/feature/widgets_basic.t       
2010-02-17 18:50:41 UTC (rev 3805)
@@ -47,10 +47,10 @@
 
         $b1.action ++= function(v) {
             cascade = v;
-            if ($r1.group.selected and $r1.group.selected.nextselect)
-                $r1.group.selected.nextselect.selected = true;
-            else for (var i=0; $radios.numchildren > i; i++)
-                if ($radios[i].enabled) { $radios[i].selected = true; break; }
+            if ($radios.selected and $radios.selected.nextselect)
+                $radios.selected.nextselect.selected = true;
+            else 
+               $radios.selectFirst();
         }
         
         $b2.action ++= function(v) {


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

------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
Vexi-svn mailing list
Vexi-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to