edit page and show pages media delete issue solved.

This commit is contained in:
cuneytsenturk
2019-02-02 14:26:03 +03:00
parent d4b5861120
commit 8708512b96
6 changed files with 41 additions and 7 deletions

View File

@ -459,11 +459,13 @@
@push('scripts')
<script type="text/javascript">
@permission('delete-common-uploads')
@if($invoice->attachment)
$(document).on('click', '#remove-attachment', function (e) {
confirmDelete("#attachment-{!! $invoice->attachment->id !!}", "{!! trans('general.attachment') !!}", "{!! trans('general.delete_confirm', ['name' => '<strong>' . $invoice->attachment->basename . '</strong>', 'type' => strtolower(trans('general.attachment'))]) !!}", "{!! trans('general.cancel') !!}", "{!! trans('general.delete') !!}");
});
@endif
@endpermission
$(document).on('click', '#button-payment', function (e) {
$('#modal-add-payment').remove();