? jquery.ui
? jquery_ui-fix-with-1.5-final-268645-7.patch
? jquery_ui-fix-with-1.5-final-268645-8.patch
Index: README.txt
===================================================================
RCS file: /cvs/drupal/contributions/modules/jquery_ui/README.txt,v
retrieving revision 1.1
diff -u -p -r1.1 README.txt
--- README.txt	21 May 2008 05:14:51 -0000	1.1
+++ README.txt	15 Jun 2008 05:00:55 -0000
@@ -29,9 +29,11 @@ on its own.
 INSTALLATION
 ------------
 
-1. Copy the jquery_ui directory to your sites/SITENAME/modules directory.
+1. Copy the jquery_ui module directory to your sites/SITENAME/modules
+   directory.
 
-2. Download the full version of jQuery UI from http://ui.jquery.com/download.
+2. Download the "Development bundle" of jQuery UI from
+   http://ui.jquery.com/download.
 
 3. Extract it as a sub-directory called 'jquery.ui' in the jquery_ui folder:
 
Index: jquery_ui.install
===================================================================
RCS file: /cvs/drupal/contributions/modules/jquery_ui/jquery_ui.install,v
retrieving revision 1.2
diff -u -p -r1.2 jquery_ui.install
--- jquery_ui.install	27 May 2008 17:34:44 -0000	1.2
+++ jquery_ui.install	15 Jun 2008 05:00:55 -0000
@@ -29,10 +29,16 @@ function jquery_ui_requirements($phase) 
   else {
     // Required library wasn't found. Abort installation.
     $requirements['jquery_ui']['value'] = $t('Not found');
-    $requirements['jquery_ui']['description'] = $t('Missing jQuery UI plug-in. Please !download and extract it to your jquery_ui module directory. See README.txt for more info.', array('!download' => l(t('download jQuery UI'), 'http://ui.jquery.com/download')));
+    $requirements['jquery_ui']['description'] = $t('Missing jQuery UI plug-in. Please !download and extract it to your jquery_ui module directory. See README.txt for more info.', array('!download' => l(t('download the jQuery UI development bundle'), 'http://ui.jquery.com/download')));
     $requirements['jquery_ui']['severity'] = REQUIREMENT_ERROR;
   }
 
   return $requirements;
 }
 
+/**
+ * Implementation of hook_uninstall().
+ */
+function jquery_ui_uninstall() {
+  variable_del('jquery_ui_compression_type');
+}
Index: jquery_ui.module
===================================================================
RCS file: /cvs/drupal/contributions/modules/jquery_ui/jquery_ui.module,v
retrieving revision 1.2
diff -u -p -r1.2 jquery_ui.module
--- jquery_ui.module	27 May 2008 17:34:44 -0000	1.2
+++ jquery_ui.module	15 Jun 2008 05:00:55 -0000
@@ -9,6 +9,11 @@
  * modules that implement the JQuery UI library. It ensures that multiple
  * modules will all include the same library script just once on any given page.
  */
+
+/**
+ * Path to jQuery UI library.
+ */
+define('JQUERY_UI_PATH', drupal_get_path('module', 'jquery_ui') . '/jquery.ui');
  
 /**
  * Add JQuery interface library to this page.
@@ -22,7 +27,7 @@
  */
 function jquery_ui_add($files = array(), $type = NULL) {
   static $loaded_files, $ui_core, $effects_core;
-  $jquery_ui_path = drupal_get_path('module', 'jquery_ui') . '/jquery.ui';
+  $jquery_ui_path = JQUERY_UI_PATH . '/ui';
 
   // If a type wasn't specified, then default to whatever was specified in the
   // settings page.
@@ -51,11 +56,11 @@ function jquery_ui_add($files = array(),
           $file_path = "$file.js";
           break;
         case 'packed':
-          $file_path = "packed-javascript/$file.packed.js";
+          $file_path = "packed/$file.packed.js";
           break;
         case 'minified':
         default:
-          $file_path = "minified-javascript/$file.min.js";
+          $file_path = "minified/$file.min.js";
           break;
       }
       $js_path = $jquery_ui_path . '/' . $file_path;
@@ -101,14 +106,8 @@ function jquery_ui_admin_settings() {
 function jquery_ui_get_version() {
   $version = 0;
 
-  // Attempt to locate the jQuery UI directory and extract the version.
-  $module_directory = drupal_get_path('module', 'jquery_ui') . '/jquery.ui';
-  $files = file_scan_directory($module_directory, 'jquery\.ui-all-.*\.js$', $nomask = array('.', '..', 'CVS'), $callback = 0, $recurse = FALSE);
-  if (!empty($files)) {
-    $file = array_shift($files);
-    if (preg_match('#jquery\.ui-all-(.+)$#', $file->name, $matches)) {
-      $version = $matches[1];
-    }
+  if (file_exists(JQUERY_UI_PATH . '/version.txt')) {
+    $version = file_get_contents(JQUERY_UI_PATH . '/version.txt');
   }
 
   return $version;
