aboutsummaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
Diffstat (limited to 'web')
-rw-r--r--web/cobrands/fixmystreet/fixmystreet.js10
-rw-r--r--web/js/map-OpenLayers.js4
2 files changed, 10 insertions, 4 deletions
diff --git a/web/cobrands/fixmystreet/fixmystreet.js b/web/cobrands/fixmystreet/fixmystreet.js
index 173c247c3..324915e16 100644
--- a/web/cobrands/fixmystreet/fixmystreet.js
+++ b/web/cobrands/fixmystreet/fixmystreet.js
@@ -119,7 +119,10 @@ $(function(){
top: 0, left: 0, right: 0, bottom: 0,
width: '100%', height: map_height,
margin: 0
- }).data('size', 'full');
+ });
+ if (typeof fixmystreet !== 'undefined') {
+ fixmystreet.state_map = 'full';
+ }
}
//heightfix the desktop .content div
@@ -527,7 +530,10 @@ $.fn.drawer = function(id, ajax) {
/*
* Fancybox fullscreen images
*/
- $('.fancy-image').fancybox();
+ $('a[rel=fancy]').fancybox({
+ 'overlayColor': '#000000'
+ });
+
});
/*
diff --git a/web/js/map-OpenLayers.js b/web/js/map-OpenLayers.js
index 2978bf7fe..6ffcb5c1d 100644
--- a/web/js/map-OpenLayers.js
+++ b/web/js/map-OpenLayers.js
@@ -227,7 +227,7 @@ $(function(){
fixmystreet.map.setCenter(centre, fixmystreet.zoom || 3);
}
- if ($('#map_box').data('size')=='full') {
+ if (fixmystreet.state_map && fixmystreet.state_map == 'full') {
// TODO Work better with window resizing, this is pretty 'set up' only at present
var q = $(window).width() / 4;
// Need to try and fake the 'centre' being 75% from the left
@@ -445,7 +445,7 @@ OpenLayers.Control.Click = OpenLayers.Class(OpenLayers.Control, {
document.getElementById('side-form').style.display = 'block';
}
$('#side').hide();
- if (typeof heightFix !== undefined) {
+ if (typeof heightFix !== 'undefined') {
heightFix('#report-a-problem-sidebar', '.content', 26);
}