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,37 @@
|
||||
<f:asset.script identifier="loadspieltage">
|
||||
|
||||
function ladeSpieltage(){
|
||||
$.ajax({
|
||||
url: "../index.php",
|
||||
type: "GET",
|
||||
data: {
|
||||
application: "loadspieltage",
|
||||
tournament: $( "#tournament" ).val()
|
||||
},
|
||||
dataType : "json"
|
||||
})
|
||||
.done(function( response ) {
|
||||
$("#grid_ergebnisse").jsGrid({ data: '' });
|
||||
$("#grid_punkte").jsGrid({ data: '' });
|
||||
$('#story_text').html('');
|
||||
|
||||
|
||||
myChart.data = [];
|
||||
myChart.update();
|
||||
|
||||
var $select = $('#spieltagselect');
|
||||
$select.find('option').remove();
|
||||
$.each(response, function(key, value) {
|
||||
$select.append(`<option value="${value.id}">${value.name}</option>`);
|
||||
});
|
||||
})
|
||||
}
|
||||
</f:asset.script>
|
||||
|
||||
<f:form.select id="tournament"
|
||||
name="tournament"
|
||||
options="{tournaments}"
|
||||
optionValueField="id"
|
||||
optionLabelField="name"
|
||||
additionalAttributes="{onchange: 'ladeSpieltage();'}"
|
||||
value="{active_tournaments}" />
|
||||
Reference in new issue
Block a user