test basic loading on projects page
This commit is contained in:
parent
bd59955f45
commit
c747dcf0ea
BIN
urbstudio/static/images/loading.gif
Normal file
BIN
urbstudio/static/images/loading.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 847 B |
|
@ -10,6 +10,7 @@ $(function(){
|
||||||
$('.selected').removeClass("selected");
|
$('.selected').removeClass("selected");
|
||||||
$this.addClass("selected");
|
$this.addClass("selected");
|
||||||
var project_id = $this.attr("data-id");
|
var project_id = $this.attr("data-id");
|
||||||
|
doProjectLoading();
|
||||||
$.getJSON("project_json", {'id': project_id}, function(data) {
|
$.getJSON("project_json", {'id': project_id}, function(data) {
|
||||||
$('#projectTitle').next().text(data.title);
|
$('#projectTitle').next().text(data.title);
|
||||||
$('#projectSizeProgram').next().html(nl2br(data.size_program));
|
$('#projectSizeProgram').next().html(nl2br(data.size_program));
|
||||||
|
@ -41,7 +42,7 @@ function getA(image) {
|
||||||
function activateSlides() {
|
function activateSlides() {
|
||||||
$('#slidesDiv').slides({
|
$('#slidesDiv').slides({
|
||||||
preload: true,
|
preload: true,
|
||||||
preloadImage: 'img/loading.gif',
|
preloadImage: '/static/images/loading.gif',
|
||||||
pagination: false, //SANJ NOT WORKING
|
pagination: false, //SANJ NOT WORKING
|
||||||
play: 5000,
|
play: 5000,
|
||||||
pause: 4000,
|
pause: 4000,
|
||||||
|
|
|
@ -78,7 +78,7 @@
|
||||||
{% load thumbnail %}
|
{% load thumbnail %}
|
||||||
{% for p in projects %}
|
{% for p in projects %}
|
||||||
{% thumbnail p.thumb_image "100x100" crop="center" as im %}
|
{% 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 %}
|
{% endthumbnail %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user