Skip to content

Commit

Permalink
Compatibility with html5shiv.
Browse files Browse the repository at this point in the history
  • Loading branch information
sibprogrammer committed May 26, 2012
1 parent a9e6453 commit 002a639
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions js/lightbox.js
Expand Up @@ -87,7 +87,8 @@ lightbox = new Lightbox options
_this = this;
$("<div>", {
id: 'lightboxOverlay'
}).after($('<div/>', {
}).appendTo($('body'));
$('<div/>', {
id: 'lightbox'
}).append($('<div/>', {
"class": 'lb-outerContainer'
Expand Down Expand Up @@ -123,7 +124,7 @@ lightbox = new Lightbox options
"class": 'lb-close'
}).append($('<img/>', {
src: this.options.fileCloseImage
}))))))).appendTo($('body'));
})))))).appendTo($('body'));
$('#lightboxOverlay').hide().on('click', function(e) {
_this.end();
return false;
Expand Down

3 comments on commit 002a639

@husmen73
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is working with html5shiv. Thank you.

@rleger
Copy link

@rleger rleger commented on 002a639 Dec 31, 2012

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, really helped me !!!!

@mmbryce
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow! I have been searching for a fix for this for days.....everything worked fine and then the minute the html5 shiv was in place it all fell apart. Thank you!!!! My lightbox works great now.

Please sign in to comment.