From ae394dfce96cc10b7c5c7e58e41d8caa1fac2491 Mon Sep 17 00:00:00 2001 From: int2001 Date: Tue, 1 Aug 2023 08:22:06 +0000 Subject: [PATCH] JS-Part for maintenance --- assets/js/sections/maintenance.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 assets/js/sections/maintenance.js diff --git a/assets/js/sections/maintenance.js b/assets/js/sections/maintenance.js new file mode 100644 index 00000000..69cb91e3 --- /dev/null +++ b/assets/js/sections/maintenance.js @@ -0,0 +1,12 @@ +function reassign(call,target_profile_id) { + $.ajax({ + url: base_url + 'index.php/maintenance/reassign', + type: 'post', + data: {'call': call, 'station_id': target_profile_id}, + success: function (resu) { + if (resu.status) { + location.reload(); + } + } + }); +}