mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-08-06 21:36:30 +02:00
Adds animated loading gif.
This commit is contained in:
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: {
|
||||||
|
Reference in New Issue
Block a user