Revision: 4413
          http://vexi.svn.sourceforge.net/vexi/?rev=4413&view=rev
Author:   clrg
Date:     2012-07-12 23:20:24 +0000 (Thu, 12 Jul 2012)
Log Message:
-----------
Fix non-key text updates (context cut/paste) not updating textfield value

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

Modified: trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/widget/textfield.t
===================================================================
--- trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/widget/textfield.t        
2012-07-12 10:55:46 UTC (rev 4412)
+++ trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/widget/textfield.t        
2012-07-12 23:20:24 UTC (rev 4413)
@@ -160,6 +160,10 @@
     /** text writes to v_textbox */
     static.textWrite = function(v) {
         var f = trapee.v_field;
+        f.v_updatetext = false;
+        if (f.value != v)
+            f.value = v;
+        f.v_updatetext = true;
         if (f.password) {
             // hide text from user for passfields
             var str = "";
@@ -168,9 +172,6 @@
                 str += '*';
             }
             cascade = str;
-            f.v_updatetext = false;
-            f.value = v;
-            f.v_updatetext = true;
         } else {
             cascade = 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