Stop storing the full class names in color grid

This commit is contained in:
Tissevert 2022-08-04 22:32:43 +02:00
parent 43900cfb64
commit 3a635cb264
2 changed files with 2 additions and 2 deletions

View file

@ -10,7 +10,7 @@ return {
function colorize(row, column, color) { function colorize(row, column, color) {
var grid = Grid.get(); var grid = Grid.get();
grid.data[row][column] = color || Toolbox.color(); 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); grid.missing.remove(row, column);
} }

View file

@ -32,5 +32,5 @@ function tool() {
} }
function color() { function color() {
return 'color' + colors.selectedIndex; return colors.selectedIndex;
} }