6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
9/7/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#963] Calendar popup doesn't work in Safari (the OS X browser)
*
Your Email Address
*
Spam protection
Enter the letters below:
__ .___..__..__.. . / ` | | |[__]\ / \__. | |__|| | \/
Comment
> I have a problem with the calendar popup that is in > horde/templates/javascript/open_calendar.js. The calendar displays > properly when opened, but when you try and select a date it fails and > sends you to the URL of the link (so like > http://mydomain.com/horde/kronolith/1) rather than updating the form > elements. > > > > I did some digging and it looks like this is because the anonymous > onclick function is using variables defined in the openGoto() > function in which it is created, and in Safari those variables are > out of scope. So, in the day onclick function the target, month, day > and year variables are all out of scope so these lines > > > > document.getElementById(target + '[month]').value = month + 1; > document.getElementById(target + '[day]').value = day; > document.getElementById(target + '[year]').value = year; > > > > fail, the return false is never reached and the user is sent to an > invalid URL. > >
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers