Skip to content

Commit

Permalink
New way of changing the list
Browse files Browse the repository at this point in the history
  • Loading branch information
york-stsci committed Aug 28, 2024
1 parent 90c2259 commit 0a35dfa
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions jwql/website/apps/jwql/templates/log_view.html
Original file line number Diff line number Diff line change
Expand Up @@ -112,15 +112,13 @@ <h4> {{ log_name|safe }} </h4><hr>
console.log("Logs list is: "+logList.length+" items: "+logList);
logList = logList.filter(value => listOfLogNamesByLevel.includes(value));
console.log("Logs list is: "+logList.length+" items: "+logList);
var optionList = [];
logsList.replaceChildren();
logList.forEach(function (item, index) {
var option = document.createElement('option');
option.value = item;
option.id = item;
optionList.push(option);
logsList.appendChild(option);
});
console.log("New options are: "+optionList);
logsList.replaceChildren(optionList);
}

idInputField.addEventListener('input', function () {
Expand Down

0 comments on commit 0a35dfa

Please sign in to comment.