Commit d43b5de8 authored by sun's avatar sun
Browse files

Preparing new release.

parent 997b891f
......@@ -6,6 +6,10 @@ jQuery UI x.x-x.x, xxxx-xx-xx
jQuery UI 5.x-1.x, xxxx-xx-xx
-----------------------------
jQuery UI 5.x-1.1, 2009-06-21
-----------------------------
#325831 by quicksketch, James Andres, ksenzee: Fixed drupal_get_path() fails
during Drupal installation.
#362509 by Rob Loach, Deciphered, sun, and adrinux: New release system with
......
// $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,53 +9,70 @@ 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
To submit bug reports and feature suggestions, or to track changes:
http://drupal.org/project/issues/jquery_ui
INSTALLATION
------------
-- REQUIREMENTS --
1. Copy the jquery_ui module directory to your sites/all/modules directory.
* The jQuery UI library.
2. Download the latest jQuery 1.6 development package from:
http://code.google.com/p/jquery-ui/downloads/list?can=3&q=1.6
-- INSTALLATION --
3. Extract it as a sub-directory called 'jquery.ui' in the jquery_ui folder:
* Copy the jquery_ui module directory to your sites/all/modules directory.
/sites/all/modules/jquery_ui/jquery.ui/
* Download the latest jQuery UI 1.6 development package from:
4. Enable the module at Administer >> Site building >> Modules.
http://code.google.com/p/jquery-ui/downloads/list?can=3&q=1.6
5. If desired, configure the module at Administer >> Site configuration >>
jQuery UI. Here you may select which level of compression the jQuery library
should use. It defaults to 'minified' compression, which strips comments and
white space.
* Extract it as a sub-directory called 'jquery.ui' in the jquery_ui folder:
/sites/all/modules/jquery_ui/jquery.ui/
API
---
* Enable the module at Administer >> Site building >> Modules.
* If desired, configure the module at Administer >> Site configuration >>
jQuery UI. Here you may select which level of compression the jQuery library
should use. It defaults to 'minified' compression, which strips comments and
white space.
-- API --
Developers who wish to use jQuery UI effects in their modules need only make
the following changes:
1. In your module's .info file, add the following line:
* In your module's .info file, add the following line:
dependencies[] = jquery_ui
This will force users to have the jQuery UI module installed before they can
enable your module.
dependencies = jquery_ui
* In your module, call the following function:
This will force users to have the jQuery UI module installed before they can
enable your module.
jquery_ui_add($files);
2. In your module, call the following function:
For example:
jquery_ui_add($files);
jquery_ui_add(array('ui.draggable', 'ui.droppable', 'ui.sortable'));
For example:
jquery_ui_add('ui.sortable'); // For a single file
jquery_ui_add(array('ui.draggable', 'ui.droppable', 'ui.sortable'));
jquery_ui_add('ui.sortable'); // For a single file
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.
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.
-- CONTACT --
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 'packed':
$file_path = "packed/$file.packed.js";
break;
case 'minified':
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;
}
}
}
......@@ -124,3 +126,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