Fixed broken dictionary deletion switching.

This commit is contained in:
Robbie Antenesse 2015-12-02 09:47:17 -07:00
parent 0f3185c9ea
commit bf38b762fa
2 changed files with 4 additions and 4 deletions

View File

@ -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';

View File

@ -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() {