diff --git a/static/app.js b/static/app.js index 3cea7e8..e59ff9d 100755 --- a/static/app.js +++ b/static/app.js @@ -3286,3 +3286,19 @@ for (const pageID of pageIDs) { }); }); } + + + +// for drop down menu, change feature settings prompt text + +var selectMenu = document.getElementById("drop"); +var pElement = document.getElementById("save-feature-prompt-p"); +var pElement2 = document.getElementById("saved-feature-msg-feedback"); +// Add an event listener for the "change" event +selectMenu.addEventListener("change", function() { + document.getElementById('save-feature-prompt-message').style.display = "none"; + var selectedOption = selectMenu.selectedOptions[0]; + var selectedValue = selectedOption.textContent; + pElement.textContent = selectedValue + " Settings - Changes detected."; + pElement2.innerHTML = selectedValue + " Settings -" + "
" + " Saved!"; +});