Pass a Date object to Horde_Calendar.open().
authorJan Schneider <jan@horde.org>
Wed, 9 Dec 2009 16:13:34 +0000 (17:13 +0100)
committerJan Schneider <jan@horde.org>
Wed, 9 Dec 2009 16:13:45 +0000 (17:13 +0100)
imp/js/search.js

index e4534ec..7ca1ac3 100644 (file)
@@ -417,7 +417,7 @@ var ImpSearch = {
                     return;
                 } else if (elt.hasClassName('searchuiCalendar')) {
                     tmp = this.criteria[elt.up('TR').identify()];
-                    Horde_Calendar.open(elt.identify(), { y: tmp.v.y, m: tmp.v.m + 1, d: tmp.v.d }, this.replaceDate.bind(this, elt.up('TR').identify(), tmp.t));
+                    Horde_Calendar.open(elt.identify(), new Date(tmp.v.y, tmp.v.m, tmp.v.d), this.replaceDate.bind(this, elt.up('TR').identify(), tmp.t));
                     e.stop();
                     return;
                 }