Fix "Uncaught TypeError: Cannot read properties of null (reading 'addEventListener')"
This commit is contained in:
parent
9806afe60f
commit
980a720842
|
@ -131,6 +131,7 @@ if(Auth::user()->id == $userinfo->id){
|
||||||
document.getElementById('logoutForm').submit();
|
document.getElementById('logoutForm').submit();
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
@if(auth()->user()->role != 'admin')
|
||||||
<script>
|
<script>
|
||||||
function showConfirmation() {
|
function showConfirmation() {
|
||||||
var isConfirmed = confirm("{{__('messages.confirm.delete.user')}}");
|
var isConfirmed = confirm("{{__('messages.confirm.delete.user')}}");
|
||||||
|
@ -143,6 +144,7 @@ if(Auth::user()->id == $userinfo->id){
|
||||||
showConfirmation();
|
showConfirmation();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
@endif
|
||||||
<form id="logoutForm" action="{{ route('logout') }}" method="post">
|
<form id="logoutForm" action="{{ route('logout') }}" method="post">
|
||||||
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
<input type="hidden" name="_token" value="{{ csrf_token() }}">
|
||||||
</form>
|
</form>
|
||||||
|
|
Loading…
Reference in New Issue