From 1b5ca4bd347752b4219d5fa54b790a053dc1424f Mon Sep 17 00:00:00 2001 From: Ryan Prather Date: Tue, 31 Dec 2024 23:00:17 +0000 Subject: [PATCH] remove functions to place in other js files --- assets/app.js | 31 +++---------------------------- 1 file changed, 3 insertions(+), 28 deletions(-) diff --git a/assets/app.js b/assets/app.js index 213dbd3..353aae1 100644 --- a/assets/app.js +++ b/assets/app.js @@ -4,32 +4,7 @@ * This file will be included onto the page via the importmap() Twig function, * which should already be in your base.html.twig. */ +import './bootstrap.js'; +import './vendor/bootstrap/bootstrap.index.js'; +import './vendor/bootstrap/dist/css/bootstrap.min.css'; import './styles/app.css'; - -function filterCasesByUser(userId) { - fetch('/index.php/api/filter-cases-by-user', { - method: 'POST', - headers: { - 'Content-Type': 'application/json' - }, - body: JSON.stringify({ userId: userId }) - }) - .then(response => response.json()) - .then(data => { - const caseList = document.getElementById('case-list'); - caseList.innerHTML = ''; - data.forEach(c => { - caseList.innerHTML += ` - - ${c.clientName} - ${c.caseNumber} - ${c.dcsCaseId} - ${c.referralType}/${c.referralSource.name}
${c.referralSource.email} - ${c.county.value} - ${c.referrals.length} - - - `; - }) - }); -}