# HG changeset patch # User Atul Varma # Date 1268259102 28800 # Node ID 9758e65141dfb8672f26c1d8b993206884c66634 # Parent 5a26f23d0d6080d103cc9c7315ee3086ed23a7bd Added throbber to dashboard reports. diff -r 5a26f23d0d60 -r 9758e65141df css/dashboard.css --- 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; +} diff -r 5a26f23d0d60 -r 9758e65141df js/dashboard.js --- 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"); }); }