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.

Comments

pcsystemd’s picture

StatusFileSize
new30.78 KB

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

manuel.adan’s picture

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

jhebel’s picture

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.

esolano’s picture

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!

pcsystemd’s picture

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!

silurius’s picture

Component: Code » Miscellaneous
Assigned: Unassigned » pcsystemd
Category: bug » support

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

silurius’s picture

Component: Miscellaneous » Code
Assigned: pcsystemd » Unassigned
Category: support » bug
mfer’s picture

Project: jQuery Update » Lightbox2
Version: 6.x-2.x-dev » 6.x-1.x-dev
Component: Miscellaneous » Code
Assigned: pcsystemd » Unassigned
Category: support » bug

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

vacilando’s picture

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.

chaloalvarezj’s picture

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

anou’s picture

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

stella’s picture

Status: Active » Closed (duplicate)
lpalgarvio’s picture

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