diff --git a/resources/views/modules/form/index-mitigasi.blade.php b/resources/views/modules/form/index-mitigasi.blade.php index ca383d6..6acf027 100644 --- a/resources/views/modules/form/index-mitigasi.blade.php +++ b/resources/views/modules/form/index-mitigasi.blade.php @@ -1172,365 +1172,6 @@ (subKategori || sessionSubKategori); } - // function loadQuestion(mitigation_id) { - // $('#section4').show(); - // $('#accordion-4').html('
Loading...
'); - - // $.get('/mitigasi/form-mitigasi-question', { mitigation_id }) - // .done(data => { - // if (!data || !data.length) { - // $('#accordion-4').html( - // 'Pertanyaan tidak tersedia.
' - // ); - // return; - // } - // window.lastQuestionData = data; - - // // --- Build map - // const questionMap = {}; - // const childMap = {}; - // data.forEach(q => { - // questionMap[q.sequence] = q; - // if (q.ad_sequence) { - // if (!childMap[q.ad_sequence]) childMap[q.ad_sequence] = []; - // childMap[q.ad_sequence].push(q.sequence); - // } - // }); - - // // --- Kumpulkan multiQs - // const multiQs = []; - // data.forEach(q => { - // if (q.is_multiple) multiQs.push(q); - // }); - - // // --- Dapatkan sequence method dan question_plus - // const methodQuestion = data.find(q => q.type === 'method'); - // const methodSequence = methodQuestion?.sequence; - // let allowedMethodValue; - - // // --- Helper buat satu row - // function makeRow(q, idx, showRemove) { - // let inputEl = ""; - - // if (q.type === 'text') { - // inputEl = ``; - // } else if (q.type === 'form' || q.type === 'method') { - // inputEl = ` - // - // `; - // } else { - // inputEl = ``; - // } - - // const removeBtn = showRemove - // ? `` - // : ``; - - // return ` - //${data[0].activity_desc}
- // ${allHtml} - // ${multipleLayout} - //Terjadi kesalahan saat memuat pertanyaan.
' - // ); - // }); - // } - function loadQuestion(mitigation_id) { $('#section4').show(); $('#accordion-4').html('Loading...
');