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.
I've noticed that the administrative interface of Drupal, and particularly of Views, depends on the core version of jQuery. It would be a simple fix I think to use the updated version, except for administrative pages - change line 63 of jquery_update.module to:
if (!empty($variables['scripts']) || strpos($_SERVER['REQUEST_URI'],'/admin') === 0) {
Comment | File | Size | Author |
---|---|---|---|
#6 | jquery_update-1189496-6.patch | 2.64 KB | superspring |
#5 | jquery_update-n1189496-5.patch | 5.81 KB | DamienMcKenna |
Comments
Comment #1
kinnel CreditAttribution: kinnel commentedOOPS, I mean
Comment #2
tnfno CreditAttribution: tnfno commentedYour first post was better, but the value returned is not 0, it is FALSE. I got it to work with:
if (!empty($variables['scripts']) && !strpos($_SERVER['REQUEST_URI'],'/admin/')) {
Comment #3
andreap CreditAttribution: andreap commentedtnfno, your solution is working correctly?
Comment #4
cprouvot CreditAttribution: cprouvot commentedI had exactly the same issue on Drupal 7. With jQuery 1.8, the Views module was crash.
I work with the actual stable released of jQuery Update (7.x-2.3) and i had this in the line 69 of the jquery_update.module :
I think this issue is in relation with another issue in the Views issue queue #1869988
Comment #5
DamienMcKennaHow about a patch like this? It provides two options that let you disable the new jQuery version on either admin or node-add/edit pages. Using this patch allowed Views v3 to work on my site.
Comment #6
superspring CreditAttribution: superspring commentedSame patch for D7
Comment #7
berliner CreditAttribution: berliner commentedAlso consider #1969244: Specify jQuery version per theme which would allow theme specific jQuery versions, tackling quite some problems that result from a conceptual mixup between admin pages and admin theme.
Comment #8
markhalliwellThe 7.x-3.x branch removed the concept of the "admin jQuery version/paths" and replaced it with #1969244: Specify jQuery version per theme.
The 7.x-2.x branch will no longer be maintained or have patches applied to it.