Only block clicks that would select the same color twice (Closes #449)

master
Alexander Surma 2015-06-24 14:01:55 +01:00 committed by Addy Osmani
parent 705448b583
commit b2f722d22a
1 changed files with 1 additions and 1 deletions

View File

@ -261,7 +261,7 @@ function init() {
var g = parentWrapper(parentWrapper(ev.target));
var selectedColor = g.getAttribute('data-color');
// Ignore clicks on already selected fields
if ((g.getAttribute('class') || '').indexOf('selected') !== -1) {
if ((g.getAttribute('class') || '').indexOf('selected--1') !== -1 && this.numSelected === 1) {
return;
}