Index: README.txt
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/jquery_ui/README.txt,v
retrieving revision 1.5.2.2
diff -u -r1.5.2.2 README.txt
--- README.txt	21 Jun 2009 03:43:03 -0000	1.5.2.2
+++ README.txt	5 Aug 2009 20:48:28 -0000
@@ -31,6 +31,10 @@
 
 * Extract it as a sub-directory called 'jquery.ui' in the jquery_ui folder:
 
+    /sites/all/libraries/jquery.ui/
+    
+    or
+    
     /sites/all/modules/jquery_ui/jquery.ui/
 
 * Enable the module at Administer >> Site building >> Modules.
@@ -52,6 +56,10 @@
 
 * Replace the old jQuery UI folder with the 1.7 package at:
 
+    /sites/all/libraries/jquery.ui/
+    
+    or
+    
     /sites/all/modules/jquery_ui/jquery.ui/
 
 
Index: jquery_ui.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/jquery_ui/Attic/jquery_ui.install,v
retrieving revision 1.5.2.2
diff -u -r1.5.2.2 jquery_ui.install
--- jquery_ui.install	21 Jun 2009 03:43:03 -0000	1.5.2.2
+++ jquery_ui.install	5 Aug 2009 20:47:07 -0000
@@ -31,7 +31,7 @@
     $requirements['jquery_ui']['value'] = $t('Not found');
     // Provide a download link to the jQuery UI development bundle. The provided
     // link will list the latest 1.6.x build.
-    $requirements['jquery_ui']['description'] = $t('The <a href="@jqueryui">jQuery UI</a> plugin is missing. <a href="@download">Download</a> and extract it to your <em>jquery_ui</em> module directory. See <a href="@readme">README.txt</a> for more info.', array('@jqueryui' => 'http://jqueryui.com', '@download' => 'http://code.google.com/p/jquery-ui/downloads/list?can=3&q=1.6', '@readme' => url(drupal_get_path('module', 'jquery_ui') . '/README.txt')));
+    $requirements['jquery_ui']['description'] = $t('The <a href="@jqueryui">jQuery UI</a> plugin is missing. <a href="@download">Download</a> and extract it to sites/all/libraries/jquery.ui. See <a href="@readme">README.txt</a> for more info.', array('@jqueryui' => 'http://jqueryui.com', '@download' => 'http://code.google.com/p/jquery-ui/downloads/list?can=3&q=1.6', '@readme' => url(drupal_get_path('module', 'jquery_ui') . '/README.txt')));
     $requirements['jquery_ui']['severity'] = REQUIREMENT_ERROR;
   }
 
Index: jquery_ui.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/jquery_ui/jquery_ui.module,v
retrieving revision 1.6.2.2
diff -u -r1.6.2.2 jquery_ui.module
--- jquery_ui.module	21 Jun 2009 03:43:03 -0000	1.6.2.2
+++ jquery_ui.module	5 Aug 2009 20:33:56 -0000
@@ -18,10 +18,20 @@
  * safe for use in URLs.
  */
 if (defined('MAINTENANCE_MODE') && MAINTENANCE_MODE == 'install') {
-  define('JQUERY_UI_PATH', dirname(__FILE__) . '/jquery.ui');
+  if (file_exists(dirname(__FILE__) . '/jquery.ui/version.txt')) {
+    define('JQUERY_UI_PATH', dirname(__FILE__) . '/jquery.ui');
+  }
+  else{
+    define('JQUERY_UI_PATH', 'sites/all/libraries/jquery.ui');
+  }
 }
 else {
-  define('JQUERY_UI_PATH', drupal_get_path('module', 'jquery_ui') . '/jquery.ui');
+  if (file_exists(drupal_get_path('module', 'jquery_ui') . '/jquery.ui/version.txt')) {
+    define('JQUERY_UI_PATH', drupal_get_path('module', 'jquery_ui') . '/jquery.ui');
+  }
+  else{
+    define('JQUERY_UI_PATH', 'sites/all/libraries/jquery.ui');
+  }
 }
 
 /**

