diff options
-rw-r--r-- | web/cobrands/fixmystreet/base.scss | 4 | ||||
-rw-r--r-- | web/cobrands/fixmystreet/fixmystreet.js | 16 | ||||
-rw-r--r-- | web/cobrands/fixmystreet/images/sprite.png | bin | 138581 -> 138816 bytes | |||
-rw-r--r-- | web/js/map-OpenLayers.js | 8 |
4 files changed, 18 insertions, 10 deletions
diff --git a/web/cobrands/fixmystreet/base.scss b/web/cobrands/fixmystreet/base.scss index 9ee3e4271..95a5357cb 100644 --- a/web/cobrands/fixmystreet/base.scss +++ b/web/cobrands/fixmystreet/base.scss @@ -1012,6 +1012,10 @@ a:hover.button-left { background-image:url('images/sprite.png'); background-position: right -4070px; } + &.feed { + background-image:url('images/sprite.png'); + background-position: right -3936px; + } &:hover { background-color:#000; text-decoration:none; diff --git a/web/cobrands/fixmystreet/fixmystreet.js b/web/cobrands/fixmystreet/fixmystreet.js index 912ea024b..f68a80e5a 100644 --- a/web/cobrands/fixmystreet/fixmystreet.js +++ b/web/cobrands/fixmystreet/fixmystreet.js @@ -87,14 +87,7 @@ $(function(){ height: $(window).height(), margin: 0 }); - $('.big-green-banner').addClass('mobile-map-banner').removeClass('.big-green-banner'); - $('#sub_map_links').hide(); - $('#map_box').append( - '<p id="mob_sub_map_links">'+ - '<a href="#">Try again?</a>'+ - '<a href="#">OK</a>'+ - '</p>' - ); + $('.big-green-banner').addClass('mobile-map-banner').removeClass('.big-green-banner').text('Place pin on map'); } } else { // Make map full screen on non-mobile sizes. @@ -352,9 +345,12 @@ $(function(){ $('<p id="sub_map_links" />').insertAfter($('#map')); } - //add permalink + //add permalink on desktop, force hide on mobile $('#sub_map_links').append('<a href="#" id="map_permalink">Permalink</a>'); - + if($('.mobile').length){ + $('#map_permalink').hide(); + $('#key-tools a.feed').appendTo('#sub_map_links'); + } //add open/close toggle button on desk $('#sub_map_links').prepend('<span id="map_links_toggle"> </span>'); diff --git a/web/cobrands/fixmystreet/images/sprite.png b/web/cobrands/fixmystreet/images/sprite.png Binary files differindex cd24de1fe..68fcb652f 100644 --- a/web/cobrands/fixmystreet/images/sprite.png +++ b/web/cobrands/fixmystreet/images/sprite.png diff --git a/web/js/map-OpenLayers.js b/web/js/map-OpenLayers.js index f9c2efcaf..22183668d 100644 --- a/web/js/map-OpenLayers.js +++ b/web/js/map-OpenLayers.js @@ -430,6 +430,14 @@ OpenLayers.Control.Click = OpenLayers.Class(OpenLayers.Control, { } fixmystreet.page = 'new'; location.hash = 'report'; + $('#sub_map_links').hide(); + $('#map_box').append( + '<p id="mob_sub_map_links">'+ + '<a href="#">Try again</a>'+ + '<a href="#">OK</a>'+ + '</p>' + ); + $('.mobile-map-banner').text('Right place?'); }, locate_report: function(e) { |