lightbox Container

This commit is contained in:
Sanj 2011-11-07 16:19:39 +05:30
parent e13bafae4f
commit 4a66b2e01c

View File

@ -66,14 +66,15 @@ $('.thumbsDetails').live("click", function(e) {
showLightbox($img);
var title = $(this).hasAttr("title") ? $(this).attr("title") : '';
var $c = $('#lightboxContent');
var $cont = $('.lightboxContainer').appendTo($c);
if (title != '') {
var $caption = $('<div />').addClass("lightboxCaption").text(title).appendTo($c);
var $caption = $('<div />').addClass("lightboxCaption").text(title).appendTo($cont);
}
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) {
var $prev = $('<div />').addClass("lightboxPrev").text("prev").data("image", prevImage).appendTo($c);
var $prev = $('<div />').addClass("lightboxPrev").text("prev").data("image", prevImage).appendTo($cont);
}
});