|
|
@ -365,9 +365,10 @@ if ($slide_id != 'all') { |
|
|
|
if(document.getElementById('image').complete){ |
|
|
|
if(document.getElementById('image').complete){ |
|
|
|
document.getElementById('image').style.background='none';//the first load doesn't load the browser cache |
|
|
|
document.getElementById('image').style.background='none';//the first load doesn't load the browser cache |
|
|
|
} |
|
|
|
} |
|
|
|
else if(document.getElementById('image').height<initial_height){ |
|
|
|
//TODO:we need load this before the real image has been loaded in canvas |
|
|
|
document.getElementById('image').style.background='none'; |
|
|
|
//else if(document.getElementById('image').height<initial_height){ |
|
|
|
} |
|
|
|
// document.getElementById('image').style.background='none'; |
|
|
|
|
|
|
|
//} |
|
|
|
else{ |
|
|
|
else{ |
|
|
|
document.getElementById('image').style.background='url(../img/loadingAnimation.gif) center no-repeat'; |
|
|
|
document.getElementById('image').style.background='url(../img/loadingAnimation.gif) center no-repeat'; |
|
|
|
} |
|
|
|
} |
|
|
|