date_popup_css_default() does not conform to what date_popup_css_options() returns as default. It always returns datepicker.css (jquery 1.6), even if 1.7 is being used.
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | jquery-date-popup.png | 22.11 KB | geerlingguy |
| date_popup_default.patch | 673 bytes | slip |
Comments
Comment #1
slip commentednote: accidentally made the patch in date_popup/
Comment #2
ericduran commentedI tested this and it fixed my issues with the wrong css.
Comment #3
slip commentedjquery ui, not jquery.
Comment #4
slip commentedWe might consider adding module_exists('jquery_ui') in this patch because right now date_popup_init will attempt to load the default css file even if jquery_ui is disabled and that causes an error when jquery_ui_get_version() is called.
Comment #5
karens commentedCommitted, thanks! I added a test for jquery_ui also.
Comment #6
geerlingguy commentedI just downloaded the latest -dev release of date.module, and I'm still seeing unstyled popups - they work better, but no styling is applied. I'm using jQuery UI 1.7.x...
Comment #7
geerlingguy commentedSetting back to active to ask: is the attached how the datepicker is supposed to look? I just installed the latest -dev release of date.module (Dec. 13), and the date popup doesn't look anything like it used to before I installed jQuery UI 1.7.x (with jQuery Update 1.4.x).
Comment #8
apmsooner commentedThats not how its supposed to look and I have the same problem. I'm hoping this gets fixed in a dev release soon.
Comment #9
marcoka commentedsame here:
It always returns datepicker.css (jquery 1.6), even if 1.7 is being used.
i changed the:
drupal_add_css(variable_get('date_popup_css_file', date_popup_css_default()));with the variable editor to the right css, now it looks like in the screenshot postet above
Comment #10
xjmThis issue is resolved by #436490: Add support for jQuery update to 1.3.x and jQuery UI 1.7.x.