lightbox Container
This commit is contained in:
parent
e13bafae4f
commit
4a66b2e01c
|
@ -66,14 +66,15 @@ $('.thumbsDetails').live("click", function(e) {
|
||||||
showLightbox($img);
|
showLightbox($img);
|
||||||
var title = $(this).hasAttr("title") ? $(this).attr("title") : '';
|
var title = $(this).hasAttr("title") ? $(this).attr("title") : '';
|
||||||
var $c = $('#lightboxContent');
|
var $c = $('#lightboxContent');
|
||||||
|
var $cont = $('.lightboxContainer').appendTo($c);
|
||||||
if (title != '') {
|
if (title != '') {
|
||||||
var $caption = $('<div />').addClass("lightboxCaption").text(title).appendTo($c);
|
var $caption = $('<div />').addClass("lightboxCaption").text(title).appendTo($cont);
|
||||||
}
|
}
|
||||||
if (hasNext) {
|
if (hasNext) {
|
||||||
var $next = $('<div />').addClass("lightboxNext").text("next").data("image", nextImage).appendTo($c);
|
var $next = $('<div />').addClass("lightboxNext").text("next").data("image", nextImage).appendTo($cont);
|
||||||
}
|
}
|
||||||
if (hasPrev) {
|
if (hasPrev) {
|
||||||
var $prev = $('<div />').addClass("lightboxPrev").text("prev").data("image", prevImage).appendTo($c);
|
var $prev = $('<div />').addClass("lightboxPrev").text("prev").data("image", prevImage).appendTo($cont);
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user