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
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:

View File

@ -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;

View File

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