mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-03 11:08:28 +00:00
Fix #5276
This commit is contained in:
6
public/v1/js/ff/firefly.js
vendored
6
public/v1/js/ff/firefly.js
vendored
@@ -25,6 +25,12 @@ $(function () {
|
||||
|
||||
configAccounting(currencySymbol);
|
||||
|
||||
// on submit of logout button:
|
||||
$('.logout-link').click(function(e) {
|
||||
e.preventDefault();
|
||||
document.getElementById('logout-form').submit();
|
||||
});
|
||||
|
||||
// on submit of form, disable any button in form:
|
||||
$('form.form-horizontal:not(.nodisablebutton)').on('submit', function () {
|
||||
$('button[type="submit"]').prop('disabled', true);
|
||||
|
@@ -239,6 +239,9 @@
|
||||
);
|
||||
}
|
||||
</script>
|
||||
<form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token() }}" />
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
@@ -224,11 +224,8 @@
|
||||
|
||||
|
||||
{% if 'remote_user_guard' != authGuard or '' != logoutUri %}
|
||||
<form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token() }}" />
|
||||
</form>
|
||||
<li>
|
||||
<a href="{{ route('logout') }}" onclick="event.preventDefault();document.getElementById('logout-form').submit();">
|
||||
<a href="{{ route('logout') }}" class="logout-link">
|
||||
<span class="fa fa-sign-out fa-fw"></span>
|
||||
<span>{{ 'logout'|_ }}</span>
|
||||
</a>
|
||||
|
@@ -53,11 +53,7 @@
|
||||
</li>
|
||||
{% endif %}
|
||||
|
||||
<form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
|
||||
<input type="hidden" name="_token" value="{{ csrf_token() }}" />
|
||||
</form>
|
||||
|
||||
<li><a href="{{ route('logout') }}" onclick="event.preventDefault();document.getElementById('logout-form').submit();">{{ 'logout'|_ }}</a></li>
|
||||
<li><a href="{{ route('logout') }}" class="logout-link">{{ 'logout'|_ }}</a></li>
|
||||
|
||||
{% if true == isInternalAuth and true == isInternalIdentity %}
|
||||
<li>
|
||||
|
Reference in New Issue
Block a user