typo
This commit is contained in:
parent
6fe5d626d0
commit
63e90f82e8
|
@ -37,11 +37,13 @@ $('#listLeft ul li a').live("click", function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
$('.lightboxNext').live("click", function(e) {
|
$('.lightboxNext').live("click", function(e) {
|
||||||
$(this).data("image").click();
|
var $i = $(this).data("image");
|
||||||
|
$i.click();
|
||||||
});
|
});
|
||||||
|
|
||||||
$('.lightboxPrev').live("click", function(e) {
|
$('.lightboxPrev').live("click", function(e) {
|
||||||
$(this).data("image").click();
|
var $i = $(this).data("image");
|
||||||
|
$i.click();
|
||||||
});
|
});
|
||||||
|
|
||||||
$('.thumbsDetails').live("click", function(e) {
|
$('.thumbsDetails').live("click", function(e) {
|
||||||
|
@ -52,11 +54,11 @@ $('.thumbsDetails').live("click", function(e) {
|
||||||
|
|
||||||
if (thisIndex < (totalImages - 1)) {
|
if (thisIndex < (totalImages - 1)) {
|
||||||
var hasNext = true;
|
var hasNext = true;
|
||||||
var nextImage = $(this).parent().find(".thumbsDetail").eq(thisIndex + 1);
|
var nextImage = $(this).parent().find(".thumbsDetails").eq(thisIndex + 1);
|
||||||
}
|
}
|
||||||
if (thisIndex > 0 && totalImages > 1) {
|
if (thisIndex > 0 && totalImages > 1) {
|
||||||
var hasPrev = true;
|
var hasPrev = true;
|
||||||
var prevImage = $(this).parent().find(".thumbsDetail").eq(thisIndex - 1);
|
var prevImage = $(this).parent().find(".thumbsDetails").eq(thisIndex - 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
var bigImage = $(this).attr("data-bigimage");
|
var bigImage = $(this).attr("data-bigimage");
|
||||||
|
@ -68,10 +70,10 @@ $('.thumbsDetails').live("click", function(e) {
|
||||||
var $caption = $('<div />').addClass("lightboxCaption").text(title).appendTo($c);
|
var $caption = $('<div />').addClass("lightboxCaption").text(title).appendTo($c);
|
||||||
}
|
}
|
||||||
if (hasNext) {
|
if (hasNext) {
|
||||||
var $next = $('<div />').addClass("lightboxNext").text("NEXT").data("image", nextImage).appendTo($c);
|
var $next = $('<div />').addClass("lightboxNext").text("next").data("image", nextImage).appendTo($c);
|
||||||
}
|
}
|
||||||
if (hasPrev) {
|
if (hasPrev) {
|
||||||
var $prev = $('<div />').addClass("lightboxPrev").text("PREV").data("image", prevImage).appendTo($c);
|
var $prev = $('<div />').addClass("lightboxPrev").text("prev").data("image", prevImage).appendTo($c);
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user