aboutsummaryrefslogtreecommitdiff
path: root/resources/js
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2020-11-08 20:17:01 +0100
committerMateja <mail@matejamaric.com>2020-11-08 20:17:01 +0100
commitde0600b75c3eeff15352f58e2631f2e19da4b252 (patch)
treedde19872d13b29a946dde312b50a971bdde17643 /resources/js
parentd5691453f708ff5a288daeec21a00a19e888ca40 (diff)
downloadyota-laravel-de0600b75c3eeff15352f58e2631f2e19da4b252.tar.gz
yota-laravel-de0600b75c3eeff15352f58e2631f2e19da4b252.zip
Show special call description.
Diffstat (limited to 'resources/js')
-rw-r--r--resources/js/reserve.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/resources/js/reserve.js b/resources/js/reserve.js
new file mode 100644
index 0000000..7a20c37
--- /dev/null
+++ b/resources/js/reserve.js
@@ -0,0 +1,9 @@
+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);
+ });
+}