Save scroll before applying word edit so it doesn't take you to the top after editing.
This commit is contained in:
parent
d623009b63
commit
ca97409b44
|
@ -159,6 +159,8 @@ function EditWord(indexString) {
|
|||
}
|
||||
|
||||
function UpdateWord(wordIndex, word, pronunciation, partOfSpeech, simpleDefinition, longDefinition) {
|
||||
SaveScroll();
|
||||
|
||||
currentDictionary.words[wordIndex].name = word;
|
||||
currentDictionary.words[wordIndex].pronunciation = pronunciation;
|
||||
currentDictionary.words[wordIndex].partOfSpeech = ((partOfSpeech.length > 0) ? partOfSpeech : " ");
|
||||
|
|
Loading…
Reference in New Issue