Revision: 3781 http://vexi.svn.sourceforge.net/vexi/?rev=3781&view=rev Author: jeffbuhrt Date: 2010-01-20 22:37:45 +0000 (Wed, 20 Jan 2010)
Log Message: ----------- allow empty value separator ("") and setting an empty value Modified Paths: -------------- trunk/widgets/org.vexi.widgets/src/org/vexi/theme/classic/datefield.t Modified: trunk/widgets/org.vexi.widgets/src/org/vexi/theme/classic/datefield.t =================================================================== --- trunk/widgets/org.vexi.widgets/src/org/vexi/theme/classic/datefield.t 2010-01-19 16:31:36 UTC (rev 3780) +++ trunk/widgets/org.vexi.widgets/src/org/vexi/theme/classic/datefield.t 2010-01-20 22:37:45 UTC (rev 3781) @@ -316,7 +316,7 @@ } static.textRead = function() { - var s = trapee.valueseparator ? trapee.valueseparator : trapee.textseparator; + var s = trapee.valueseparator != null ? trapee.valueseparator : trapee.textseparator; var f = trapee.valueformat ? trapee.valueformat : trapee.textformat; var y = trapee.year; var m = trapee.month; @@ -351,6 +351,8 @@ static.valueRead = function() { var t = trapee.text; return t ? t : null; } static.valueWrite = function(v) { + if (v == "") + v = null; switch (typeof(v)) { case "date": trapee.date = v; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev _______________________________________________ Vexi-svn mailing list Vexi-svn@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vexi-svn