From 63e90f82e89f4e2531fad6e93a0eb029465f9de3 Mon Sep 17 00:00:00 2001 From: Sanj Date: Mon, 7 Nov 2011 15:56:40 +0530 Subject: [PATCH] typo --- itf/static/js/insidepage.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/itf/static/js/insidepage.js b/itf/static/js/insidepage.js index 5610487..3cac2b2 100755 --- a/itf/static/js/insidepage.js +++ b/itf/static/js/insidepage.js @@ -37,11 +37,13 @@ $('#listLeft ul li a').live("click", function() { }); $('.lightboxNext').live("click", function(e) { - $(this).data("image").click(); + var $i = $(this).data("image"); + $i.click(); }); $('.lightboxPrev').live("click", function(e) { - $(this).data("image").click(); + var $i = $(this).data("image"); + $i.click(); }); $('.thumbsDetails').live("click", function(e) { @@ -52,11 +54,11 @@ $('.thumbsDetails').live("click", function(e) { if (thisIndex < (totalImages - 1)) { 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) { 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"); @@ -68,10 +70,10 @@ $('.thumbsDetails').live("click", function(e) { var $caption = $('
').addClass("lightboxCaption").text(title).appendTo($c); } if (hasNext) { - var $next = $('
').addClass("lightboxNext").text("NEXT").data("image", nextImage).appendTo($c); + var $next = $('
').addClass("lightboxNext").text("next").data("image", nextImage).appendTo($c); } if (hasPrev) { - var $prev = $('
').addClass("lightboxPrev").text("PREV").data("image", prevImage).appendTo($c); + var $prev = $('
').addClass("lightboxPrev").text("prev").data("image", prevImage).appendTo($c); } });