From 82498e1687359b5862ed8032f9fe1da6350a8703 Mon Sep 17 00:00:00 2001 From: Mateja Date: Sun, 15 Nov 2020 12:15:34 +0100 Subject: Don't use Laravel Mix for now... --- resources/js/activities.js | 15 --------------- resources/js/reservations.js | 0 resources/js/reserve.js | 9 --------- 3 files changed, 24 deletions(-) delete mode 100644 resources/js/activities.js delete mode 100644 resources/js/reservations.js delete mode 100644 resources/js/reserve.js (limited to 'resources') diff --git a/resources/js/activities.js b/resources/js/activities.js deleted file mode 100644 index f9c19ac..0000000 --- a/resources/js/activities.js +++ /dev/null @@ -1,15 +0,0 @@ -$.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 deleted file mode 100644 index e69de29..0000000 diff --git a/resources/js/reserve.js b/resources/js/reserve.js deleted file mode 100644 index 7a20c37..0000000 --- a/resources/js/reserve.js +++ /dev/null @@ -1,9 +0,0 @@ -jQuery('select#special-call').change(setCallDesc); -jQuery(document).ready(setCallDesc); - -function setCallDesc() { - sign = jQuery('select#special-call').first().val(); - jQuery.get('/special-calls/show/' + sign, function (data, status) { - jQuery('div#call-desc').html(data); - }); -} -- cgit v1.2.3