diff -c jquery_ui.info jquery_ui.new/jquery_ui.info *** jquery_ui.info 2009-06-20 23:50:34.000000000 -0400 --- jquery_ui.new/jquery_ui.info 2010-03-16 12:58:44.258121867 -0400 *************** *** 3,8 **** --- 3,9 ---- description = Provides the jQuery UI plug-in to other Drupal modules. package = User interface core = 6.x + dependencies[] = libraries ; Information added by drupal.org packaging script on 2009-06-21 version = "6.x-1.3" diff -c jquery_ui.install jquery_ui.new/jquery_ui.install *** jquery_ui.install 2009-06-20 23:43:03.000000000 -0400 --- jquery_ui.new/jquery_ui.install 2010-03-16 12:49:50.772677998 -0400 *************** *** 14,24 **** $t = get_t(); $jquery_ui_version = 0; ! if ($phase == 'install') { ! // The jquery_ui_get_version() function is in the .module file, which isn't ! // loaded yet. ! include_once dirname(__FILE__) . '/jquery_ui.module'; ! } $requirements['jquery_ui']['title'] = $t('jQuery UI'); if ($jquery_ui_version = jquery_ui_get_version()) { --- 14,22 ---- $t = get_t(); $jquery_ui_version = 0; ! // Ensure the Libraries API module is loaded. ! drupal_load('module', 'libraries'); ! drupal_load('module', 'jquery_ui'); $requirements['jquery_ui']['title'] = $t('jQuery UI'); if ($jquery_ui_version = jquery_ui_get_version()) { diff -c jquery_ui.module jquery_ui.new/jquery_ui.module *** jquery_ui.module 2009-06-20 23:43:03.000000000 -0400 --- jquery_ui.new/jquery_ui.module 2010-03-16 12:49:50.772677998 -0400 *************** *** 11,30 **** */ /** - * Path to jQuery UI library. - * - * During site installation, JQUERY_UI_PATH is the absolute path to the - * jQuery UI library. At all other times JQUERY_UI_PATH is relative, and - * safe for use in URLs. - */ - if (defined('MAINTENANCE_MODE') && MAINTENANCE_MODE == 'install') { - define('JQUERY_UI_PATH', dirname(__FILE__) . '/jquery.ui'); - } - else { - define('JQUERY_UI_PATH', drupal_get_path('module', 'jquery_ui') . '/jquery.ui'); - } - - /** * Add the specified jQuery UI library files to this page. * * The ui.core file is always included automatically, as well as the --- 11,16 ---- *************** *** 36,42 **** */ function jquery_ui_add($files = array()) { static $loaded_files, $ui_core, $effects_core; ! $jquery_ui_path = JQUERY_UI_PATH . '/ui'; $compression = variable_get('jquery_update_compression_type', 'mini'); // Convert file to an array if it's not one already, to compensate for --- 22,28 ---- */ function jquery_ui_add($files = array()) { static $loaded_files, $ui_core, $effects_core; ! $jquery_ui_path = libraries_get_path('jquery.ui') . '/ui'; $compression = variable_get('jquery_update_compression_type', 'mini'); // Convert file to an array if it's not one already, to compensate for *************** *** 88,95 **** function jquery_ui_get_version() { $version = 0; ! if (file_exists(JQUERY_UI_PATH . '/version.txt')) { ! $version = file_get_contents(JQUERY_UI_PATH . '/version.txt'); } return $version; --- 74,82 ---- function jquery_ui_get_version() { $version = 0; ! $version_file = libraries_get_path('jquery.ui') . '/version.txt'; ! if (file_exists($version_file)) { ! $version = file_get_contents($version_file); } return $version; diff -c README.txt jquery_ui.new/README.txt *** README.txt 2009-06-20 23:43:03.000000000 -0400 --- jquery_ui.new/README.txt 2010-03-16 12:58:15.752638427 -0400 *************** *** 23,39 **** -- INSTALLATION -- ! * Copy the jquery_ui module directory to your sites/all/modules directory. * Download the latest jQuery UI 1.6 development package from: http://code.google.com/p/jquery-ui/downloads/list?can=3&q=1.6 ! * Extract it as a sub-directory called 'jquery.ui' in the jquery_ui folder: ! /sites/all/modules/jquery_ui/jquery.ui/ ! * Enable the module at Administer >> Site building >> Modules. -- JQUERY UI 1.7 -- --- 23,39 ---- -- INSTALLATION -- ! * Copy the libraries and jquery_ui modules to your sites/all/modules folder. * Download the latest jQuery UI 1.6 development package from: http://code.google.com/p/jquery-ui/downloads/list?can=3&q=1.6 ! * Extract it to a folder in sites/all/libraries and name it 'jquery.ui': ! /sites/all/libraries/jquery.ui/ ! * Enable the libraries and jquery_ui modules at admin/build/modules. -- JQUERY UI 1.7 --