This commit is contained in:
Sanj 2011-10-05 21:05:19 +05:30
parent 9a2b4c3259
commit 39565b61c6
3 changed files with 3 additions and 2 deletions

View File

@ -82,7 +82,7 @@ class ItfModel(models.Model):
imgfield = None imgfield = None
if imgfield is not None: if imgfield is not None:
try: try:
thumb = get_thumbnail(imgfield, "150x142", crop="center").url thumb = get_thumbnail(imgfield, "142x150", crop="center").url
except: except:
thumb = '' thumb = ''
else: else:

View File

@ -14,7 +14,7 @@ $('#listLeft ul li a').live("click", function() {
'tab': tab, 'tab': tab,
'object_id': objId 'object_id': objId
}, function(data) { }, function(data) {
$('#imageInside').attr("src", data.main_image.thumb); $('#imageInside').css({'backgroundImage': data.main_image.thumb});
$('#textRight').text(data.title).formatTitle(); $('#textRight').text(data.title).formatTitle();
var searchTerm = $('.searchListField').val(); var searchTerm = $('.searchListField').val();
var html = data.html; var html = data.html;

View File

@ -116,6 +116,7 @@
<div id="imageLeft"> <div id="imageLeft">
<div id="imageInside"> <div id="imageInside">
</div> </div>
</div> </div>