js
This commit is contained in:
parent
9a2b4c3259
commit
39565b61c6
|
@ -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:
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -116,6 +116,7 @@
|
|||
|
||||
<div id="imageLeft">
|
||||
<div id="imageInside">
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue
Block a user