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); + + }); });