From 6fce1d3c3d9c0ca6d921598cc7cc559422a77c0b Mon Sep 17 00:00:00 2001 From: Sanj Date: Wed, 14 Dec 2011 02:45:40 +0530 Subject: [PATCH] img widths --- itf/static/js/insidepage.js | 4 ++-- itf/templates/modules/festival/meeting.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/itf/static/js/insidepage.js b/itf/static/js/insidepage.js index 8665d22..61cad51 100755 --- a/itf/static/js/insidepage.js +++ b/itf/static/js/insidepage.js @@ -68,8 +68,8 @@ $('.thumbsDetails').live("click", function(e) { var bigImage = $(this).attr("data-bigimage"); var $img = $('').attr("src", bigImage).addClass("lightboxImg"); $img.appendTo($cont); - var imgWidth = $img.width(); - var imgHeight = $img.height(); + var imgWidth = parseInt($img.attr("data-width")); + var imgHeight = parseInt($img.attr("data-height")); var lightboxWidth = imgWidth + 40; var lightboxHeight = imgHeight + 60; $('#lightboxPanel').width(lightboxWidth); diff --git a/itf/templates/modules/festival/meeting.html b/itf/templates/modules/festival/meeting.html index f4f83b2..10f9e21 100755 --- a/itf/templates/modules/festival/meeting.html +++ b/itf/templates/modules/festival/meeting.html @@ -111,7 +111,7 @@ {% for i in imagegallery %} {% thumbnail i.file "600x500" crop="center" as big %} {% thumbnail i.file "164x114" crop="center" as thumb %} - +