aboutsummaryrefslogtreecommitdiffstats
path: root/web/js
diff options
context:
space:
mode:
authorZarino Zappia <mail@zarino.co.uk>2016-06-29 14:42:06 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2016-07-11 15:13:12 +0100
commitbdaf17a566b235865ad004e427c6f2230df39f24 (patch)
tree8a2ec5133072ec32e51ee187b8a38d439e0e449f /web/js
parentec68f429cc3a5e272456754b631002cc8f58856a (diff)
Simplify "rap-notes" visibility toggling
On mobile, the notes in `#report-a-problem-sidebar` are hidden by default, and can be toggled using the `.rap-notes-trigger`.
Diffstat (limited to 'web/js')
-rw-r--r--web/js/map-OpenLayers.js5
-rw-r--r--web/js/map-google.js5
2 files changed, 0 insertions, 10 deletions
diff --git a/web/js/map-OpenLayers.js b/web/js/map-OpenLayers.js
index afa0d32d5..345ebeced 100644
--- a/web/js/map-OpenLayers.js
+++ b/web/js/map-OpenLayers.js
@@ -423,11 +423,6 @@ var fixmystreet = fixmystreet || {};
}
$(window).hashchange(function(){
- if (location.hash == '#report' && $('.rap-notes').is(':visible')) {
- $('.rap-notes-close').click();
- return;
- }
-
if (location.hash && location.hash != '#') {
return;
}
diff --git a/web/js/map-google.js b/web/js/map-google.js
index d1bde98b6..a00d52ba1 100644
--- a/web/js/map-google.js
+++ b/web/js/map-google.js
@@ -149,11 +149,6 @@ fixmystreet.maps = {};
}
$(window).hashchange(function(){
- if (location.hash == '#report' && $('.rap-notes').is(':visible')) {
- $('.rap-notes-close').click();
- return;
- }
-
if (location.hash && location.hash != '#') {
return;
}