Revision: 4168 http://vexi.svn.sourceforge.net/vexi/?rev=4168&view=rev Author: mkpg2 Date: 2011-06-30 03:57:47 +0000 (Thu, 30 Jun 2011)
Log Message: ----------- Feature. Support vexi.js.Date in datefield. Modified Paths: -------------- trunk/org.vexi-vexi.widgets/src_main/org/vexi/theme/classic/datefield.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 2011-06-30 03:19:46 UTC (rev 4167) +++ trunk/org.vexi-vexi.widgets/src_main/org/vexi/theme/classic/datefield.t 2011-06-30 03:57:47 UTC (rev 4168) @@ -385,6 +385,13 @@ if (trapee.year==null) return null; return trapee.copy(); + case "vexi.js.Date": + if (trapee.year==null) + return null; + return new vexi.js.Date( + trapee.year, + trapee.month, + trapee.day); case "date": case "number": throw "unimplemented"; default: @@ -393,6 +400,10 @@ } static.valueWrite = function(v) { + if(trapee.valuetype=="vexi.js.Date"){ + v = v+""; + } + if (v == "") { v = null; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 _______________________________________________ Vexi-svn mailing list Vexi-svn@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vexi-svn