aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2012-03-01 21:22:23 +0000
committerMatthew Somerville <matthew@mysociety.org>2012-03-01 21:22:23 +0000
commitbddd00fa75258c07e94ac9a668725d7f847c4c1f (patch)
tree63ffac6e3779a112aba72d8515dea23b16ce41ab
parentc00e4b4e097d29e1d7c3b4913a75978f5a49599c (diff)
Preload the new report pin, for #239.
-rw-r--r--web/cobrands/fixmystreet/fixmystreet.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/web/cobrands/fixmystreet/fixmystreet.js b/web/cobrands/fixmystreet/fixmystreet.js
index 427e2f9cc..074b69a9e 100644
--- a/web/cobrands/fixmystreet/fixmystreet.js
+++ b/web/cobrands/fixmystreet/fixmystreet.js
@@ -77,6 +77,9 @@ function tabs(elem)
$(function(){
$('html').removeClass('no-js').addClass('js');
+ // Preload the new report pin
+ document.createElement('img').src = '/i/pin-green.png';
+
//add mobile class if small screen
if(!Modernizr.mq('only screen and (min-width:48em)')) {
$('html').addClass('mobile');