When using the Date Popup module I get this JS error and the rest of the page's JS doesn't load.
"uncaught exception: Syntax error, unrecognized expression: #"
Here is the generated code from "View Source":
"#edit-publish-on-timeEntry-popup-1":{"visible":{"#":{"checked":false}}},"#edit-unpublish-on-timeEntry-popup-1":{"visible":{"#":{"checked":false}}}}
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | date-popup-1243022-6.patch | 957 bytes | fmosca |
Comments
Comment #1
derekw commentedUpdate: must be a problem with the date popup module? Changing to text box resolves the problem.
Comment #2
jonathan1055 commentedI was thinking it was maybe not a scheduler problem. Just for info, what date popup version does it happen with?
I've seen lots of javascript errors in my firefox js log, but mostly they do not impact the operation so developers ignore them. Core has loads too ;-)
Jonathan
Comment #3
derekw commentedI'm using the current dev version of Date 7.x-2.x-dev.
Comment #4
mbopp commentedI am experiencing this issue (unrecognized expression: #) in the js console when creating a date_popup form element. It only happens when TIME is in the date format. I am using 7.x-2.x-dev. It does NOT happen with 7.x-2.0-alpha3.
For reference as a test I did try removing the js in the date_popup module to see if that eliminated the error, and it did not.
Comment #5
fmosca commentedsubscribe
Comment #6
fmosca commentedPlease review this patch: the problem seems to be that the element building code first checked for the existance of an "all day" checkbox, but later tried to use one anyway.
Comment #7
R.Muilwijk commentedHad the same problem. The patch fixed it for me
Comment #8
karens commentedThe same change needs to be made for the select element. Committed. Thanks!
Comment #9
adamdicarlo commentedThe commit for this issue introduced a syntax error:
http://drupalcode.org/project/date.git/blobdiff/e890776211006b75643ddbde...
See the very last + line of the diff. It looks like there's a missing
if (.Comment #10
karens commentedUgh! Got it. Thanks.
Comment #11.0
(not verified) commentedClarification of the problem