From 3e0bde75d13e1c4432c5287f17a2425ae8e30488 Mon Sep 17 00:00:00 2001 From: Sanj Date: Mon, 7 Nov 2011 16:27:55 +0530 Subject: [PATCH 1/3] lightboxContainer --- itf/static/js/insidepage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/itf/static/js/insidepage.js b/itf/static/js/insidepage.js index 20727fb..35fbe9e 100755 --- a/itf/static/js/insidepage.js +++ b/itf/static/js/insidepage.js @@ -66,7 +66,7 @@ $('.thumbsDetails').live("click", function(e) { showLightbox($img); var title = $(this).hasAttr("title") ? $(this).attr("title") : ''; var $c = $('#lightboxContent'); - var $cont = $('.lightboxContainer').appendTo($c); + var $cont = $('
').addClass("lightboxContainer").appendTo($c); if (title != '') { var $caption = $('
').addClass("lightboxCaption").text(title).appendTo($cont); } From 18bccce8e5878187d5974c4f107a7cec50c263ea Mon Sep 17 00:00:00 2001 From: Sanj Date: Mon, 7 Nov 2011 16:35:58 +0530 Subject: [PATCH 2/3] 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() { From 1e4b5bcaa197af14d17a26c81dbc3af4b616fb1a Mon Sep 17 00:00:00 2001 From: Sanj Date: Mon, 7 Nov 2011 16:36:46 +0530 Subject: [PATCH 3/3] foo --- itf/static/js/insidepage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/itf/static/js/insidepage.js b/itf/static/js/insidepage.js index 4f3bb38..9e7bb5f 100755 --- a/itf/static/js/insidepage.js +++ b/itf/static/js/insidepage.js @@ -66,7 +66,7 @@ $('.thumbsDetails').live("click", function(e) { // showLightbox($img); var title = $(this).hasAttr("title") ? $(this).attr("title") : ''; // var $c = $('#lightboxContent'); - var $cont = $('
').addClass("lightboxContainer").appendTo($c); + var $cont = $('
').addClass("lightboxContainer"); $img.appendTo($cont); if (title != '') { var $caption = $('
').addClass("lightboxCaption").text(title).appendTo($cont);