diff --git a/js/Grid/Color.js b/js/Grid/Color.js index 17a3ee7..e113bae 100644 --- a/js/Grid/Color.js +++ b/js/Grid/Color.js @@ -10,7 +10,7 @@ return { function colorize(row, column, color) { var grid = Grid.get(); grid.data[row][column] = color || Toolbox.color(); - Grid.cell(row, column).className = grid.data[row][column]; + Grid.cell(row, column).className = 'color' + grid.data[row][column]; grid.missing.remove(row, column); } diff --git a/js/Toolbox.js b/js/Toolbox.js index 086cda7..e24922a 100644 --- a/js/Toolbox.js +++ b/js/Toolbox.js @@ -32,5 +32,5 @@ function tool() { } function color() { - return 'color' + colors.selectedIndex; + return colors.selectedIndex; }