Stop storing the full class names in color grid
This commit is contained in:
parent
43900cfb64
commit
3a635cb264
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -32,5 +32,5 @@ function tool() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function color() {
|
function color() {
|
||||||
return 'color' + colors.selectedIndex;
|
return colors.selectedIndex;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue