Revision: 2563
          http://vexi.svn.sourceforge.net/vexi/?rev=2563&view=rev
Author:   clrg
Date:     2007-11-14 13:04:15 -0800 (Wed, 14 Nov 2007)

Log Message:
-----------
Fix text writes for password fields (it displayed the text instead of *s)

Modified Paths:
--------------
    trunk/widgets/org.vexi.widgets/src/org/vexi/lib/widget/textfield.t

Modified: trunk/widgets/org.vexi.widgets/src/org/vexi/lib/widget/textfield.t
===================================================================
--- trunk/widgets/org.vexi.widgets/src/org/vexi/lib/widget/textfield.t  
2007-11-14 21:00:46 UTC (rev 2562)
+++ trunk/widgets/org.vexi.widgets/src/org/vexi/lib/widget/textfield.t  
2007-11-14 21:04:15 UTC (rev 2563)
@@ -1,11 +1,8 @@
 <!-- Copyright 2007 - see COPYING for details [LGPL] -->
 
-<vexi xmlns="org.vexi.lib.text" xmlns:ui="vexi://ui" xmlns:meta="vexi://meta">
+<vexi xmlns:ui="vexi://ui" xmlns:meta="vexi://meta" xmlns="org.vexi.lib.text">
     <meta:doc>
         <author>Charles Goodwin</author>
-        <todo>
-            Need value write trap - cannot specify a password e.g. $pwd.value 
= "foo"
-        </todo>
     </meta:doc>
     
     <field />
@@ -127,9 +124,10 @@
             var tvl = trapee.value.length;
             for (var i=0; tvl>i; i++) str += '*';
             trapee.th_edit.text = str;
+            trapee.text ++= static.textWrite;
         } else {
+            trapee.text --= static.textWrite;
             trapee.text = trapee.value;
-            var tvl = trapee.value.length;
         }
     }
 


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

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Vexi-svn mailing list
Vexi-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to