Revision: 4155 http://vexi.svn.sourceforge.net/vexi/?rev=4155&view=rev Author: clrg Date: 2011-06-08 09:24:13 +0000 (Wed, 08 Jun 2011)
Log Message: ----------- Hackfix value/text synchronizing in textfields 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 2011-05-27 02:22:21 UTC (rev 4154) +++ trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/widget/textfield.t 2011-06-08 09:24:13 UTC (rev 4155) @@ -126,6 +126,10 @@ } // normal textfield input cascade = v; + // value update + trapee.v_updatetext = false; + trapee.value = trapee.text; + trapee.v_updatetext = true; } } @@ -177,9 +181,9 @@ if (trapee.v_updatetext and val != trapee.value) { trapee.text = v; } - } else { + } else if (trapee.v_updatetext) { trapee.text = v; - return; + return; } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev _______________________________________________ Vexi-svn mailing list Vexi-svn@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vexi-svn