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) {
|
$('.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 bigImage = $(this).attr("data-bigimage");
|
||||||
var $img = $('<img />').attr("src", bigImage);
|
var $img = $('<img />').attr("src", bigImage);
|
||||||
$('#lightbox, #lightboxPanel').fadeIn(400);
|
$('#lightbox, #lightboxPanel').fadeIn(400);
|
||||||
$('#lightboxPanel').empty().append($img);
|
$('#lightboxPanel').empty().append($img);
|
||||||
if ($(this).hasAttr("title")) {
|
var title = $(this).hasAttr("title") ? $(this).attr("title") : '';
|
||||||
var $caption = $('<div />').addClass("lightboxCaption").text($(this).attr("title")).appendTo($('#lightboxPanel'));
|
if (title != '') {
|
||||||
|
var $caption = $('<div />').addClass("lightboxCaption").text(title).appendTo($('#lightboxPanel'));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user