diff --git a/js/dictionaryBuilder.js b/js/dictionaryBuilder.js index 1dcee74..754c280 100644 --- a/js/dictionaryBuilder.js +++ b/js/dictionaryBuilder.js @@ -334,7 +334,7 @@ function DeleteCurrentDictionary() { CreateNewDictionary(); } else { HideSettings(); - ShowDictionaryDeleteMenu(); + ShowDictionaryDeleteMenu(deleteDictionary.responseText); if (document.getElementById("loadAfterDelete").options.length == 0) { document.getElementById('loadAfterDeleteScreen').style.display = 'none'; diff --git a/js/ui.js b/js/ui.js index d6e0e60..c786481 100644 --- a/js/ui.js +++ b/js/ui.js @@ -176,11 +176,11 @@ function HideInfo() { document.getElementById("infoScreen").style.display = "none"; } -function ShowDictionaryDeleteMenu() { +function ShowDictionaryDeleteMenu(dictionaryList) { document.getElementById('loadAfterDeleteScreen').style.display = 'block'; //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("userDictionaries"), deleteDictionary.responseText); + ParseUserDictionariesIntoSelect(document.getElementById("loadAfterDelete"), dictionaryList); + ParseUserDictionariesIntoSelect(document.getElementById("userDictionaries"), dictionaryList); } function ToggleCaseSensitiveOption() {