This commit is contained in:
parent
b33ef36ab4
commit
bb2bfabf9c
|
@ -111,22 +111,32 @@ class Grid {
|
||||||
let c : string;
|
let c : string;
|
||||||
let checked : boolean = $(t).prop('checked');
|
let checked : boolean = $(t).prop('checked');
|
||||||
|
|
||||||
//if input was not checked, but now is
|
// if input was not checked, but now is
|
||||||
//event occurs after user action
|
// event occurs after user action
|
||||||
if (checked) {
|
if (checked) {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
c = $(t).attr('class').replace('.', '');
|
c = $(t).attr('class').replace('.', '');
|
||||||
seq.set(x, c);
|
seq.set(x, c);
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
seq.grid[x] = undefined;
|
seq.grid[x] = undefined;
|
||||||
delete seq.grid[x];
|
delete seq.grid[x];
|
||||||
seq.unset(x);
|
seq.unset(x);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
this.state(x);
|
this.state(x);
|
||||||
seq.stats();
|
seq.stats();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue