Now that hook_js_alter() is now in Drupal 7 (issue), I thought I'd test it out a bit with jQuery Update and it seemed to work as expected..... Here's the patch from HEAD to update jQuery Update to Drupal 7.x.

CommentFileSizeAuthor
#1 jqueryupdate7.patch13.97 KBrobloach

Comments

robloach’s picture

StatusFileSize
new13.97 KB

Uhh, the actual patch would help....

mfer’s picture

On my todo list when I get some time. This would be a great example module and needed when jquery ui for drupal 7 comes out.

robloach’s picture

Sun said we can't remove the replaced farbtastic.js. I assumed that it was already updated to jQuery 1.2.6. I have to say that I shamelessly didn't test the Color module and just uploaded the patch when I saw that it was using jquery.min.js.

mfer’s picture

Actually, at this point we can remove farbtastic.js. The core version would be the same as the version included in this module... for now. Is there a reason we can't remove it?

robloach’s picture

Same for the Drupal 6 version aparently, since it's already on jQuery 1.2.6... #344422: Remove Farbtastic Replacement

mfer’s picture

Status: Needs review » Fixed

Made a couple code changes so jquery.js isn't replaced if the core version is the same as jQuery Update provides and is using the same compression.

Updated the changelog.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.