mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-29 06:25:18 -04:00
Adds animated loading gif.
This commit is contained in:
parent
84f543aca5
commit
1b0c9d81ac
3 changed files with 3 additions and 3 deletions
BIN
src/_h5ai/images/loading.gif
Normal file
BIN
src/_h5ai/images/loading.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 847 B |
|
@ -48,9 +48,9 @@
|
||||||
|
|
||||||
return settings.h5aiAbsHref + "php/api.php";
|
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) {
|
icon = function (id, big) {
|
||||||
|
|
||||||
|
|
|
@ -98,7 +98,7 @@
|
||||||
.find("a").click(function () {
|
.find("a").click(function () {
|
||||||
|
|
||||||
$('#download').addClass('zipping');
|
$('#download').addClass('zipping');
|
||||||
$('#download img').attr('src', H5AI.core.image("loading"));
|
$('#download img').attr('src', H5AI.core.image("loading.gif", true));
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: H5AI.core.api(),
|
url: H5AI.core.api(),
|
||||||
data: {
|
data: {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue