Revision: 3377
          http://vexi.svn.sourceforge.net/vexi/?rev=3377&view=rev
Author:   clrg
Date:     2009-01-29 16:05:53 +0000 (Thu, 29 Jan 2009)

Log Message:
-----------
Accept "today" and "now" in datetime widget

Modified Paths:
--------------
    trunk/widgets/org.vexi.widgets/src/org/vexi/theme/classic/datetime.t

Modified: trunk/widgets/org.vexi.widgets/src/org/vexi/theme/classic/datetime.t
===================================================================
--- trunk/widgets/org.vexi.widgets/src/org/vexi/theme/classic/datetime.t        
2009-01-29 15:32:45 UTC (rev 3376)
+++ trunk/widgets/org.vexi.widgets/src/org/vexi/theme/classic/datetime.t        
2009-01-29 16:05:53 UTC (rev 3377)
@@ -28,6 +28,12 @@
         thisbox.value ++= function(v) {
             switch (typeof(v)) {
                 case "string":
+                    var vlc = v.toLowerCase();
+                    if (vlc=="today" or vlc=="now") {
+                        $date.value = "today";
+                        $time.value = "now";
+                        return;
+                    }
                     v = vexi.date(v);
                     value = v;
                     break;


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Vexi-svn mailing list
Vexi-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to