Revision: 4758 http://sourceforge.net/p/vexi/code/4758 Author: mkpg2 Date: 2015-01-13 07:08:18 +0000 (Tue, 13 Jan 2015) Log Message: ----------- Improve. Widget should write value as soon as available, to be consistent with other widgets/work in wizard (e.g. statii).
Modified Paths: -------------- branches/vexi3/org.vexi-vexi.widgets/src_main/org/vexi/lib/widget/durationfield.t Modified: branches/vexi3/org.vexi-vexi.widgets/src_main/org/vexi/lib/widget/durationfield.t =================================================================== --- branches/vexi3/org.vexi-vexi.widgets/src_main/org/vexi/lib/widget/durationfield.t 2015-01-13 04:53:57 UTC (rev 4757) +++ branches/vexi3/org.vexi-vexi.widgets/src_main/org/vexi/lib/widget/durationfield.t 2015-01-13 07:08:18 UTC (rev 4758) @@ -165,6 +165,12 @@ static.editWrite = function(v) { cascade = v; sync..syncTransform(trapee, v, "value", "text", trapee.duration2text, trapee.text2duration); + const t = trapee; + v.text ++= function(v){ + if(t.internalput) return; + cascade = v; + }; + trapee[trapname] --= callee; } @@ -200,6 +206,13 @@ if(value2==null){ e.text = txt0; e.setCursorCharIndex(cpos); + }else{ + t.internalput = true; + try{ + t.value = value2; + }finally{ + t.internalput = false; + } } return; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ New Year. New Location. New Benefits. New Data Center in Ashburn, VA. GigeNET is offering a free month of service with a new server in Ashburn. Choose from 2 high performing configs, both with 100TB of bandwidth. Higher redundancy.Lower latency.Increased capacity.Completely compliant. http://p.sf.net/sfu/gigenet _______________________________________________ Vexi-svn mailing list Vexi-svn@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vexi-svn