diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-08-26 18:10:28 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-08-26 18:10:28 +0200 |
commit | 4d27a90337e30ce85be9e42c2e7aaed2952d0297 (patch) | |
tree | e4a488e125f9d3f48598d047763f4a04fefdd4e5 /ishtar_common/static/js | |
parent | 95eef3d20cb801501ae61ba8a3ab148f96f01e59 (diff) | |
download | Ishtar-4d27a90337e30ce85be9e42c2e7aaed2952d0297.tar.bz2 Ishtar-4d27a90337e30ce85be9e42c2e7aaed2952d0297.zip |
Imports: loading indicator
Diffstat (limited to 'ishtar_common/static/js')
-rw-r--r-- | ishtar_common/static/js/ishtar.js | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/ishtar_common/static/js/ishtar.js b/ishtar_common/static/js/ishtar.js index f469fc546..4d82cb238 100644 --- a/ishtar_common/static/js/ishtar.js +++ b/ishtar_common/static/js/ishtar.js @@ -108,6 +108,28 @@ $(document).on("click", '#progress-content', function(){ $('#progress').hide(); }); +function long_wait(){ + $('#progress').addClass('long'); + $('#progress').show(); + $('.progress-1').show('slow'); + setTimeout(function(){ + $('.progress-1').hide('slow'); + $('.progress-2').show('slow'); + }, 60000); + setTimeout(function(){ + $('.progress-2').hide('slow'); + $('.progress-3').show('slow'); + }, 120000); + setTimeout(function(){ + $('.progress-3').hide('slow'); + $('.progress-4').show('slow'); + }, 180000); + setTimeout(function(){ + $('.progress-4').hide('slow'); + long_wait(); + }, 240000); +} + var last_window; function load_window(url, speed, on_success){ |