aboutsummaryrefslogblamecommitdiff
path: root/public/js/activities.js
blob: f9c19acbff49571c17b03a5cfb1fba4a7c70329a (plain) (tree)
1
2
3
4
5
6
7
8
9
10
             


                                                                     
   
 



                                             



                                                                                 
 
$.ajaxSetup({
    headers: {
        'X-CSRF-TOKEN': $('input[name="csrf-token"]').attr('content')
    }
});

jQuery('select#call-sign').change(fillTable);
jQuery(document).ready(fillTable);

function fillTable() {
    sign = jQuery('select#call-sign').first().val();
    jQuery.post('/api/activities', {'call-sign': sign}, function (data, status) {
        console.log(data);
    });
}