I am sure many others have ran into the same issue, of needing to update jQuery for the frontend theme but not for the administration theme. Replacing jQuery site-wide can cause many problems. Surprised this feature was missing, I wrote a very simple patch that offers this functionality.

The patch provides a checkbox that allows you to ignore the admin theme. If ticked, it will not replace jQuery in the administration theme - making everything work as expected. I am sure this will solve a lot of headaches - or migraines...

Please let me know if you run into any issues or have questions. I am happy to help.

Comments

thank you for very useful patch

Status:Needs review» Reviewed & tested by the community

Thanks this patch worked like a charm !

Beautiful. Should be integrated immediately. Thanks!

This looks good and is simpler than the latest patch in #1524944: Allow different version for administrative pages. So far I haven't had the need to override core's jQuery on admin pages.

+++ b/sites/all/modules/jquery_update/jquery_update.moduleundefined
@@ -70,6 +70,16 @@ function jquery_update_library_alter(&$javascript, $module) {
+  // Ignore admin theme

Minor nitpick: this comment should be a complete sentence (end in a period) - see http://drupal.org/node/1354 (General documentation standards).

Assigned:jnpwebdeveloper» Unassigned
Status:Reviewed & tested by the community» Needs review
StatusFileSize
new43.42 KB
new55.92 KB
new2.15 KB
new1.43 KB

Thanks @jnpwebdeveloper. I ran this by one of our themers and made some tweaks to hopefully make this easier to understand for both new and veteran themers.

Updated the patch so the default is to NOT update jQuery in the administration theme and tweaked the UI (moved the checkbox up and revised the text). If you're not using a separate administration theme, you won't see the checkbox. If you're using one theme across your whole site, the checkbox won't do anything anyway.

Seven:

jquery_update-seven-admintheme.png

No admin theme (Bartik):

jquery_update-bartik-noadmintheme.png

Status:Needs review» Closed (duplicate)

This is actually a duplicate of #1524944: Allow different version for administrative pages also gives users lets options.

This patch is a good idea but maybe you can comment/review/help with the other patch and it'll speed up the process :)

Issue summary:View changes

Updated issue summary.

Thanks. This helped me a lot!