From 18bccce8e5878187d5974c4f107a7cec50c263ea Mon Sep 17 00:00:00 2001 From: Sanj Date: Mon, 7 Nov 2011 16:35:58 +0530 Subject: [PATCH] lightbox stuff --- itf/static/js/insidepage.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/itf/static/js/insidepage.js b/itf/static/js/insidepage.js index 35fbe9e..4f3bb38 100755 --- a/itf/static/js/insidepage.js +++ b/itf/static/js/insidepage.js @@ -63,10 +63,11 @@ $('.thumbsDetails').live("click", function(e) { var bigImage = $(this).attr("data-bigimage"); var $img = $('').attr("src", bigImage); - showLightbox($img); +// showLightbox($img); var title = $(this).hasAttr("title") ? $(this).attr("title") : ''; - var $c = $('#lightboxContent'); +// var $c = $('#lightboxContent'); var $cont = $('
').addClass("lightboxContainer").appendTo($c); + $img.appendTo($cont); if (title != '') { var $caption = $('
').addClass("lightboxCaption").text(title).appendTo($cont); } @@ -76,7 +77,7 @@ $('.thumbsDetails').live("click", function(e) { if (hasPrev) { var $prev = $('
').addClass("lightboxPrev").text("prev").data("image", prevImage).appendTo($cont); } - + showLightbox($cont); }); function hideLightbox() {