17 lines
No EOL
613 B
PHP
17 lines
No EOL
613 B
PHP
{{-- Confirm Delete Modal --}}
|
|
|
|
<script type="text/javascript">
|
|
$(document).ready(function(){
|
|
$('#confirmDelete').on('show.bs.modal', function (e) {
|
|
var message = $(e.relatedTarget).attr('data-message');
|
|
var title = $(e.relatedTarget).attr('data-title');
|
|
var form = $(e.relatedTarget).closest('form');
|
|
$(this).find('.modal-body p').text(message);
|
|
$(this).find('.modal-title').text(title);
|
|
$(this).find('.modal-footer #confirm').data('form', form);
|
|
});
|
|
$('#confirmDelete').find('.modal-footer #confirm').on('click', function(){
|
|
$(this).data('form').submit();
|
|
});
|
|
});
|
|
</script> |