Skip to content

Commit

Permalink
Revert "Fix duplicate id="logout-form" in "combo" layout mode"
Browse files Browse the repository at this point in the history
  • Loading branch information
ser-tec authored Dec 10, 2024
1 parent 22583e4 commit 2e7f164
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/views/partials/header/top-right.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@
<div class="dropdown-divider"></div>
<a href="{{$setting_url}}" class="dropdown-item">Settings</a>
<a class="dropdown-item"
href="#" onclick="event.preventDefault(); document.getElementById('logout-form-{{ uniqid('logout-form-') }}').submit();">
href="#" onclick="event.preventDefault(); document.getElementById('logout-form').submit();">
<i class="fa fa-fw fa-power-off text-red"></i>
{{ __('tablar::tablar.log_out') }}
</a>

<form id="logout-form-{{ uniqid('logout-form-') }}" action="{{ $logout_url }}" method="POST" style="display: none;">
<form id="logout-form" action="{{ $logout_url }}" method="POST" style="display: none;">
@if(config('tablar.logout_method'))
{{ method_field(config('tablar.logout_method')) }}
@endif
Expand Down

0 comments on commit 2e7f164

Please sign in to comment.