changeset 24:9758e65141df

Added throbber to dashboard reports.
author Atul Varma <varmaa@toolness.com>
date Wed, 10 Mar 2010 14:11:42 -0800
parents 5a26f23d0d60
children 6b52ea022121
files css/dashboard.css js/dashboard.js
diffstat 2 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/css/dashboard.css	Wed Mar 10 13:59:47 2010 -0800
+++ b/css/dashboard.css	Wed Mar 10 14:11:42 2010 -0800
@@ -84,3 +84,9 @@
     /* TODO: Actually display this. */
     display: none;
 }
+
+.loading {
+    background-image: url('images/ajax-loader.gif');
+    background-repeat: no-repeat;
+    background-position: top right;
+}
--- a/js/dashboard.js	Wed Mar 10 13:59:47 2010 -0800
+++ b/js/dashboard.js	Wed Mar 10 14:11:42 2010 -0800
@@ -91,10 +91,13 @@
       if (cached)
         showBugs($(selector), cached);
 
+      $(selector).find("h2").addClass("loading");
+
       Bugzilla.search(newTerms,
                       function(response) {
                         cache.set(selector, response.bugs);
                         showBugs($(selector), response.bugs);
+                        $(selector).find("h2").removeClass("loading");
                       });
     }