altai
Junior Member
Posts: 2
Registered: 3/18/2005
Member Is Offline
|
| posted on 3/18/2005 at 09:59 PM |
|
|
firefox and calendar
...this might come in handy...
for some odd reason I pulled up the live demo and tried the calendar, it works in IE but acts strangely in Firefox (latest, stable)
the calendar can pull dates from the input boxes (parse + select in the popup) but is unable to put new values in its place.
looked in the code: found a line that fixed the problem.
in file "calendar.html"
in function "set_datetime(..)" about halfway down:
| Code: |
if (b_close) {
window.close();
obj_caller.target.value = (document.cal
? obj_caller.gen_tsmp(dt_datetime)
: obj_caller.gen_date(dt_datetime)
);
|
culprit is "window.close()" being called before update
changed said code to:
| Code: |
if (b_close) {
obj_caller.target.value = (document.cal
? obj_caller.gen_tsmp(dt_datetime)
: obj_caller.gen_date(dt_datetime)
window.close();
);
|
this seemed to fix the problem.
|
|
|
|