JavaScript errors when compression is used

jtsnow - January 10, 2009 - 08:57
Project:jQuery UI
Version:6.x-1.2
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:won't fix
Description

I've implemented the 'selectable' and 'accordion' examples from the jQuery UI docs. When either 'packed' or 'minified' compression is used, I get the following JavaScript errors in the FireBug console:

A.ui is undefined (in selectable.js)
E.widget is not a function (in accordion.js)

These errors cause UI components to not work. Everything works fine for me when no compression is used.

#1

miked06 - January 12, 2009 - 20:19

This problem only applies to people using jquery-ui vs 1.5.3 (stable) if you downloaded the release candidate 1.6.4 then you won't have this problem.

I've gone through the function and the reason that when compression is used the function tries to first drupal_add_js for ui.core.packed.js that does not exist.
There is not a packed or a minified version of ui.core included in the jquery-ui development download, so here is the fix:

- goto http://ui.jquery.com/download use the personalization tool and only select ui core make sure that you then select the type of compression and then download it
- take that downloaded file and rename it ui.core.packed.js or ui.core.min.js, depending on your compression settings, and then put it /sites/all/modules/jquery_ui/jquery.ui/ui/packed or .../ui/minified
- that should fix the problem

#2

CHEETAH - August 22, 2009 - 22:04

I happen to have this same error, when no compression is used. I'll heed this advice and re-post my progress (or lack thereof).

#3

DamienMcKenna - June 20, 2009 - 18:46

styleplus: have you verified that you are using a 1.6.x release of the jQuery UI package from http://ui.jquery.com/ ?

#4

sun - June 21, 2009 - 01:36
Status:active» won't fix

This is a bug in the original editor library and cannot be fixed in this module. Please consult the vendor's bugtracker or forum for solutions.

 
 

Drupal is a registered trademark of Dries Buytaert.