Don't auto-focus if word form isn't unlocked (it's annoying on mobile)
This commit is contained in:
parent
36150e4c76
commit
bdf9327fa3
|
@ -137,8 +137,10 @@ function UpdateWord(wordIndex, word, pronunciation, partOfSpeech, simpleDefiniti
|
||||||
|
|
||||||
window.scroll(savedScroll.x, savedScroll.y);
|
window.scroll(savedScroll.x, savedScroll.y);
|
||||||
|
|
||||||
|
if (!wordFormIsLocked()) {
|
||||||
FocusAfterAddingNewWord();
|
FocusAfterAddingNewWord();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function DeleteWord(index) {
|
function DeleteWord(index) {
|
||||||
if (document.getElementById("editIndex").value != "")
|
if (document.getElementById("editIndex").value != "")
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue