uncheck radio if clicked twice
This commit is contained in:
parent
959deb5e14
commit
2e5125c298
12
js/sudoku.js
12
js/sudoku.js
@ -310,9 +310,15 @@ function onmouseleave(event) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function insert(radio) {
|
function insert(radio) {
|
||||||
valueToInsert = radio.value
|
if (radio.value && valueToInsert == radio.value) {
|
||||||
grid.style.cursor = valueToInsert ? "copy" : "text"
|
radio.blur()
|
||||||
highlight()
|
insertRadio0.checked = true
|
||||||
|
insert(0)
|
||||||
|
} else {
|
||||||
|
valueToInsert = radio.value
|
||||||
|
grid.style.cursor = valueToInsert ? "copy" : "text"
|
||||||
|
highlight()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function undo() {
|
function undo() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user