Adds animated loading gif.

This commit is contained in:
Lars Jung 2012-02-21 21:29:47 +01:00
parent 84f543aca5
commit 1b0c9d81ac
3 changed files with 3 additions and 3 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 847 B

View File

@ -48,9 +48,9 @@
return settings.h5aiAbsHref + "php/api.php";
},
image = function (id) {
image = function (id, noPngExt) {
return settings.h5aiAbsHref + "images/" + id + ".png";
return settings.h5aiAbsHref + "images/" + id + (noPngExt ? "" : ".png");
},
icon = function (id, big) {

View File

@ -98,7 +98,7 @@
.find("a").click(function () {
$('#download').addClass('zipping');
$('#download img').attr('src', H5AI.core.image("loading"));
$('#download img').attr('src', H5AI.core.image("loading.gif", true));
$.ajax({
url: H5AI.core.api(),
data: {