close #236 Fixed: Not able to delete due to double quotes in confirmation popup
This commit is contained in:
parent
bc75006083
commit
7185fd0595
@ -1,6 +1,8 @@
|
|||||||
@php
|
@php
|
||||||
$page = explode('/', $url)[1];
|
$page = explode('/', $url)[1];
|
||||||
$text = $text ? $text : $page;
|
$text = $text ? $text : $page;
|
||||||
|
|
||||||
|
$name = addslashes($item->$value);
|
||||||
@endphp
|
@endphp
|
||||||
|
|
||||||
{!! Form::open([
|
{!! Form::open([
|
||||||
@ -13,6 +15,6 @@ $text = $text ? $text : $page;
|
|||||||
'type' => 'button',
|
'type' => 'button',
|
||||||
'class' => 'delete-link',
|
'class' => 'delete-link',
|
||||||
'title' => trans('general.delete'),
|
'title' => trans('general.delete'),
|
||||||
'onclick' => 'confirmDelete("' . '#' . str_singular($page) . '-' . $item->$id . '", "' . trans_choice('general.' . $text, 2) . '", "' . trans('general.delete_confirm', ['name' => '<strong>' . $item->$value . '</strong>', 'type' => strtolower(trans_choice('general.' . $text, 1))]) . '", "' . trans('general.cancel') . '", "' . trans('general.delete') . '")'
|
'onclick' => 'confirmDelete("' . '#' . str_singular($page) . '-' . $item->$id . '", "' . trans_choice('general.' . $text, 2) . '", "' . trans('general.delete_confirm', ['name' => '<strong>' . $name . '</strong>', 'type' => strtolower(trans_choice('general.' . $text, 1))]) . '", "' . trans('general.cancel') . '", "' . trans('general.delete') . '")'
|
||||||
)) !!}
|
)) !!}
|
||||||
{!! Form::close() !!}
|
{!! Form::close() !!}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user