wip watten
This commit is contained in:
1 parent
8ace316cbf
commit
afc8a6e1f5
93 files changed
+14369
-1
No files matched your search
@@ -0,0 +1,31 @@
|
||||
<f:asset.script identifier="laderangliste">
|
||||
|
||||
function loadTournamentAthleten(){
|
||||
$.ajax({
|
||||
url: "../index.php",
|
||||
type: "GET",
|
||||
data: {
|
||||
application: "loadtournamentathleten",
|
||||
tournament: $( "#tournament_paarlauf" ).val()
|
||||
},
|
||||
dataType : "json"
|
||||
})
|
||||
.done(function( response ) {
|
||||
$("#grid_paarlauf").jsGrid({ data: '' });
|
||||
var $select = $('#tournament_teilnehmer');
|
||||
$select.find('option').remove();
|
||||
$.each(response, function(key, value) {
|
||||
$select.append(`<option value="${value.id}">${value.name}</option>`);
|
||||
});
|
||||
$select.options[0].selected = true
|
||||
});
|
||||
}
|
||||
</f:asset.script>
|
||||
|
||||
<f:form.select id="tournament_paarlauf"
|
||||
name="tournament_paarlauf"
|
||||
options="{tournament_paarlauf}"
|
||||
optionValueField="id"
|
||||
optionLabelField="name"
|
||||
additionalAttributes="{onchange: 'loadTournamentAthleten();'}"
|
||||
value="{active}" />
|
||||
Reference in new issue
Block a user