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) {

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

kinnel’s picture

OOPS, I mean

 if (!empty($variables['scripts']) || strpos($_SERVER['REQUEST_URI'],'/admin') !== 0) {
tnfno’s picture

Your 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/')) {

andreap’s picture

tnfno, your solution is working correctly?

cprouvot’s picture

Issue tags: +jquery update, +#views

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

if ($module != 'system' OR arg(0) == 'admin') {
    return;
  }

I think this issue is in relation with another issue in the Views issue queue #1869988

DamienMcKenna’s picture

Version: 6.x-1.x-dev » 6.x-2.x-dev
Status: Active » Needs review
FileSize
5.81 KB

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

superspring’s picture

Version: 6.x-2.x-dev » 7.x-2.3
FileSize
2.64 KB

Same patch for D7

berliner’s picture

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

markhalliwell’s picture

Issue summary: View changes
Status: Needs review » Closed (won't fix)

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