Revision: 4213
          http://vexi.svn.sourceforge.net/vexi/?rev=4213&view=rev
Author:   clrg
Date:     2011-08-26 06:13:58 +0000 (Fri, 26 Aug 2011)
Log Message:
-----------
Fix datetime not writing its value

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

Modified: trunk/org.vexi-vexi.widgets/src_main/org/vexi/theme/classic/datetime.t
===================================================================
--- trunk/org.vexi-vexi.widgets/src_main/org/vexi/theme/classic/datetime.t      
2011-08-25 03:04:19 UTC (rev 4212)
+++ trunk/org.vexi-vexi.widgets/src_main/org/vexi/theme/classic/datetime.t      
2011-08-26 06:13:58 UTC (rev 4213)
@@ -1,4 +1,4 @@
-<!-- Copyright 2009 - see COPYING for details [LGPL] -->
+<!-- Copyright 2011 - see COPYING for details [LGPL] -->
 
 <vexi xmlns:ui="vexi://ui" xmlns:meta="vexi://meta" xmlns="vexi.theme">
     <meta:doc>
@@ -34,7 +34,11 @@
             $time.enabled = v;
         }
         
+        var storeval;
+        
         thisbox.value ++= function(v) {
+            if (v == storeval) return;
+                
             switch (typeof(v)) {
             case "string":
                 var vlc = v.toLowerCase();
@@ -73,16 +77,28 @@
             var d = $date.value;
             var t = $time.value;
             if (d==null and t==null) {
+                storeval = null;
                 return null;
             }
             if (t==null) {
+                storeval = d;
                 return d;
             }
             if (d==null) {
+                storeval = t;
                 return t;
             }
-            return d+' '+t;
+            storeval = d+' '+t;
+            return storeval;
         }
         
+        var updateValue = function(v) {
+            cascade = v;
+            value = value;
+        }
+        
+        $date.value ++= updateValue;
+        $time.value ++= updateValue;
+        
     </ui:box>
 </vexi>

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


------------------------------------------------------------------------------
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
_______________________________________________
Vexi-svn mailing list
Vexi-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to