Hi!
I'm using IMCE as module for managing files:
http:///user/1/imce
This displays a filebrowser windows. (not a normal page template, simply the filebrowser)
Because of a check in ajax-responder.js of CTools, the Upload buttons are not rendered.
Line 505:
// Add information about loaded CSS and JS files.
if (Drupal.settings.CToolsAJAX.css) { }
Because Drupal.settings.CToolsAJAX is empty on this page, this lead to a javascript error. (Drupal.settings.CToolsAJAX.css is undefined)
Attached you find a patch, that solves this issue with an additional check.
Comments
Comment #1
socialnicheguru commentedThis is awesome. after hours of searching for my specific gmap error, I looked in Firebug and saw that there was a ctools error. Your patch helped solve it.
Can this be committed?
Comment #2
merlinofchaos commentedSure, this is easy enough.
Comment #4
kenorb commentedThanks.
Comment #5
kenorb commentedRelated: #907596: CTools Javascript error kills update.php
Comment #6
johnhanley commentedI'm having the same problem. That is, the above error breaks the IMCE upload button.
What's the status of this patch as part of an official release? I don't want to use the dev version on a production server and the current 6.x-1.7 version as of July 26, 20010, obviously predates this patch.
Comment #7
merlinofchaos commentedThe patch is in the -dev version and we're very close to a new release.
Comment #8
johnhanley commentedThanks merlin. I'll hold-out until then.
Comment #9
japerryClosing this issue as outdated as Drupal 6 ctools is not supported. If this issue is relevant for Drupal 7, feel free to re-open and mark for Drupal 7 (or 8)