JavaScript breaks when anchors on page

Reg - January 6, 2008 - 06:43
Project:JSFX
Version:5.x-1.0
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs review
Description

Breaks when anchor on page since anchors have no "href" attribute. In linkpopup-all.js and perhaps linkpopup.js, this:

if($(this).attr('href').match('http://')) {

needs to be changed to something like this:

if($(this).attr('href') != null && $(this).attr('href').match('http://')) {

#1

silviogutierrez - January 7, 2008 - 00:30

Good call. I'll patch it soon.

Silvio

 
 

Drupal is a registered trademark of Dries Buytaert.