aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Angell <josh@supercooldesign.co.uk>2012-03-06 12:01:11 +0000
committerJosh Angell <josh@supercooldesign.co.uk>2012-03-06 12:01:11 +0000
commit118f38e6aa55b2a0b8299c2a83b457748a6ed912 (patch)
tree671f10b7f661ac532ea5e734e7e1517a7c6fedc5
parent7f5cd5357dadd81b25198a623cd4937eb72dfabf (diff)
Add new spinner gifs (fixes #256)
Signed-off-by: Josh Angell <josh@supercooldesign.co.uk>
-rw-r--r--web/cobrands/fixmystreet/fixmystreet.js6
-rw-r--r--web/cobrands/fixmystreet/images/spinner-black.gifbin0 -> 1849 bytes
-rw-r--r--web/cobrands/fixmystreet/images/spinner-yellow.gifbin0 -> 1849 bytes
3 files changed, 5 insertions, 1 deletions
diff --git a/web/cobrands/fixmystreet/fixmystreet.js b/web/cobrands/fixmystreet/fixmystreet.js
index fdcbb9669..16b1b15ef 100644
--- a/web/cobrands/fixmystreet/fixmystreet.js
+++ b/web/cobrands/fixmystreet/fixmystreet.js
@@ -237,7 +237,11 @@ $(function(){
$('#geolocate_link').click(function(e) {
e.preventDefault();
// Spinny thing!
- $(this).append(' <img src="/i/flower.gif" alt="" align="bottom">');
+ if($('.mobile').length){
+ $(this).append(' <img src="/cobrands/fixmystreet/images/spinner-black.gif" alt="" align="bottom">');
+ }else{
+ $(this).append(' <img src="/cobrands/fixmystreet/images/spinner-yellow.gif" alt="" align="bottom">');
+ }
geo_position_js.getCurrentPosition(function(pos) {
$('img', this).remove();
var latitude = pos.coords.latitude;
diff --git a/web/cobrands/fixmystreet/images/spinner-black.gif b/web/cobrands/fixmystreet/images/spinner-black.gif
new file mode 100644
index 000000000..763c98d35
--- /dev/null
+++ b/web/cobrands/fixmystreet/images/spinner-black.gif
Binary files differ
diff --git a/web/cobrands/fixmystreet/images/spinner-yellow.gif b/web/cobrands/fixmystreet/images/spinner-yellow.gif
new file mode 100644
index 000000000..56eed1541
--- /dev/null
+++ b/web/cobrands/fixmystreet/images/spinner-yellow.gif
Binary files differ