Commit 167db834 authored by Tobias Zeumer's avatar Tobias Zeumer

Do same highlighting when clicking markers as when using the menu entries

parent 02930fc1
......@@ -191,8 +191,10 @@ $( document ).ready(function() {
# EVENT LISTENER: Map (SVG)
######################################################################### */
// Listen for clicks on markers
$(".marker").on('touchstart click', function(event) {
show_legend_entry($(this).attr('aria-labelledby'), $(this).attr('aria-describedby'));
$(".marker").on('touchstart click', function(event) {
// Highlight target and show legend
find_and_highlight('.' + $(this).attr('aria-labelledby').toLowerCase().replace('title_', ''));
show_legend_entry($(this).attr('aria-labelledby'), $(this).attr('aria-describedby'));
});
// Listen for clicks on shelves
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment