From 39565b61c6e588a57faf83a0bddbd7e9fff694d9 Mon Sep 17 00:00:00 2001 From: Sanj Date: Wed, 5 Oct 2011 21:05:19 +0530 Subject: [PATCH] js --- itf/app/models.py | 2 +- itf/static/js/insidepage.js | 2 +- itf/templates/noel/insidepage.html | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/itf/app/models.py b/itf/app/models.py index e14d689..97d5abf 100644 --- a/itf/app/models.py +++ b/itf/app/models.py @@ -82,7 +82,7 @@ class ItfModel(models.Model): imgfield = None if imgfield is not None: try: - thumb = get_thumbnail(imgfield, "150x142", crop="center").url + thumb = get_thumbnail(imgfield, "142x150", crop="center").url except: thumb = '' else: diff --git a/itf/static/js/insidepage.js b/itf/static/js/insidepage.js index 21c6c55..3244e38 100644 --- a/itf/static/js/insidepage.js +++ b/itf/static/js/insidepage.js @@ -14,7 +14,7 @@ $('#listLeft ul li a').live("click", function() { 'tab': tab, 'object_id': objId }, function(data) { - $('#imageInside').attr("src", data.main_image.thumb); + $('#imageInside').css({'backgroundImage': data.main_image.thumb}); $('#textRight').text(data.title).formatTitle(); var searchTerm = $('.searchListField').val(); var html = data.html; diff --git a/itf/templates/noel/insidepage.html b/itf/templates/noel/insidepage.html index 6e5792e..1efb8ab 100644 --- a/itf/templates/noel/insidepage.html +++ b/itf/templates/noel/insidepage.html @@ -116,6 +116,7 @@
+