entries in the team table can be edit now

This commit is contained in:
2022-06-17 18:30:40 +02:00
parent 4ca75ef48d
commit 0981887613
5 changed files with 105 additions and 5 deletions

View File

@@ -13,6 +13,7 @@ function init() {
user_edit_button();
statistic_edit_button();
station_edit_button();
team_edit_button();
}
var selected = null;
@@ -77,4 +78,15 @@ function station_edit_button() {
this.form.submit();
}
}
}
function team_edit_button() {
var button = document.getElementById('edit_team');
if(button != null) {
button.onclick = function() {
var row = document.getElementsByClassName('selected')[0];
document.getElementById('m_id').value = row.id;
this.form.submit();
}
}
}