Revision: 4425 http://vexi.svn.sourceforge.net/vexi/?rev=4425&view=rev Author: clrg Date: 2012-07-17 01:04:24 +0000 (Tue, 17 Jul 2012) Log Message: ----------- Update value when using buttons in datefield/timefield
Modified Paths: -------------- trunk/org.vexi-vexi.widgets/src_main/org/vexi/theme/classic/datefield.t trunk/org.vexi-vexi.widgets/src_main/org/vexi/theme/classic/timefield.t Modified: trunk/org.vexi-vexi.widgets/src_main/org/vexi/theme/classic/datefield.t =================================================================== --- trunk/org.vexi-vexi.widgets/src_main/org/vexi/theme/classic/datefield.t 2012-07-17 00:39:52 UTC (rev 4424) +++ trunk/org.vexi-vexi.widgets/src_main/org/vexi/theme/classic/datefield.t 2012-07-17 01:04:24 UTC (rev 4425) @@ -94,7 +94,6 @@ var setToday = function() { date = vexi.date(); - value = value; } $more.action ++= function(v) { @@ -110,6 +109,7 @@ } else if (selected == $year) { year = year+1; } + value = value; return; } @@ -126,6 +126,7 @@ } else if (selected == $year) { year = year-1; } + value = value; return; } @@ -251,7 +252,6 @@ case "enter": if (value==null) { setToday(); - } else { value = value; } break; Modified: trunk/org.vexi-vexi.widgets/src_main/org/vexi/theme/classic/timefield.t =================================================================== --- trunk/org.vexi-vexi.widgets/src_main/org/vexi/theme/classic/timefield.t 2012-07-17 00:39:52 UTC (rev 4424) +++ trunk/org.vexi-vexi.widgets/src_main/org/vexi/theme/classic/timefield.t 2012-07-17 01:04:24 UTC (rev 4425) @@ -115,9 +115,7 @@ if (mins==null) { mins = 0; } - return; - } - if (selected == $period) { + } else if (selected == $period) { if (12>hours) { hours += 12; } @@ -126,11 +124,19 @@ } else if (selected == $mins) { mins = mins+1; } + value = value; return; } $less.action ++= function(v) { - if (selected == $period) { + if (hours==null or mins==null) { + if (hours==null) { + hours = 0; + } + if (mins==null) { + mins = 0; + } + } else if (selected == $period) { if (hours>11) { hours -= 12; } @@ -142,6 +148,7 @@ } mins = mins==null ? 59 : mins-1; } + value = value; return; } 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