This commit is contained in:
j 2011-10-11 18:15:41 +05:30
parent de0fb3bc76
commit 0b1ba2ed87

View File

@ -30,13 +30,15 @@ $('#listLeft ul li a').live("click", function() {
$('.thumbsDetails').live("click", function(e) {
// alert($(this).attr("data-bigimage"));
// alert($(this).attr("data-bigimage"));
var that = this;
var bigImage = $(this).attr("data-bigimage");
var $img = $('<img />').attr("src", bigImage);
$('#lightbox, #lightboxPanel').fadeIn(400);
$('#lightboxPanel').empty().append($img);
if ($(this).hasAttr("title")) {
var $caption = $('<div />').addClass("lightboxCaption").text($(this).attr("title")).appendTo($('#lightboxPanel'));
var title = $(this).hasAttr("title") ? $(this).attr("title") : '';
if (title != '') {
var $caption = $('<div />').addClass("lightboxCaption").text(title).appendTo($('#lightboxPanel'));
}
});