added hit enter for both the go once pwd is entered and the run seleted buttons once the site is!

This commit is contained in:
2025-06-30 00:32:13 -04:00
parent b0b1778a2f
commit ff9055c881

View File

@@ -688,6 +688,16 @@ function toggleColumn(col) {
goButton.click(); // Trigger the 'Go' button click goButton.click(); // Trigger the 'Go' button click
} }
}); });
// Trigger 'Run Selected' button click when 'Enter' is pressed after selecting a site
const siteDropdown = document.getElementById('dattoDropdown');
const runButton = document.querySelector('.run-button');
siteDropdown.addEventListener('keydown', (e) => {
if (e.key === 'Enter' && siteDropdown.value) { // Check if the key pressed is 'Enter' and a site is selected
runButton.click(); // Trigger the 'Run Selected' button click
}
});
}); });