Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi, the patch that follow ships jquery 1.9 and jquery ui 1.10(+1.9) with a path selector to limit the replacement (#1766240-8: Option to limit Jquery Update scope to front end only).
Attached either the replace/ directory structure (remove the previous as structure has changed)
Comment | File | Size | Author |
---|---|---|---|
#10 | jquery_update-1.9.patch | 390.61 KB | ericduran |
#8 | jquery_update-1.9-version-2.3-dev.patch | 18.35 KB | -enzo- |
#2 | jquery_update-1901672-2-upgrade-libs.patch | 20.26 KB | mikeytown2 |
#1 | jquery_update-1901672-1-upgrade-libs.patch.gz | 1.36 MB | mikeytown2 |
replace.tar_.gz | 1.41 MB | muka |
Comments
Comment #1
mikeytown2 CreditAttribution: mikeytown2 commentedAbove patch with this #1524944-78: Allow different version for administrative pages used as the starting point and some fixes to the jquery ui cdn code.
Gzipped as it's 5mb in size uncompressed.
Comment #2
mikeytown2 CreditAttribution: mikeytown2 commentedCode change only; no dir structure changes made.
Comment #3
muka CreditAttribution: muka commentedHey great work, I'm waiting too for #1524944: Allow different version for administrative pages to be solved and commited.
Would you like to test the above patch so can be marked as reviewed?
Thank you
Comment #4
micheas CreditAttribution: micheas commentedWould a better approach be to enable jquery update on a per theme basis?
I don't have a huge amount of experience with drupal to know where the best place to set this would be and am just raising the question.
Comment #5
alexander.sibert CreditAttribution: alexander.sibert commentedI use current the Zurb Foundation 4 Theme http://foundation.zurb.com and it needs jQuery 1.9 with Zepto. It will be nice to have jQuery 1.9 in Drupal 7. At the moment i can use only jQuery 1.8 in jQuery Update module. Also it will be nice to switch the jQuery Version per Template or Frontend/Backend.
Comment #6
ericduran CreditAttribution: ericduran commentedI separate the updating jQuery UI to a separate issue #1947438: Update jQuery UI to the latest version (1.10.2).
Lets keep to doing one thing in an single issue.
So we can use this issue for update JQuery the other one for updating jQuery UI
Comment #7
ericduran CreditAttribution: ericduran commentedComment #8
-enzo- CreditAttribution: -enzo- commentedHe guys I reroll the patch against dev version for 2.3 and I fix a little conflict with pages variable in admin page
The patch works to separate admin section and the rest of page to run jquery 1.9, but the logic to enable the inclusion or exclusion by path is not working.
great work mikeytown2 and muke
Comment #9
ericduran CreditAttribution: ericduran commentedThis needs work.
The patch does a lot. it really should just update jquery to 1.9 we'll fix any 1.9 bugs if any separately.
Comment #10
ericduran CreditAttribution: ericduran commentedHere's an update patch with decent 1.9 support.
There's more core scripts that need to be replace. This just fixes the bbq.
Comment #11
klonosClosed #2032011: support for jQuery 1.9.1 as a duplicate. Lets keep this issue focused on updating to newest 1.9.x versions as they are released.
Comment #12
klonosI've been using #10 for a couple of months now without any problems in quite a few sites. Modules/features that are used and displayed no signs of misbehavior are Admin Menu, Module Filter, Views UI, Draggable Views, Views Slideshow, Views Slideshow Xtra, Nice Menus, menu management pages and other aspects.
So, what else do we need to do to get this in and move to #2023789: Offer latest jQuery 1.10.x as an option (currently 1.10.2).?
Comment #13
ericduran CreditAttribution: ericduran commentedWell that's good enough for me to merge it.
@klonos Thanks :)
Comment #14
klonos...minor issue that manifests only when switching to 1.9 and clearing caches: drag-n-drop handling falls back to weight dropdowns instead the little cross thingies.
Comment #15
jim_at_miramontes CreditAttribution: jim_at_miramontes commentedI'm a little late to this party... I'm currently running jQuery Update 7.x-2.3 to get jQuery 1.7, but would like to get to at least 1.8.3. If I want to try the patch from #10, do I need to do anything more than download it and run that against my installation, or are other files necessary? (I didn't follow the "There's more core scripts that need to be replace. This just fixes the bbq" reference.)
Comment #16
ericduran CreditAttribution: ericduran commented@klonos I think we can add the jquery version and then add a fix for the drag and drop.
We can't fix all the issues in one patch.
Comment #17
klonosI agree. We shouldn't be keeping this issue back when we can file follow-ups. One thing though: please implement #2048923: Create separate entries for each jQuery and jQuery UI version in the project's "Component" drop-down. so when we file issues, we can also select which version of jQuery we're having them with. Thanx.
Comment #18
klonos...assigning to the proper component after (part of) #2048923: Create separate entries for each jQuery and jQuery UI version in the project's "Component" drop-down. was implemented ;)
Comment #19
ericduran CreditAttribution: ericduran commentedThis is now fixed.
While I was at it, I also fixed the overlay-parent.js to work with jquery 1.9.1 also update jquery BBQ and patch it to work with jquery 1.9 too.
I committed the diff file in the appropriate directory for reference.
I also added the jQuery 1.9 map file to the 1.9 folder that way you if you're running chrome with Source map support you don't get a 404 all the time.
:) That's all folks.
--
http://drupalcode.org/project/jquery_update.git/commit/5ced7b4
Comment #20
ericduran CreditAttribution: ericduran commentedAlso @klonos I couldn't reproduce the "drag-n-drop handling falls back to weight dropdowns" :-/
Comment #21
klonos@ericduran: yeah, sorry I should have been more specific back in #14. The issue I mention happens with admin_menu installed and when selecting jquery versions 1.9 or 1.10...
1. Install latest dev of core, admin_menu and jquery_update (or launch a sandbox at simplytest.me)
2. Enable admin_menu and disable the default toolbar that comes with core.
3. Keep the jquery update settings page (/admin/config/development/jquery_update) open in one tab having selected either jquery 1.9 or 1.10
4. Navigate to a page that uses several drag-n-drop markers like the navigation menu links admin page for example (/admin/structure/menu/manage/navigation)
5. Use admin_menu's "Flash all caches" menu item. When the page refreshes and caches are cleared see the weight drop-downs instead of the drag-n-drop markers.
6. Refresh the page and see the drag-n-drop markers show up again.
7. Switch to the browser tab with the jquery update settings page from step 3 and select any version of jquery from 1.5 to 1.8.
8. Switch to the browser tab with the drag-n-drop markers page from step 4 and use admin_menu's "Flash all caches" menu item. When the page refreshes and caches are cleared see the the drag-n-drop markers remain in place.