diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-08-16 18:04:41 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-08-17 16:43:21 +0100 |
commit | 1d9e10e980e480196ba1a5f1a3bc450a06b78dde (patch) | |
tree | b739300f295275bd2b586847373e7a87378cc894 /web/js | |
parent | d034f3c1447ea91cb4333365ce123d58deb2de0d (diff) |
Fix replaced sidebar losing hover behaviour.
If the list was replaced by JavaScript, the event handlers were being
dropped. Switch the handlers to the parent that remains present.
Diffstat (limited to 'web/js')
-rw-r--r-- | web/js/map-OpenLayers.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/js/map-OpenLayers.js b/web/js/map-OpenLayers.js index 53535b146..6a0d938fc 100644 --- a/web/js/map-OpenLayers.js +++ b/web/js/map-OpenLayers.js @@ -674,7 +674,7 @@ var fixmystreet = fixmystreet || {}; (function() { var timeout; - $('.item-list--reports').on('mouseenter', '.item-list--reports__item', function(){ + $('#js-reports-list').on('mouseenter', '.item-list--reports__item', function(){ var href = $('a', this).attr('href'); var id = parseInt(href.replace(/^.*[\/]([0-9]+)$/, '$1'),10); clearTimeout(timeout); |