Revision: 4083 http://vexi.svn.sourceforge.net/vexi/?rev=4083&view=rev Author: clrg Date: 2011-03-27 23:12:07 +0000 (Sun, 27 Mar 2011)
Log Message: ----------- Fix numfield.number read and update demo to read number instead of value with spins Modified Paths: -------------- trunk/org.vexi-vexi.demo/src_main/org/vexi/demo/feature/widgets_misc.t trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/widget/numfield.t Modified: trunk/org.vexi-vexi.demo/src_main/org/vexi/demo/feature/widgets_misc.t =================================================================== --- trunk/org.vexi-vexi.demo/src_main/org/vexi/demo/feature/widgets_misc.t 2011-03-27 21:28:31 UTC (rev 4082) +++ trunk/org.vexi-vexi.demo/src_main/org/vexi/demo/feature/widgets_misc.t 2011-03-27 23:12:07 UTC (rev 4083) @@ -63,8 +63,8 @@ } var calc = function() { - var s1 = $spin1.value; - var s2 = $spin2.value; + var s1 = $spin1.number; + var s2 = $spin2.number; var op = $option.value; if (s1==null or s2==null or op==null) { $symbs.text = "Insufficient parameters"; Modified: trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/widget/numfield.t =================================================================== --- trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/widget/numfield.t 2011-03-27 21:28:31 UTC (rev 4082) +++ trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/widget/numfield.t 2011-03-27 23:12:07 UTC (rev 4083) @@ -116,7 +116,7 @@ /** return value as a number */ static.numberRead = function() { var r = trapee.decimal.canonical; - if (t.decimalPlaces and t.decimalPlaces==0) { + if (trapee.decimalPlaces and trapee.decimalPlaces==0) { return vexi.string.parseInt(r); } return vexi.string.parseFloat(r); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar _______________________________________________ Vexi-svn mailing list Vexi-svn@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vexi-svn