mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-03 19:16:51 +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);
|
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:
|
// on submit of form, disable any button in form:
|
||||||
$('form.form-horizontal:not(.nodisablebutton)').on('submit', function () {
|
$('form.form-horizontal:not(.nodisablebutton)').on('submit', function () {
|
||||||
$('button[type="submit"]').prop('disabled', true);
|
$('button[type="submit"]').prop('disabled', true);
|
||||||
|
@@ -239,6 +239,9 @@
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
<form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
|
||||||
|
<input type="hidden" name="_token" value="{{ csrf_token() }}" />
|
||||||
|
</form>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@@ -224,11 +224,8 @@
|
|||||||
|
|
||||||
|
|
||||||
{% if 'remote_user_guard' != authGuard or '' != logoutUri %}
|
{% 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>
|
<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 class="fa fa-sign-out fa-fw"></span>
|
||||||
<span>{{ 'logout'|_ }}</span>
|
<span>{{ 'logout'|_ }}</span>
|
||||||
</a>
|
</a>
|
||||||
|
@@ -53,11 +53,7 @@
|
|||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
|
<li><a href="{{ route('logout') }}" class="logout-link">{{ 'logout'|_ }}</a></li>
|
||||||
<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>
|
|
||||||
|
|
||||||
{% if true == isInternalAuth and true == isInternalIdentity %}
|
{% if true == isInternalAuth and true == isInternalIdentity %}
|
||||||
<li>
|
<li>
|
||||||
|
Reference in New Issue
Block a user