Hi

Here is a corrected INSTALLATION section for jQuery UI module's README.txt:

INSTALLATION
------------

  1. Copy the jquery_ui module directory to your sites/all/modules directory.
  2. Download the "all components" of jQuery UI from:
    http://ui.jquery.com/download/
  3. Create a subdirectory called 'tmp' and extract download within it.
    /sites/all/modules/jquery_ui/tmp/
  4. Move the extracted subdirectory 'development-bundle' out of subdirectory 'tmp', into jquery_ui.
    /sites/all/modules/jquery_ui/development-bundle/
  5. Rename "development-bundle" to "jquery.ui":
    /sites/all/modules/jquery_ui/jquery.ui/
  6. Enable the module at Administer >> Site building >> Modules.
  7. Check status report to assure module is loaded correctly the module at Administer.
CommentFileSizeAuthor
#1 README.txt2.12 KBjeff00seattle

Comments

jeff00seattle’s picture

StatusFileSize
new2.12 KB

Attached is corrected README.txt file.

What concerns me is if we should also include the files within extracted jquery-ui-1.7.1.custom.zip download subdirectory 'js' which include:

  • jquery-1.3.2.min.js
  • jquery-ui-1.7.1.custom.min.js
beginner’s picture

beginner’s picture

Also, README mentions nothing about jquery_ui themes that are downloaded together with jquery_ui itself.

To make it work, I added the following line to my module:

  drupal_add_css(drupal_get_path('module', 'jquery_ui') . '/jquery.ui/themes/ui-lightness/ui.all.css');

This means obviously that the theme is hard coded into my module!

dejamuse’s picture

I found I couldn't enable the module until I put all the .js scripts from /development-bundle/ui into the /jquery.ui folder:

Get the latest (stable) file from: here. The link is at the top of the page for the "Quick download" containing all of the scripts. Alternatively you can select which scripts you want to include, then build and download the custom zip file, on the right side of the page.

The readme says to create the directory structure:

/sites/all/modules/jquery_ui/jquery.ui/

/jquery_ui is created by installing the Drupal module. Put the contents of the 'ui' directory from the downloaded and extracted file above, into /jquery.ui

Note the "." in the 2nd as opposed to the underscore in the first. So, the contents of the 'ui' folder from the zip file are all the various .js scripts that want to live in /jquery.ui

After I did this, the module enabled ok.

It's also dependent on the 'jquery update' module as mentioned in the module list on your site.

ecube85’s picture

I am still unable to enable the jquery ui checkbox in modules page. I followed all the steps provided here and still it doesnot work. What can be the problem??

robloach’s picture

Status: Active » Closed (duplicate)
dasTEO’s picture

Hello,

I had also much trouble to activate the module jQuery UI. Reading README.txt again and again. Do the install progcedure again and again. Check the firectories and files. It seemed hopeless.
One hint I'd found was to edit the 'sites/all/modules/jquery_ui/jquery_ui.install'. And this was the only way to activate the module.

Search for...

if ($jquery_ui_version = jquery_ui_get_version()) {

and replace it with...

if ($jquery_ui_version == jquery_ui_get_version()) {

In the first version the single equal operator doesn't compare the values but make a assignment. So the installer obviously can't activate the module. A lot of you have the same problem. With this workaround life will be easier (for a short time).