diff --git a/img/jersey_player_panel.png b/img/jersey_player_panel.png index b3fed4f..78c046c 100644 Binary files a/img/jersey_player_panel.png and b/img/jersey_player_panel.png differ diff --git a/velonimo.js b/velonimo.js index e5b252d..59a08b7 100644 --- a/velonimo.js +++ b/velonimo.js @@ -707,11 +707,12 @@ function (dojo, declare) { moveJerseyToCurrentWinner: function (previousJerseyWearerId) { const wearJersey = (playerId) => { dojo.addClass(`player-table-${playerId}`, DOM_CLASS_PLAYER_IS_WEARING_JERSEY); - dojo.place(`
`, `player_board_${playerId}`); + dojo.place(`
`, `player_board_${playerId}`); + this.addTooltip(`player-panel-${playerId}-jersey`, _('Current leader of the game'), ''); }; const removeJersey = (playerId) => { dojo.removeClass(`player-table-${playerId}`, DOM_CLASS_PLAYER_IS_WEARING_JERSEY); - dojo.query(`#player_board_${playerId} .${DOM_CLASS_JERSEY_IN_PLAYER_PANEL}`).forEach(this.fadeOutAndDestroy); + this.fadeOutAndDestroy(`player-panel-${playerId}-jersey`); }; Object.entries(this.players).forEach((entry) => {