entries in the team table can be edit now
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user