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:
@@ -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
|
||||||
|
}
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user