don't duplicate hooks based on color

This commit is contained in:
Thibault Duplessis 2013-06-07 12:33:57 +02:00
parent e8576238f4
commit bb7758131d

View file

@ -2076,7 +2076,7 @@ var lichess_sri = Math.random().toString(36).substring(5); // 8 chars
(filter.mode != null && filter.mode != hook.mode) ||
(filter.speed != null && filter.speed != hook.speed) ||
(filter.eloDiff > 0 && (!hook.elo || hook.elo > (myElo + filter.eloDiff) || hook.elo < (myElo - filter.eloDiff)));
var hash = hook.mode + hook.variant + hook.color + hook.clock;
var hash = hook.mode + hook.variant + hook.clock;
if (hide) {
$('#' + hook.id).not('.hiding').addClass('hiding').fadeOut(animation, function() { $(this).remove(); });
hidden++;