jQuery Lightbox2 resulting in IE Javascript Errors

Having needed to use a jquery lightbox plugin, in this case: Lightbox2 (huddletogether.com), my client noticed that it generated javascript errors on IE.

Message: Invalid argument.
Line: 116
Char: 165
Code: 0
URI: http://________.com/static/js/jquery.js

After poking around, it seems as though there was an extra ‘;’ which caused IE to messup.

Change the line:

$('#outerImageContainer').css({width: '250px', height: '250px;'});

on line 42 in lightbox.js to

$('#outerImageContainer').css({width: '250px', height: '250px'});

should fix the issue.

Leave a Reply

Your email address will not be published.