Revision: 3195
          http://vexi.svn.sourceforge.net/vexi/?rev=3195&view=rev
Author:   clrg
Date:     2008-11-12 01:11:58 +0000 (Wed, 12 Nov 2008)

Log Message:
-----------
Fix dates not being cleared when re-using rows/cells

Modified Paths:
--------------
    trunk/widgets/org.vexi.widgets/src/org/vexi/lib/widget/cell.t

Modified: trunk/widgets/org.vexi.widgets/src/org/vexi/lib/widget/cell.t
===================================================================
--- trunk/widgets/org.vexi.widgets/src/org/vexi/lib/widget/cell.t       
2008-11-10 18:13:28 UTC (rev 3194)
+++ trunk/widgets/org.vexi.widgets/src/org/vexi/lib/widget/cell.t       
2008-11-12 01:11:58 UTC (rev 3195)
@@ -57,6 +57,11 @@
     /** parse incoming date and display nicely */
     static.dateValueWrite = function(v) {
         cascade = v;
+        // clear empty dates
+        if (!v) {
+            trapee.text = "";
+            return;
+        }
         switch (typeof(v)) {
         case "date":
             trapee.text = v.getDate()+" "+month[v.getMonth()]+" 
"+v.getFullYear();
@@ -65,6 +70,8 @@
             var d = util.date..parseDate(v, "YYYYMMDD");
             trapee.text = d.day+" "+month[d.month-1]+" "+d.year;
             break;
+        default:
+            trapee.text = v;
         }
     }
     


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 the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Vexi-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to