This commit is contained in:
Sanj 2011-10-06 16:42:20 +05:30
parent bfcb370a29
commit 267bc56c70
3 changed files with 13 additions and 1 deletions

View File

@ -29,6 +29,13 @@ $('#listLeft ul li a').live("click", function() {
});
$('.thumbsDetails').live("click", function(e) {
// alert($(this).attr("data-bigimage"));
var bigImge = $(this).attr("data-bigimage");
var $img = $('<img />').attr("src", bigImage);
$('#lightboxContent').empty().append($img);
});
$('.toggleNext').live("click", function(e) {
e.preventDefault();
var $next = $(this).next();

View File

@ -22,7 +22,7 @@
<div class="thumbsGallery">
{% for img in images %}
{% thumbnail img.image "100x100" crop="center" as im %}
<img class="itfInfoImg" src="{{ im.url }}" class="thumbsDetails" />
<img src="{{ im.url }}" class="thumbsDetails" data-bigimage="/static/{{ img.url }}"/>
{% endthumbnail %}
{% endfor %}
</div>

View File

@ -15,6 +15,11 @@
{% block content %}
<div id="lightBox">
<div id="lightBoxContent">
</div>
</div>
<div id="centerInner">
<div id="woodPng">
</div>