Download & Extend

Problem jquery update and lightbox2

Project:Lightbox2
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:closed (duplicate)

Issue Summary

Hello,
when installing version 6.x-1.9 lightbox with version 6x-2.x-dev from jquery update that is made on the site drupal.org version jquery_update-6.x-1.1.tar but appears in drupal version 6x-2.x-dev I have a problem. Indeed I click on any links to Drupal and I have a slide that opens and I can not do anything even if I close the window and I click again on a link, the slide back. I attached the picture because I am afraid of going mad.

I'm in the latest version of the drupal 6.14.

AttachmentSize
jquery_update-6_x-1_1_tar_gz.jpg9.69 KB

Comments

#1

I applied all the patches listed http://drupal.org/node/411162 but this does not change, I always have the same problem.

An idea?

Thank you

AttachmentSize
lightbox2.jpg 30.78 KB

#2

Subscribe, it's an annoying effect, since some modules depends on jquery 1.3

#3

I'm having the same problem. With Jquery Update 6.x-2.x-dev and lightbox box 6.x 1.9 ALL links on a page are given the class "lightbox-processed".

For now what seems to be working for me is to use Lightbox 6.x-1.x-dev version instead of the official release.

#4

Hi, this is due to a deprecated selector type in jquery 1.3. See this tread: http://drupal.org/node/623738
Basically you need to do one of the following things:

1. go back to a previous jquery version (1.2)
2. or, hack the lightbox2 module yourself (not recommend) to remove all '@' on the selectors; this on the .js files..
3. or, create and publish a patch that does what option 2 says
4. or, wait until somebody else fixes the issue

Regards!

#5

Thank's. Is resolved go back to a previous jquery version (1.2) because to me that the hack lightbox2 is to remove all the @ did not work.

regards!

#6

So what's the status for the fix?

...Basically you need to do one of the following things:

1. go back to a previous jquery version (1.2)
2. or, hack the lightbox2 module yourself (not recommend) to remove all '@' on the selectors; this on the .js files..
3. or, create and publish a patch that does what option 2 says
4. or, wait until somebody else fixes the issue

For option #2 above, I assume you're talking about stuff like this (lines #3-12 of /lightbox2/js/lightbox2.js)?

function alt_layout_handler(event) {
  if ($("input[@name=lightbox2_lite]:checked").val() != 1) {
    if ($("input[@name=lightbox2_use_alt_layout]:checked").val() == 1) {
      $("input[@name=lightbox2_force_show_nav]").attr("disabled", "disabled");
    }
    else {
      $("input[@name=lightbox2_force_show_nav]").removeAttr("disabled");
    }
  }
}

becomes

function alt_layout_handler(event) {
  if ($("input[name=lightbox2_lite]:checked").val() != 1) {
    if ($("input[name=lightbox2_use_alt_layout]:checked").val() == 1) {
      $("input[name=lightbox2_force_show_nav]").attr("disabled", "disabled");
    }
    else {
      $("input[name=lightbox2_force_show_nav]").removeAttr("disabled");
    }
  }
}

Edit: I just tested it and it appears that that is indeed the suggested change (removed all instances of "@" minus the commenting at the top).

#7

Component:Miscellaneous» Code
Category:support request» bug report
Assigned to:pcsystemd» Anonymous

#8

Project:jQuery Update» Lightbox2
Version:6.x-2.x-dev» 6.x-1.x-dev

From the description here it sounds like lightbox2 is using some deprecated code.

#9

After upgrading to jquery_update 6.x-2.x-dev Lightbox2 6.x-1.9 started opening images in a new page rather than in an overlay. Luckily, I got it fixed by upgrading to the latest Lightbox2 dev version.

#10

I also got this problem fixed by upgrading to the latest dev version of lightbox2

#11

idem. Problem solved by upgrading to lightbox2-6.x-1.x-dev.
thanks to all

#12

Status:active» closed (duplicate)

duplicate of #411162: Problem with 'automatic image URL re-formatting' with jQuery 1.3.x

#13

suggesting a commit to a 1.9.1 version to fix these issue for regular users.