diff options
author | Mateja <mail@matejamaric.com> | 2020-11-13 01:47:38 +0100 |
---|---|---|
committer | Mateja <mail@matejamaric.com> | 2020-11-13 01:47:38 +0100 |
commit | cddef1ffc9cb204d87299cea7e9f2de0cf6e58c3 (patch) | |
tree | a35436b5e59a28a2b03bd77750368e9f30fdfc5f /resources/js | |
parent | 470a54a8c6e92416a8245af0bc87170ad934fae0 (diff) | |
download | yota-laravel-cddef1ffc9cb204d87299cea7e9f2de0cf6e58c3.tar.gz yota-laravel-cddef1ffc9cb204d87299cea7e9f2de0cf6e58c3.zip |
Work on activities...
Diffstat (limited to 'resources/js')
-rw-r--r-- | resources/js/activities.js | 15 | ||||
-rw-r--r-- | resources/js/reservations.js | 0 |
2 files changed, 15 insertions, 0 deletions
diff --git a/resources/js/activities.js b/resources/js/activities.js new file mode 100644 index 0000000..f9c19ac --- /dev/null +++ b/resources/js/activities.js @@ -0,0 +1,15 @@ +$.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); + }); +} diff --git a/resources/js/reservations.js b/resources/js/reservations.js new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/resources/js/reservations.js |