Fixed focus after word update.

This commit is contained in:
Robbie Antenesse 2016-03-11 08:14:13 -07:00
parent 06f5fe58c4
commit edadb37a6b
1 changed files with 3 additions and 1 deletions

View File

@ -132,10 +132,12 @@ function UpdateWord(wordIndex, word, pronunciation, partOfSpeech, simpleDefiniti
currentDictionary.words[wordIndex].partOfSpeech = partOfSpeech;
currentDictionary.words[wordIndex].simpleDefinition = simpleDefinition;
currentDictionary.words[wordIndex].longDefinition = longDefinition;
SaveAndUpdateDictionary();
window.scroll(savedScroll.x, savedScroll.y);
FocusAfterAddingNewWord();
}
function DeleteWord(index) {