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