Commit f8bff919 authored by Leo Iannacone's avatar Leo Iannacone

add a loading gif while downloading file

parent 79f518c6
...@@ -440,7 +440,7 @@ function Page_Distrubion(socket) { ...@@ -440,7 +440,7 @@ function Page_Distrubion(socket) {
query_data.file.content = null; query_data.file.content = null;
query_data.file.force = force; query_data.file.force = force;
// get a feedback to user while downloading file // get a feedback to user while downloading file
$('#file .content').html('Downloading file, please wait a while ...'); $('#file .content').html('<div class="loading">Downloading file, please wait a while ... <img src="/images/loading.gif" /></div>');
$('#file').show(); $('#file').show();
debug_socket('emit', _e.file, query_data); debug_socket('emit', _e.file, query_data);
socket.emit(_e.file, query_data); socket.emit(_e.file, query_data);
......
...@@ -189,6 +189,10 @@ footer .info { ...@@ -189,6 +189,10 @@ footer .info {
overflow:hidden; overflow:hidden;
} }
#file .loading img {
float: right;
}
#title a.btn { #title a.btn {
padding: 10px 12px; padding: 10px 12px;
float: right; float: right;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment