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.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | jqueryupdate7.patch | 13.97 KB | robloach |
Comments
Comment #1
robloachUhh, the actual patch would help....
Comment #2
mfer commentedOn 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.
Comment #3
robloachSun 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.
Comment #4
mfer commentedActually, 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?
Comment #5
robloachSame for the Drupal 6 version aparently, since it's already on jQuery 1.2.6... #344422: Remove Farbtastic Replacement
Comment #6
mfer commentedMade 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.