delete entries in users
This commit is contained in:
@@ -17,6 +17,7 @@ function init() {
|
||||
team_delete_button();
|
||||
station_delete_button();
|
||||
statistic_delete_button();
|
||||
user_delete_button();
|
||||
}
|
||||
|
||||
var selected = null;
|
||||
@@ -139,4 +140,18 @@ function statistic_delete_button() {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function user_delete_button() {
|
||||
var button = document.getElementById('delete_user');
|
||||
if(button != null) {
|
||||
button.onclick = function() {
|
||||
var row = document.getElementsByClassName('selected')[0];
|
||||
document.getElementById('id_delete').value = row.id;
|
||||
let confirmAction = confirm("Wirklich löschen?");
|
||||
if (confirmAction) {
|
||||
this.form.submit();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user