Revision: 4785 http://sourceforge.net/p/vexi/code/4785 Author: mkpg2 Date: 2015-04-28 17:06:14 +0000 (Tue, 28 Apr 2015) Log Message: ----------- Change/fix. numfield should round value off when field loses its focus.
Modified Paths: -------------- branches/vexi3/org.vexi-vexi.widgets/src_main/org/vexi/lib/widget/numfield.t branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/widgets/datefield_format.t Modified: branches/vexi3/org.vexi-vexi.widgets/src_main/org/vexi/lib/widget/numfield.t =================================================================== --- branches/vexi3/org.vexi-vexi.widgets/src_main/org/vexi/lib/widget/numfield.t 2015-04-27 23:55:00 UTC (rev 4784) +++ branches/vexi3/org.vexi-vexi.widgets/src_main/org/vexi/lib/widget/numfield.t 2015-04-28 17:06:14 UTC (rev 4785) @@ -89,9 +89,10 @@ /** when focus changes, self put text in case text content is updated */ static.focusWrite = function(v) { - if (!v and !trapee.updateValueonKeyPressed) { - // trigger value setting - trapee.v_edit.text = trapee.v_edit.text; + if (!v) { + // this will make sure the value is set, + // and round the value from the text field + trapee.KeyPressed = "enter"; } cascade = v; } Modified: branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/widgets/datefield_format.t =================================================================== --- branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/widgets/datefield_format.t 2015-04-27 23:55:00 UTC (rev 4784) +++ branches/vexi3/org.vexi-vexi.widgets/src_poke/poke/widgets/datefield_format.t 2015-04-28 17:06:14 UTC (rev 4785) @@ -25,12 +25,11 @@ $choice.value ++= function(v){ cascade = v; - trace(v); $date4.format = v; }; + $choice.value = "YYYYMMDD"; - vexi.ui.frame = thisbox; </ui:box> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y _______________________________________________ Vexi-svn mailing list Vexi-svn@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vexi-svn