delete stations
This commit is contained in:
@@ -15,6 +15,7 @@ function init() {
|
||||
station_edit_button();
|
||||
team_edit_button();
|
||||
team_delete_button();
|
||||
station_delete_button();
|
||||
}
|
||||
|
||||
var selected = null;
|
||||
@@ -109,4 +110,18 @@ function team_delete_button() {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function station_delete_button() {
|
||||
var button = document.getElementById('delete_station');
|
||||
if(button != null) {
|
||||
button.onclick = function() {
|
||||
var row = document.getElementsByClassName('selected')[0];
|
||||
document.getElementById('s_id_delete').value = row.id;
|
||||
let confirmAction = confirm("Wirklich löschen?");
|
||||
if (confirmAction) {
|
||||
this.form.submit();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user