From e12205661c40e6495f53499de0688e0b825552d0 Mon Sep 17 00:00:00 2001 From: Ilham Wara Nugroho Date: Wed, 4 Feb 2026 12:03:22 +0700 Subject: [PATCH] update --- .../modules/usulan/kriteria/form.blade.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/resources/views/modules/usulan/kriteria/form.blade.php b/resources/views/modules/usulan/kriteria/form.blade.php index 06ca3c0..cdb8f28 100644 --- a/resources/views/modules/usulan/kriteria/form.blade.php +++ b/resources/views/modules/usulan/kriteria/form.blade.php @@ -361,6 +361,24 @@ $(this).addClass('bg-primary-light border-primary text-primary'); getForm(number); + + $('.clickModal').on('click',function(){ + $('.remove').remove(); + const fileType = $(this).data('type'); + const title = $(this).data('title'); + const url = $(this).data('url'); + + $('.titleModal').html(title); + + if (fileType === 'pdf') { + var body = ``; + } else { + var body = ``; + } + + $('.bodyModal').append(body); + + }); });