From 26780bbb36fb194de25087f288e8a5b4fac1a7cf Mon Sep 17 00:00:00 2001 From: = <=> Date: Wed, 3 Oct 2012 21:10:19 +0100 Subject: [PATCH] Added indeterminate loading progress. --- static/js/com.podnoms.utils.js | 5 +++++ templates/base.html | 13 ++++++++++--- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/static/js/com.podnoms.utils.js b/static/js/com.podnoms.utils.js index c2bc436..d18da91 100644 --- a/static/js/com.podnoms.utils.js +++ b/static/js/com.podnoms.utils.js @@ -99,6 +99,11 @@ com.podnoms.utils = { document.body.appendChild(iframe); } iframe.src = url; + }, + indeterminateProgress:function (bar) { + $(bar).css({ "padding-left": "0%", "padding-right": "90%" }); + $(bar).animate({ paddingLeft: "90%", paddingRight: "0%" }, 1000, "linear", + function () { this.indeterminateProgress(bar); }); } }; diff --git a/templates/base.html b/templates/base.html index 4fa0146..187c64f 100644 --- a/templates/base.html +++ b/templates/base.html @@ -64,8 +64,11 @@
- Transmogrifying..... - +

Loading

+ +
+
+
{% block content %} {% endblock %}
@@ -136,6 +139,10 @@ {% block footerscripts %} {% endblock %} - +