Create patch please and include it to module (if possible):
--- /sites/all/modules/date/date_popup/date_popup.module Пт авг 13 21:48:34 2010
+++ /sites/all/modules/date/date_popup/date_popup_173.module Ср сен 15 11:49:09 2010
@@ -51,6 +51,16 @@
$paths[drupal_get_path('module', 'date_popup') .'/themes/datepicker.css'] = t('Date Popup default');
$paths[$jquery_ui_path .'/jquery.ui/themes/base/ui.datepicker.css'] = t('jQuery UI default');
break;
+ case '1.7.3':
+ $path = drupal_get_path('module', 'jquery_ui') .'/jquery.ui/themes';
+ $files = is_dir($path) ? scandir($path) : array();
+ $nomask = array('.', '..', 'CVS');
+ foreach ($files as $dir) {
+ if (is_dir($path .'/'. $dir) && !in_array($dir, $nomask)) {
+ $paths[$path .'/'. $dir .'/ui.datepicker.css'] = 'jQuery UI '.$dir;
+ }
+ }
+ break;
default:
$paths[drupal_get_path('module', 'date_popup') .'/themes/datepicker.1.7.css'] = t('Date Popup default');
$paths[$jquery_ui_path .'/jquery.ui/themes/default/ui.datepicker.css'] = t('jQuery UI default');
@@ -69,7 +79,15 @@
return;
}
- drupal_add_css(variable_get('date_popup_css_file', date_popup_css_default()));
+ $pathinfo = pathinfo(variable_get('date_popup_css_file', date_popup_css_default()));
+ if ($pathinfo['filename'] == 'ui.datepicker') {
+ drupal_add_css($pathinfo['dirname'] . '/ui.core.css');
+ drupal_add_css($pathinfo['dirname'] . '/ui.datepicker.css');
+ drupal_add_css($pathinfo['dirname'] . '/ui.theme.css');
+ }
+ else {
+ drupal_add_css($pathinfo['dirname'] . $pathinfo['basename']);
+ }
if (variable_get('date_popup_timepicker', 'default') == 'default') {
drupal_add_css(drupal_get_path('module', 'date_popup') .'/themes/jquery.timeentry.css');
Original solution: http://www.drupal.ru/node/49897
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | date_popup.patch | 1.86 KB | graceman9 |
| #4 | date_popup.patch | 1.85 KB | graceman9 |
| innode.png | 13.49 KB | Stan.Ezersky | |
| settings.png | 23.91 KB | Stan.Ezersky |
Comments
Comment #1
karens commentedPlease explain why you think this patch is needed and what it is trying to accomplish.
Comment #2
arlinsandbulte commentedNo reply for 3 months.
Closing...
Comment #3
bakr commentedI know that the date pop-up is showing in proper style once updating to jquery ui 1.7.3
that is why the patch has been proposed to my understanding. and I am happy that someone addressed this already.
of-course this patch is really needed for those using the jquery update module.
Comment #4
graceman9 commented>Please explain why you think this patch is needed and what it is trying to accomplish.
I want to be able to access additional styles. Why not?
>No reply for 3 months.
Sorry for the delay. Here is new (fixed 6.x-2.7) patch:
Comment #5
graceman9 commentedoops.. here is 'right' patch
Comment #6
xjmDuplicate of #436490: Add support for jQuery update to 1.3.x and jQuery UI 1.7.x.