After installing this module and installing jquery as specified all collapsable fieldsets on whole drupal site are dead. This seem to be a problem of jquery, but i installed the right versions!!!!!

Jquery_ui_dialog (jquery_ui_dialog-6.x-1.0-rc2)
WYSIWYG (wysiwyg-6.x-2.x-dev)
jquery_update (jquery_update-6.x-2.x-dev)
jquery_ui (jquery_ui-6.x-1.3, mit jquery_ui 1.7.2)

What can I do?

Comments

eugenmayer’s picture

Well i remember having a hotfix for that - but iam not sure. Any JS errors?
AFAIR its a problem of the jquery selector not binding the onclick event anymore, because the selector is broken.

diff --git a/modules/system/system.css b/modules/system/system.css
index 4bc92f2..78dd599 100644
--- a/modules/system/system.css
+++ b/modules/system/system.css
@@ -311,9 +311,15 @@ html.js fieldset.collapsed {
 html.js fieldset.collapsed * {
   display: none;
 }
+
 html.js fieldset.collapsed legend {
   display: block;
 }
+
+html.js fieldset.collapsed legend * {
+  display: block;
+}
+
 html.js fieldset.collapsible legend a {
   padding-left: 15px; /* LTR */
   background: url(../../misc/menu-expanded.png) 5px 75% no-repeat; /* LTR */

Eventhough this is for "showing" the fieldset header, that was the problem for me (not clickable because the div was hidden)

eugenmayer’s picture

Thats the drupal-corrrected-patch

--- modules/system/system.css
+++ modules/system/system.css
@@ -311,9 +311,15 @@ html.js fieldset.collapsed {
 html.js fieldset.collapsed * {
   display: none;
 }
+
 html.js fieldset.collapsed legend {
   display: block;
 }
+
+html.js fieldset.collapsed legend * {
+  display: block;
+}
+
 html.js fieldset.collapsible legend a {
   padding-left: 15px; /* LTR */
   background: url(../../misc/menu-expanded.png) 5px 75% no-repeat; /* LTR */
eugenmayer’s picture

If that does actually not help (you cleared the cache just to be sure)..deactivate wysiwyg_imageupload and jquery_ui_dialog. Clear your cache.

Does the Problem still exist?

I cannot reproduce this on neither a garland theme nor on any other theme i have. A clean D15 installation does work flawlessly.

In general, wysiwyg_imageupload and jquery_ui_dialog do not touch those fieldsets at all. So the only things related to those modules could be:
- Javascript error before
- the jquery_ui library

Did you try the jquery_ui howto and installed my version of jquery_ui or did you use the one from the jquery ui homepage?

drupalfan2’s picture

At first I installed jquery_ui from the jquery ui homepage. Then I saw on http://drupal.org/project/wysiwyg_imageupload that I need jquery_ui 1.7 and I loaded this version from YOUR link on this site: http://drupal.org/node/694632 and installed it deleting the previous version.

When starting from disabled modules the problem appears when I enable the modul jQuery Update.

Is there an other version of this module (jQuery Update) which works?
Or what exactly is the problem when activating jQuery Update? Thanx.

eugenmayer’s picture

Well this is pretty odd. There must be some sideeffects as a lot of users use jquery_update. Iam using it for over a year now with a lot of modules..

I guess we are talking about 6.x-2.x-dev - or?

Well i have a last guess here, do you have any performance tunes? So js-packing, caching etc? so under admin/settings/performance try to deactivate anything.

Iam gone for a week of vacation now, so you`ll alone for now :)

eugenmayer’s picture

Well, you should have searched the jquery_update issue queue.

#507240: Collapsible fieldsets break with latest dev version

eugenmayer’s picture

Status: Active » Closed (duplicate)

i mark this as a dublicate of the jquery_update issue