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)

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mikeytown2’s picture

Above 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.

mikeytown2’s picture

Code change only; no dir structure changes made.

muka’s picture

Hey 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

micheas’s picture

Would 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.

alexander.sibert’s picture

I 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.

ericduran’s picture

Title: Upgrade jquery (1.9 / ui 1.10) » Upgrade jquery 1.9

I 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

ericduran’s picture

Status: Needs review » Needs work
-enzo-’s picture

He 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

ericduran’s picture

This 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.

ericduran’s picture

FileSize
390.61 KB

Here's an update patch with decent 1.9 support.

There's more core scripts that need to be replace. This just fixes the bbq.

klonos’s picture

Title: Upgrade jquery 1.9 » Offer latest jQuery 1.9.x as an option (currently 1.9.1).

Closed #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.

klonos’s picture

Status: Needs work » Reviewed & tested by the community

I'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).?

ericduran’s picture

Well that's good enough for me to merge it.

@klonos Thanks :)

klonos’s picture

Status: Reviewed & tested by the community » Needs work

...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.

jim_at_miramontes’s picture

I'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.)

ericduran’s picture

Status: Needs work » Reviewed & tested by the community

@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.

klonos’s picture

I 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.

klonos’s picture

Component: Code » jQuery 1.9.x
ericduran’s picture

Status: Reviewed & tested by the community » Fixed

This 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

ericduran’s picture

Also @klonos I couldn't reproduce the "drag-n-drop handling falls back to weight dropdowns" :-/

klonos’s picture

@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.

Status: Fixed » Closed (fixed)

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