Difference between revisions of "MediaWiki:EUProjects Festivals"

From Culture.si
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', showDetails)
+
.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', showDetails)
+
.on('mouseover', showDetails)
 +
.on('click', openDetail)
  
 
return false;
 
return false;
Line 311: Line 318:
 
return 'circle ' + role;  
 
return 'circle ' + role;  
 
})
 
})
.on('click', showDetails)
+
.on('mouseover', showDetails)
 +
.on('click', openDetail)
  
 
return false;
 
return false;

Revision as of 18:50, 23 July 2014