If you use Drupal.behaviours, use context. So this:

[code]$("a[href*='/user/login']"). ...[/code]

Should become:

[code]$("a[href*='/user/login']", context). ...[/code]

i.e. add a , context inside the selector.

Comments

berenddeboer’s picture

I just love stuff you can't edit...

If you use Drupal.behaviours, use context. So this:

$("a[href*='/user/login']"). ...

Should become:

$("a[href*='/user/login']", context). ...

i.e. add a , context inside the selector.

frjo’s picture

Status: Active » Fixed

Committed to 6-dev. Thanks for the code!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.