Fixed focus after word update.
This commit is contained in:
parent
06f5fe58c4
commit
edadb37a6b
|
@ -132,10 +132,12 @@ function UpdateWord(wordIndex, word, pronunciation, partOfSpeech, simpleDefiniti
|
||||||
currentDictionary.words[wordIndex].partOfSpeech = partOfSpeech;
|
currentDictionary.words[wordIndex].partOfSpeech = partOfSpeech;
|
||||||
currentDictionary.words[wordIndex].simpleDefinition = simpleDefinition;
|
currentDictionary.words[wordIndex].simpleDefinition = simpleDefinition;
|
||||||
currentDictionary.words[wordIndex].longDefinition = longDefinition;
|
currentDictionary.words[wordIndex].longDefinition = longDefinition;
|
||||||
|
|
||||||
SaveAndUpdateDictionary();
|
SaveAndUpdateDictionary();
|
||||||
|
|
||||||
window.scroll(savedScroll.x, savedScroll.y);
|
window.scroll(savedScroll.x, savedScroll.y);
|
||||||
|
|
||||||
|
FocusAfterAddingNewWord();
|
||||||
}
|
}
|
||||||
|
|
||||||
function DeleteWord(index) {
|
function DeleteWord(index) {
|
||||||
|
|
Loading…
Reference in New Issue