When module used with Absolute Messages module I got JS error

Uncaught TypeError: Cannot read property 'indexOf' of undefined
    at HTMLAnchorElement.<anonymous> (search-reference.js?omjlnb:45)
    at Function.each (jquery.min.js?v=1.8.3:2)
    at $.fn.init.each (jquery.min.js?v=1.8.3:2)
    at $.fn.init.$.fn.once (jquery.once.js?v=1.2:55)
    at Object.attach (search-reference.js?omjlnb:37)
    at Object.<anonymous> (drupal.js?omjlnb:76)
    at Function.each (jquery.min.js?v=1.8.3:2)
    at Object.Drupal.attachBehaviors (drupal.js?omjlnb:74)
    at HTMLDocument.<anonymous> (drupal.js?omjlnb:504)
    at l (jquery.min.js?v=1.8.3:2)

Source of issue: links without href added by Absolute Messages modue

<a class="absolute-messages-show" title="<?php print $vars['show_dismissed']; ?>"></a>

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

AlexKirienko created an issue. See original summary.

AlexKirienko’s picture

Only links with href attribute have to be processed.

AlexKirienko’s picture

Status: Active » Needs review
AlexKirienko’s picture

Issue summary: View changes