mirror of
https://github.com/SubleXBle/Fail2Ban-Report.git
synced 2026-02-11 19:28:50 -06:00
Create action.js
This commit is contained in:
7
assets/js/action.js
Normal file
7
assets/js/action.js
Normal file
@@ -0,0 +1,7 @@
|
||||
document.querySelector('#resultTable tbody').addEventListener('click', e => {
|
||||
if(e.target.classList.contains('action-btn')) {
|
||||
const ip = e.target.dataset.ip;
|
||||
console.log('Ban IP:', ip);
|
||||
// Hier AJAX-Call oder andere Logik
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user