delete entries in statistic

This commit is contained in:
2022-06-18 10:27:58 +02:00
parent 3bea28c125
commit fe877ea176
3 changed files with 45 additions and 0 deletions

View File

@@ -16,6 +16,7 @@ function init() {
team_edit_button();
team_delete_button();
station_delete_button();
statistic_delete_button();
}
var selected = null;
@@ -124,4 +125,18 @@ function station_delete_button() {
}
}
}
}
function statistic_delete_button() {
var button = document.getElementById('delete_statistic');
if(button != null) {
button.onclick = function() {
var row = document.getElementsByClassName('row selected')[0];
document.getElementById('m_id_delete').value = row.id;
let confirmAction = confirm("Wirklich löschen?");
if (confirmAction) {
this.form.submit();
}
}
}
}