Fixed broken dictionary deletion switching.
This commit is contained in:
parent
0f3185c9ea
commit
bf38b762fa
|
@ -334,7 +334,7 @@ function DeleteCurrentDictionary() {
|
||||||
CreateNewDictionary();
|
CreateNewDictionary();
|
||||||
} else {
|
} else {
|
||||||
HideSettings();
|
HideSettings();
|
||||||
ShowDictionaryDeleteMenu();
|
ShowDictionaryDeleteMenu(deleteDictionary.responseText);
|
||||||
|
|
||||||
if (document.getElementById("loadAfterDelete").options.length == 0) {
|
if (document.getElementById("loadAfterDelete").options.length == 0) {
|
||||||
document.getElementById('loadAfterDeleteScreen').style.display = 'none';
|
document.getElementById('loadAfterDeleteScreen').style.display = 'none';
|
||||||
|
|
6
js/ui.js
6
js/ui.js
|
@ -176,11 +176,11 @@ function HideInfo() {
|
||||||
document.getElementById("infoScreen").style.display = "none";
|
document.getElementById("infoScreen").style.display = "none";
|
||||||
}
|
}
|
||||||
|
|
||||||
function ShowDictionaryDeleteMenu() {
|
function ShowDictionaryDeleteMenu(dictionaryList) {
|
||||||
document.getElementById('loadAfterDeleteScreen').style.display = 'block';
|
document.getElementById('loadAfterDeleteScreen').style.display = 'block';
|
||||||
//Parse response into the list that forces you to load one and reload select in settings.
|
//Parse response into the list that forces you to load one and reload select in settings.
|
||||||
ParseUserDictionariesIntoSelect(document.getElementById("loadAfterDelete"), deleteDictionary.responseText);
|
ParseUserDictionariesIntoSelect(document.getElementById("loadAfterDelete"), dictionaryList);
|
||||||
ParseUserDictionariesIntoSelect(document.getElementById("userDictionaries"), deleteDictionary.responseText);
|
ParseUserDictionariesIntoSelect(document.getElementById("userDictionaries"), dictionaryList);
|
||||||
}
|
}
|
||||||
|
|
||||||
function ToggleCaseSensitiveOption() {
|
function ToggleCaseSensitiveOption() {
|
||||||
|
|
Loading…
Reference in New Issue