Horde_Calendar returns a Date.
authorJan Schneider <jan@horde.org>
Wed, 9 Dec 2009 16:19:48 +0000 (17:19 +0100)
committerJan Schneider <jan@horde.org>
Wed, 9 Dec 2009 16:19:48 +0000 (17:19 +0100)
imp/js/search.js

index 7ca1ac3..ec7486a 100644 (file)
@@ -267,9 +267,9 @@ var ImpSearch = {
         this.replaceDate(this.insertCriteria(tmp), id, { y: d.getFullYear(), m: d.getMonth(), d: d.getDate() });
     },
 
-    replaceDate: function(id, type, data)
+    replaceDate: function(id, type, date)
     {
-        $(id).down('TD SPAN SPAN').update(this.data.months[data.m] + ' ' + data.d + ', ' + data.y);
+        $(id).down('TD SPAN SPAN').update(this.data.months[data.getMonth()] + ' ' + data.getDate() + ', ' + data.getYear() + 1900);
         // Need to store date information at all times in criteria, since we
         // have no other way to track this information (there is not form
         // field for this type).