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.
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
Comment #1
berenddeboer CreditAttribution: berenddeboer commentedI 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.
Comment #2
frjo CreditAttribution: frjo commentedCommitted to 6-dev. Thanks for the code!