Index: date_popup.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/date/date_popup/date_popup.install,v
retrieving revision 1.5.6.7
diff -u -p -r1.5.6.7 date_popup.install
--- date_popup.install	28 Feb 2010 14:23:04 -0000	1.5.6.7
+++ date_popup.install	14 Sep 2010 17:01:55 -0000
@@ -97,4 +97,22 @@ function date_popup_disable() {
     }
     content_clear_type_cache(TRUE);
   }
-}
\ No newline at end of file
+}
+
+/**
+ * Update default path for date popup css
+ */
+function date_popup_update_6001() {
+  $ret = array();
+  $version = jquery_ui_get_version();
+  switch ($version) {
+    case '1.6':
+      $path = drupal_get_path('module', 'date_popup') . '/themes/datepicker.css';
+      break;
+    default:
+      $path = drupal_get_path('module', 'date_popup') . '/themes/datepicker.1.7.css';
+      break;
+  }
+  variable_set('date_popup_css_file', $path);
+  return $ret;
+}
