mirror of
https://github.com/ENSL/ensl_gathers.git
synced 2025-01-19 08:01:07 +00:00
Prevent links from redirecting
This commit is contained in:
parent
f05dce946a
commit
4d3a058fb0
1 changed files with 5 additions and 1 deletions
|
@ -439,7 +439,10 @@ var ServerVoting = React.createClass({
|
||||||
let votes = self.votesForServer(server);
|
let votes = self.votesForServer(server);
|
||||||
if (self.props.currentGatherer.serverVote === server.id) {
|
if (self.props.currentGatherer.serverVote === server.id) {
|
||||||
return (
|
return (
|
||||||
<a href="#" className="list-group-item list-group-item-success" key={server.id}>
|
<a href="#"
|
||||||
|
className="list-group-item list-group-item-success"
|
||||||
|
onClick={ e => e.preventDefault() }
|
||||||
|
key={server.id}>
|
||||||
<span className="badge">{votes}</span>
|
<span className="badge">{votes}</span>
|
||||||
{server.description || server.dns}
|
{server.description || server.dns}
|
||||||
</a>
|
</a>
|
||||||
|
@ -498,6 +501,7 @@ var MapVoting = React.createClass({
|
||||||
return (
|
return (
|
||||||
<a href="#"
|
<a href="#"
|
||||||
key={map.id}
|
key={map.id}
|
||||||
|
onClick={ e => e.preventDefault() }
|
||||||
className="list-group-item list-group-item-success">
|
className="list-group-item list-group-item-success">
|
||||||
<span className="badge">{votes}</span>
|
<span className="badge">{votes}</span>
|
||||||
{map.name}
|
{map.name}
|
||||||
|
|
Loading…
Reference in a new issue