Commit 39a454d7 authored by sun's avatar sun
Browse files

#559582 by sun, drupal-id.com: Fixed installation instructions.

parent abe4c445
......@@ -6,6 +6,7 @@ jQuery UI x.x-x.x, xxxx-xx-xx
jQuery UI 7.x-2.x, xxxx-xx-xx
-----------------------------
#559582 by sun, drupal-id.com: Fixed installation instructions.
#758910 by fp, sun: Fixed jQuery UI download link.
#537052 by sun: Updated for hook_library_alter().
by sun: Updated for #315100.
......
......@@ -21,48 +21,66 @@ 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
-- INSTALLATION --
* Apply the patch from http://drupal.org/node/315100
* Copy the jquery_ui module directory to your sites/all/modules directory, so it
is located in sites/all/modules/jquery_ui/.
1. Apply the patch from http://drupal.org/node/315100 .
* Download the latest jQuery UI 1.7 release from:
2. Copy the jquery_ui module directory to your sites/all/modules directory.
http://code.google.com/p/jquery-ui/downloads/list?q=1.7
3. Download the jQuery 1.7 development package from:
* Put the downloaded archive into the module directory:
http://code.google.com/p/jquery-ui/downloads/list?q=1.7
/sites/all/modules/jquery_ui/jquery.ui-1.7.zip
4. Extract it as a sub-directory called 'jquery-ui' in the jquery_ui folder:
* Extract the archive. This will create the following sub-directory:
/sites/all/modules/jquery_ui/jquery-ui/
/sites/all/modules/jquery_ui/jquery.ui-1.7/
5. Enable the module at Administer >> Site building >> Modules.
* Rename the sub-directory into "jquery.ui" within the jquery_ui module folder:
/sites/all/modules/jquery_ui/jquery.ui/
API
---
so the actual jQuery UI JavaScript files are located in:
/sites/all/modules/jquery_ui/jquery.ui/ui/*.js
* Enable the module at Administer >> Site building >> Modules.
-- 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
dependencies[] = jquery_ui
This will force users to have the jQuery UI module installed before they can
enable your module.
This will force users to have the jQuery UI module installed before they can
enable your module.
* In your module, call the following function:
2. In your module, call the following function:
jquery_ui_add($files);
drupal_add_js_library('ui.accordion');
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.
If you know the jQuery selector you are adding the widget to, you can have it
processed by the behaviors by calling:
If you know the jQuery selector you are adding the widget to, you can have it
processed by the behaviors by calling:
drupal_add_js_library('ui.accordion', '#accordion');
drupal_add_js_library('ui.accordion', '#accordion');
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