Download & Extend

JavaScript breaks when anchors on page

Project:JSFX
Version:5.x-1.0
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs review

Issue Summary

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://')) {

Comments

#1

Good call. I'll patch it soon.

Silvio

nobody click here