Attached is a patch that lets you specify the paths where you don't want jQuery Update script to be added (we had problem with jquery update for specific sections of the site or specific pages in the site). You can specify a list of paths (like node/add/blog or admin/*) in the administration page of jquery update.

CommentFileSizeAuthor
jquery_update.patch1.55 KBifuyivara
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

TravisCarden’s picture

Title: Context support for jQuery Update » Specify paths for jquery update

This would be valuable functionality indeed! I just spent way too long figuring out how to conditionally suppress jQuery Update from a custom module. Why don't we bump this up to 7.x where it's likely to get a little more love?

A thought on approach: Path surely isn't the only criterion people might like to test against. What about content type? or active theme? I could see this being used much like block visibility settings. Perhaps it should have similar configuration options. Or perhaps the setting should be exposed such that it could be toggled with Context, Rules, or in a custom module.

RobLoach’s picture

Title: Specify paths for jquery update » Context support for jQuery Update
Version: 6.x-1.1 » 7.x-2.x-dev

Context would be the perfect thing for this.

caspervoogt’s picture

Title: Specify paths for jquery update » Context support for jQuery Update

hear hear. Context support would be awesome. On pages with multiple QuickTabs or Views Slideshows, you can sometimes run into issues using some versions of jQuery, and it would be handy to be able to set a different version based on path or some other context.

joelwallis’s picture

So, how's going with the Context integration? I'm interested in contribute to it. In fact, I was already working on it when I stumbled upon that issue.

Anyone else working on it?

markhalliwell’s picture

Issue summary: View changes
Status: Active » Closed (duplicate)
Related issues: +#1539276: Introduce hook_jquery_version_alter()

I don't think this is going to happen. Closing in favor of another idea that has more merit.