Commit c20e2279 authored by sun's avatar sun
Browse files

Preparing new release.

parent 9ab9cb56
// $Id$
CONTENTS OF THIS FILE
---------------------
* Introduction
* Installation
* API
INTRODUCTION
------------
Authors:
* Jeff Robbins (jjeff)
* Angela Byron (webchick)
* Addison Berry (add1sun)
* Daniel F. Kudwien (sun)
This Module Made by Robots: http://www.lullabot.com
-- SUMMARY --
jQuery UI (http://ui.jquery.com/) is a set of cool widgets and effects that
developers can use to add some pizazz to their modules.
......@@ -26,68 +9,65 @@ This module is more-or-less a utility module that should simply be required by
other modules that depend on jQuery UI being available. It doesn't do anything
on its own.
For a full description of the module, visit the project page:
http://drupal.org/project/jquery_ui
INSTALLATION
------------
To submit bug reports and feature suggestions, or to track changes:
http://drupal.org/project/issues/jquery_ui
1. Copy the jquery_ui module directory to your sites/all/modules directory.
2. Download the latest jQuery 1.6 development package from:
-- REQUIREMENTS --
http://code.google.com/p/jquery-ui/downloads/list?can=3&q=1.6
* The jQuery UI library.
3. Extract it as a sub-directory called 'jquery.ui' in the jquery_ui folder:
/sites/all/modules/jquery_ui/jquery.ui/
-- INSTALLATION --
4. Enable the module at Administer >> Site building >> Modules.
* Copy the jquery_ui module directory to your sites/all/modules directory.
* Download the latest jQuery UI 1.7 development package from:
JQUERY UI 1.7
-------------
http://code.google.com/p/jquery-ui/downloads/list?can=3&q=1.7
The jQuery UI module uses jQuery UI 1.6 because jQuery UI 1.7 requires at least
jQuery 1.3, which is not shipped with Drupal 6. If you absolutely need to move
to jQuery UI 1.7, you can get around this by doing the following:
* Extract it as a sub-directory called 'jquery.ui' in the jquery_ui folder:
1. Install the jQuery Update module appropriately from:
/sites/all/modules/jquery_ui/jquery.ui/
http://drupal.org/project/jquery_update
* Enable the module at Administer >> Site building >> Modules.
2. Download the latest jQuery UI 1.7 development package from:
http://code.google.com/p/jquery-ui/downloads/list?can=3&q=1.7
-- API --
3. Replace the old jQuery UI folder with the 1.7 package at:
/sites/all/modules/jquery_ui/jquery.ui/
Developers who wish to use jQuery UI effects in their modules need only make
the following changes:
* In your module's .info file, add the following line:
API
---
dependencies[] = jquery_ui
Developers who wish to use jQuery UI effects in their modules need only make
the following changes:
This will force users to have the jQuery UI module installed before they can
enable your module.
1. In your module's .info file, add the following line:
* In your module, call the following function:
dependencies[] = jquery_ui
jquery_ui_add($files);
This will force users to have the jQuery UI module installed before they can
enable your module.
For example:
2. In your module, call the following function:
jquery_ui_add(array('ui.draggable', 'ui.droppable', 'ui.sortable'));
jquery_ui_add($files);
jquery_ui_add('ui.sortable'); // For a single file
For example:
See the contents of the jquery.ui-X.X sub-directory for a list of available
files that may be included, and see http://ui.jquery.com/docs for details on
how to use them. The required ui.core file is automatically included, as is
effects.core if you include any effects files.
jquery_ui_add(array('ui.draggable', 'ui.droppable', 'ui.sortable'));
jquery_ui_add('ui.sortable'); // For a single file
-- CONTACT --
See the contents of the jquery.ui-X.X sub-directory for a list of available
files that may be included, and see http://ui.jquery.com/docs for details on
how to use them. The required ui.core file is automatically included, as is
effects.core if you include any effects files.
Current maintainers:
* Jeff Robbins (jjeff)
* Angela Byron (webchick)
* Addison Berry (add1sun)
* Daniel F. Kudwien (sun) - http://drupal.org/user/54136
......@@ -31,7 +31,7 @@ function jquery_ui_requirements($phase) {
$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 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']['severity'] = REQUIREMENT_ERROR;
}
......@@ -44,3 +44,4 @@ function jquery_ui_requirements($phase) {
function jquery_ui_uninstall() {
variable_del('jquery_ui_compression_type');
}
......@@ -12,7 +12,7 @@
/**
* 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.
......@@ -65,9 +65,11 @@ function jquery_ui_add($files = array()) {
case 'none':
$file_path = "$file.js";
break;
case 'pack':
$file_path = "packed/$file.packed.js";
break;
case 'mini':
default:
$file_path = "minified/$file.min.js";
......@@ -75,7 +77,7 @@ function jquery_ui_add($files = array()) {
}
$js_path = $jquery_ui_path . '/' . $file_path;
drupal_add_js($js_path);
$loaded_files[$file] = $js_path; // or TRUE...
$loaded_files[$file] = $js_path;
}
}
}
......@@ -92,3 +94,4 @@ function jquery_ui_get_version() {
return $version;
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment