mirror of
https://github.com/Alamantus/Lexiconga.git
synced 2025-05-23 18:40:52 +02:00
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
1 changed files with 34 additions and 32 deletions
|
@ -159,6 +159,8 @@ function EditWord(indexString) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function UpdateWord(wordIndex, word, pronunciation, partOfSpeech, simpleDefinition, longDefinition) {
|
function UpdateWord(wordIndex, word, pronunciation, partOfSpeech, simpleDefinition, longDefinition) {
|
||||||
|
SaveScroll();
|
||||||
|
|
||||||
currentDictionary.words[wordIndex].name = word;
|
currentDictionary.words[wordIndex].name = word;
|
||||||
currentDictionary.words[wordIndex].pronunciation = pronunciation;
|
currentDictionary.words[wordIndex].pronunciation = pronunciation;
|
||||||
currentDictionary.words[wordIndex].partOfSpeech = ((partOfSpeech.length > 0) ? partOfSpeech : " ");
|
currentDictionary.words[wordIndex].partOfSpeech = ((partOfSpeech.length > 0) ? partOfSpeech : " ");
|
||||||
|
|
Loading…
Add table
Reference in a new issue