delete entries in statistic
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user