Commit 78d4292c authored by Porter Libby's avatar Porter Libby
Browse files

fix bug

parent a4963792
......@@ -95,7 +95,9 @@ function autocomplete(inp, arr, sub_dict) {
document.addEventListener("click", function (e) {
closeAllLists(e.target);
if (arr.includes(inp.value)){
createInfo(sub_dict[inp.value], inp.value)
if (inp.value != selection_tracking[0]){
createInfo(sub_dict[inp.value], inp.value)
}
}else{
destroyInfo()
}
......@@ -105,7 +107,7 @@ function autocomplete(inp, arr, sub_dict) {
function createInfo(info_arr){
console.log(info_arr);
selection_tracking[0] = info_arr[2]; // set value for export
//open_modal();
open_modal();
}
function destroyInfo(){
console.log('No info')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment