From 267bc56c70b53e0ea298afc71fdcb2718769c894 Mon Sep 17 00:00:00 2001 From: Sanj Date: Thu, 6 Oct 2011 16:42:20 +0530 Subject: [PATCH] gallery --- itf/static/js/insidepage.js | 7 +++++++ itf/templates/modules/bestpractices/bestpractice.html | 2 +- itf/templates/noel/insidepage.html | 5 +++++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/itf/static/js/insidepage.js b/itf/static/js/insidepage.js index a1232e8..4aa2680 100644 --- a/itf/static/js/insidepage.js +++ b/itf/static/js/insidepage.js @@ -29,6 +29,13 @@ $('#listLeft ul li a').live("click", function() { }); +$('.thumbsDetails').live("click", function(e) { +// alert($(this).attr("data-bigimage")); + var bigImge = $(this).attr("data-bigimage"); + var $img = $('').attr("src", bigImage); + $('#lightboxContent').empty().append($img); +}); + $('.toggleNext').live("click", function(e) { e.preventDefault(); var $next = $(this).next(); diff --git a/itf/templates/modules/bestpractices/bestpractice.html b/itf/templates/modules/bestpractices/bestpractice.html index 4e20b6c..9463c14 100644 --- a/itf/templates/modules/bestpractices/bestpractice.html +++ b/itf/templates/modules/bestpractices/bestpractice.html @@ -22,7 +22,7 @@
{% for img in images %} {% thumbnail img.image "100x100" crop="center" as im %} - + {% endthumbnail %} {% endfor %}
diff --git a/itf/templates/noel/insidepage.html b/itf/templates/noel/insidepage.html index 1efb8ab..588ed84 100644 --- a/itf/templates/noel/insidepage.html +++ b/itf/templates/noel/insidepage.html @@ -15,6 +15,11 @@ {% block content %} +