aboutsummaryrefslogtreecommitdiffstats
path: root/web/js
diff options
context:
space:
mode:
authorJosh Angell <josh@supercooldesign.co.uk>2012-02-13 17:14:40 +0000
committerJosh Angell <josh@supercooldesign.co.uk>2012-02-13 17:14:40 +0000
commitec39561c09d580b7861d76cee1bb4ad882a6d9d7 (patch)
treed507551f1e0bfe15338ee74690aa803feab74677 /web/js
parent774f98a73fa94bd74156654e9f45463f8a3d7be4 (diff)
Some js/css for the report and around type pages, needs work
Signed-off-by: Josh Angell <josh@supercooldesign.co.uk>
Diffstat (limited to 'web/js')
-rw-r--r--web/js/fixmystreet.js8
-rw-r--r--web/js/map-OpenLayers.js2
2 files changed, 10 insertions, 0 deletions
diff --git a/web/js/fixmystreet.js b/web/js/fixmystreet.js
index c3de39b48..1ebff1f4c 100644
--- a/web/js/fixmystreet.js
+++ b/web/js/fixmystreet.js
@@ -193,5 +193,13 @@ $(function(){
});
}
+ /*
+ * Report a problem page
+ */
+ //desktop
+ if($('#report-a-poblem-sidebar:visible').length > 0){
+ $('.content[role=main]').addClass('report-a-poblem-page');
+ }
+ //hide on mobile
$('.mobile #report-a-poblem-sidebar').hide();
}); \ No newline at end of file
diff --git a/web/js/map-OpenLayers.js b/web/js/map-OpenLayers.js
index fa93c2f4c..14c00efb3 100644
--- a/web/js/map-OpenLayers.js
+++ b/web/js/map-OpenLayers.js
@@ -216,6 +216,7 @@ $(function(){
$('#side-form').hide();
$('#side').show();
$('#sub_map_links').show();
+ $('.content[role=main]').addClass('report-a-poblem-page');
fixmystreet.page = 'around';
});
@@ -371,6 +372,7 @@ OpenLayers.Control.Click = OpenLayers.Class(OpenLayers.Control, {
}
$('#side').hide();
$('#sub_map_links').hide();
+ $('.content[role=main]').addClass('report-a-poblem-page');
fixmystreet.page = 'new';
location.hash = 'report';
}