Skip to content

Commit

Permalink
Merge pull request #3 from Thom-x/master
Browse files Browse the repository at this point in the history
L'image vers le rapport est maintenant un lien
  • Loading branch information
Foudge committed Oct 19, 2014
2 parents d89fdbb + 2782ef1 commit 6274b5f
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions LeekWars_Fast_Garden.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,16 +146,12 @@ function checkFightResult(fight)
var report = $("#report",el)[0];
if(typeof(report) != "undefined")
{
$(report).off('click')
$(report).attr("href",'/report/' + fight.fightId);
}
else
{
report = $('<div><img src="http://static.leekwars.com/image/fight_black.png" alt="image combat" title="Rapport de combat" id="report" onmouseover="this.style.opacity=0.30" onmouseout="this.style.opacity=0.20" style="opacity: 0.20;" ></div>').appendTo(el);
report = $('<div><a id="report" target="_blank" href="/report/' + fight.fightId + '"><img src="http://static.leekwars.com/image/fight_black.png" alt="image combat" title="Rapport de combat" onmouseover="this.style.opacity=0.30" onmouseout="this.style.opacity=0.20" style="opacity: 0.20;" ></a></div>').appendTo(el);
}
$(report).on('click',function(e){
e.stopPropagation();
window.open('/report/' + fight.fightId, '_blank');
});
}
}
});
Expand Down

0 comments on commit 6274b5f

Please # to comment.