Difference between revisions of "MediaWiki:EUProjects Festivals"
Line 205: | Line 205: | ||
'oblikovanje, arhitektura in uporabne umetnosti':'oblikovanje, arhitektura in uporabna umetnost', | 'oblikovanje, arhitektura in uporabne umetnosti':'oblikovanje, arhitektura in uporabna umetnost', | ||
}; | }; | ||
+ | |||
+ | var openDetail = function(d) { | ||
+ | if(d.link) { | ||
+ | window.location=d.link; | ||
+ | } | ||
+ | } | ||
var showDetails = function(d) { | var showDetails = function(d) { | ||
Line 261: | Line 267: | ||
.append('span') | .append('span') | ||
.attr('class', function(d){ return 'circle ' + d.f_area.replace(/ /g, '_').replace(/\,/g,'').replace('šč', 'sc'); }) | .attr('class', function(d){ return 'circle ' + d.f_area.replace(/ /g, '_').replace(/\,/g,'').replace('šč', 'sc'); }) | ||
− | .on('click', | + | .on('click', openDetail) |
.on('mouseover', showDetails) | .on('mouseover', showDetails) | ||
Line 285: | Line 291: | ||
.append('span') | .append('span') | ||
.attr('class', function(d){ return 'circle ' + d.org_status }) | .attr('class', function(d){ return 'circle ' + d.org_status }) | ||
− | .on('click', | + | .on('mouseover', showDetails) |
+ | .on('click', openDetail) | ||
return false; | return false; | ||
Line 311: | Line 318: | ||
return 'circle ' + role; | return 'circle ' + role; | ||
}) | }) | ||
− | .on('click', | + | .on('mouseover', showDetails) |
+ | .on('click', openDetail) | ||
return false; | return false; |