First, thanks for taking care of jQuery 1.1.x compat!

It's tragic that there's currently no way to override javascript includes, since this would allow us to keep the jQuery update nicely contained in a module. Perhaps we should try to get a hook_js_alter into HEAD before the code freeze? AN

The hybrid module/global approach taken by this module is unmanageable for a large multi-site install. In the absence of a clean way to perform the upgrade with a module, it would be better to switch globally all at once. Although I may have missed something, I see only two ways to accomplish this:

  1. merge compat-1.0.js into jquery.js and collapse-fix.js into drupal.js. This leaves us with two hacked files, but preserves the include order.
  2. Patch some core stuff to allow the module to do its thing without replacing misc/jquery.js

I wasn't able to find a cleaner solution than what this module does, but the above works for my case. Any other suggestions? It would be really nice if core allowed for JS overrides in some future version. Maybe there is an issue already in the core queue?

Comments

edrex’s picture

eck, should have previewed :)

BTW, I'm using the first approach above (manually adding the extra js files to the end of jquery.js and drupal.js)

bobthecow’s picture

It would be great if this could be fixed in core (maybe it's already been addressed in 6/7?).

I also ran into this on a large multisite deployment I use, so I came up with an Apache rewrite fix for the jQuery multisite problem. With a little .htaccess magic, it lets me use the jQuery update on some sites, but not on others, and doesn't require replacing core files.

sun’s picture

Status: Active » Closed (duplicate)