aboutsummaryrefslogtreecommitdiffstats
path: root/web/js
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2016-07-11 09:38:16 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2016-07-11 15:13:12 +0100
commit01a76c77365883998cbad0fa6d9ba7abced14266 (patch)
tree61ccecb0743fa26d93f6a7ac774aefb46a3b37a0 /web/js
parent84ef0dc84db4aa08477de291f7a70b44202fe299 (diff)
Only match the actual ID, not same-ending others.
Diffstat (limited to 'web/js')
-rw-r--r--web/js/map-OpenLayers.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/js/map-OpenLayers.js b/web/js/map-OpenLayers.js
index 25e63e93a..afa0d32d5 100644
--- a/web/js/map-OpenLayers.js
+++ b/web/js/map-OpenLayers.js
@@ -136,7 +136,7 @@ var fixmystreet = fixmystreet || {};
function sidebar_highlight(problem_id) {
if (typeof problem_id !== 'undefined') {
- var $a = $('.item-list--reports a[href$="' + problem_id + '"]');
+ var $a = $('.item-list--reports a[href$="/' + problem_id + '"]');
$a.parent().addClass('hovered');
} else {
$('.item-list--reports .hovered').removeClass('hovered');
@@ -144,7 +144,7 @@ var fixmystreet = fixmystreet || {};
}
function marker_click(problem_id) {
- var $a = $('.item-list--reports a[href$="' + problem_id + '"]');
+ var $a = $('.item-list--reports a[href$="/' + problem_id + '"]');
$a[0] && $a[0].click();
}