test basic loading on projects page

This commit is contained in:
Sanj 2011-10-09 16:49:52 +05:30
parent bd59955f45
commit c747dcf0ea
3 changed files with 3 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 847 B

View File

@ -10,6 +10,7 @@ $(function(){
$('.selected').removeClass("selected");
$this.addClass("selected");
var project_id = $this.attr("data-id");
doProjectLoading();
$.getJSON("project_json", {'id': project_id}, function(data) {
$('#projectTitle').next().text(data.title);
$('#projectSizeProgram').next().html(nl2br(data.size_program));
@ -41,7 +42,7 @@ function getA(image) {
function activateSlides() {
$('#slidesDiv').slides({
preload: true,
preloadImage: 'img/loading.gif',
preloadImage: '/static/images/loading.gif',
pagination: false, //SANJ NOT WORKING
play: 5000,
pause: 4000,

View File

@ -78,7 +78,7 @@
{% load thumbnail %}
{% for p in projects %}
{% thumbnail p.thumb_image "100x100" crop="center" as im %}
<li><img src="{{ im.url }}" data-id="{{ p.id }}" width="100" height="100" class="projectThumb" /></li>
<li><img src="{{ im.url }}" data-id="{{ p.id }}" width="100" height="100" alt="{{ p.title }}" class="projectThumb" /></li>
{% endthumbnail %}
{% endfor %}
</ul>