aboutsummaryrefslogtreecommitdiffstats
path: root/web/js
diff options
context:
space:
mode:
authorDave Whiteland <dave@mysociety.org>2013-02-05 13:44:02 +0000
committerDave Whiteland <dave@mysociety.org>2013-02-05 13:44:02 +0000
commit7308f6582e239d8e83ac6399df1474734c7eab4a (patch)
tree532e6029c5fc13e1e373a52a43bb7ba25835c637 /web/js
parent35053354390bf005c7693ee34cd3c201586cb1a6 (diff)
use white (geocode) loading spinner on white background
Diffstat (limited to 'web/js')
-rw-r--r--web/js/fixmystreet.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/web/js/fixmystreet.js b/web/js/fixmystreet.js
index e25c2a571..bfa4e90e9 100644
--- a/web/js/fixmystreet.js
+++ b/web/js/fixmystreet.js
@@ -142,7 +142,8 @@ $(function(){
if($('.mobile').length){
$link.append(' <img src="/cobrands/fixmystreet/images/spinner-black.gif" alt="" align="bottom">');
}else{
- $link.append(' <img src="/cobrands/fixmystreet/images/spinner-yellow.gif" alt="" align="bottom">');
+ var spincolor = $('<span>').css("color","white").css("color") === $('#front-main').css("background-color")? 'white' : 'yellow';
+ $link.append(' <img src="/cobrands/fixmystreet/images/spinner-' + spincolor + '.gif" alt="" align="bottom">');
}
geo_position_js.getCurrentPosition(function(pos) {
$link.find('img').remove();