update
parent
6bb675f7c0
commit
e12205661c
|
|
@ -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 = `<iframe class="remove" src="${url}" width="100%" height=500"></iframe>`;
|
||||
} else {
|
||||
var body = `<img class="remove" src="${url}" width="70%" style="max-width:100%; max-height:50%;">`;
|
||||
}
|
||||
|
||||
$('.bodyModal').append(body);
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue