Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Bug in Javascript that causes images not to load.

$
0
0

Replies: 0

On line 106 of kale.js, there is the following line of code:


if(jQuery(item).attr('src').match(/(https?:)?\/\/www\.youtube\.com/)) {

This code will break and cause your images not to load if there is an <iframe> without the src attribute. I fixed this by changing that line to this:


if(jQuery(item).attr('src') != "" && jQuery(item).attr('src').match(/(https?:)?\/\/www\.youtube\.com/)) {
  • This topic was modified 26 minutes ago by tino1b2be.
  • This topic was modified 25 minutes ago by tino1b2be.
  • This topic was modified 25 minutes ago by tino1b2be.

Viewing all articles
Browse latest Browse all 59525

Trending Articles