This commit is contained in:
Karen 2011-11-07 16:50:45 +05:30
commit 8f82f72dae

View File

@ -63,10 +63,11 @@ $('.thumbsDetails').live("click", function(e) {
var bigImage = $(this).attr("data-bigimage");
var $img = $('<img />').attr("src", bigImage);
showLightbox($img);
// showLightbox($img);
var title = $(this).hasAttr("title") ? $(this).attr("title") : '';
var $c = $('#lightboxContent');
var $cont = $('.lightboxContainer').appendTo($c);
// var $c = $('#lightboxContent');
var $cont = $('<div />').addClass("lightboxContainer");
$img.appendTo($cont);
if (title != '') {
var $caption = $('<div />').addClass("lightboxCaption").text(title).appendTo($cont);
}
@ -76,7 +77,7 @@ $('.thumbsDetails').live("click", function(e) {
if (hasPrev) {
var $prev = $('<div />').addClass("lightboxPrev").text("prev").data("image", prevImage).appendTo($cont);
}
showLightbox($cont);
});
function hideLightbox() {