Difference between revisions of "MediaWiki:EUProjects Festivals"
Line 360: | Line 360: | ||
.on('click', displayRole) | .on('click', displayRole) | ||
− | $('.kultura-legend').on('click','li',function(e) { $('.graph').toggleClass(e.target.className);}) | + | $('.kultura-legend').on('click','li',function(e) { |
+ | $('.graph').toggleClass(e.target.className); | ||
+ | $(e.target).toggleClass('hidden'); | ||
+ | }); | ||
}); | }); | ||
</script> | </script> | ||
}} | }} |