silly
This commit is contained in:
parent
de0fb3bc76
commit
0b1ba2ed87
|
@ -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'));
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user