lightbox stuff
This commit is contained in:
parent
3e0bde75d1
commit
18bccce8e5
|
@ -63,10 +63,11 @@ $('.thumbsDetails').live("click", function(e) {
|
||||||
|
|
||||||
var bigImage = $(this).attr("data-bigimage");
|
var bigImage = $(this).attr("data-bigimage");
|
||||||
var $img = $('<img />').attr("src", bigImage);
|
var $img = $('<img />').attr("src", bigImage);
|
||||||
showLightbox($img);
|
// showLightbox($img);
|
||||||
var title = $(this).hasAttr("title") ? $(this).attr("title") : '';
|
var title = $(this).hasAttr("title") ? $(this).attr("title") : '';
|
||||||
var $c = $('#lightboxContent');
|
// var $c = $('#lightboxContent');
|
||||||
var $cont = $('<div />').addClass("lightboxContainer").appendTo($c);
|
var $cont = $('<div />').addClass("lightboxContainer").appendTo($c);
|
||||||
|
$img.appendTo($cont);
|
||||||
if (title != '') {
|
if (title != '') {
|
||||||
var $caption = $('<div />').addClass("lightboxCaption").text(title).appendTo($cont);
|
var $caption = $('<div />').addClass("lightboxCaption").text(title).appendTo($cont);
|
||||||
}
|
}
|
||||||
|
@ -76,7 +77,7 @@ $('.thumbsDetails').live("click", function(e) {
|
||||||
if (hasPrev) {
|
if (hasPrev) {
|
||||||
var $prev = $('<div />').addClass("lightboxPrev").text("prev").data("image", prevImage).appendTo($cont);
|
var $prev = $('<div />').addClass("lightboxPrev").text("prev").data("image", prevImage).appendTo($cont);
|
||||||
}
|
}
|
||||||
|
showLightbox($cont);
|
||||||
});
|
});
|
||||||
|
|
||||||
function hideLightbox() {
|
function hideLightbox() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user