From 16391fe99c88a42bf4152cff5c0038cf92456a55 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sat, 13 Nov 2021 10:54:04 +0100 Subject: [PATCH] Fix #5276 --- public/v1/js/ff/firefly.js | 6 ++++++ resources/views/v1/layout/default.twig | 3 +++ resources/views/v1/partials/menu-sidebar.twig | 5 +---- resources/views/v1/profile/index.twig | 6 +----- 4 files changed, 11 insertions(+), 9 deletions(-) diff --git a/public/v1/js/ff/firefly.js b/public/v1/js/ff/firefly.js index fe919d3dc8..6715e3db06 100644 --- a/public/v1/js/ff/firefly.js +++ b/public/v1/js/ff/firefly.js @@ -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); diff --git a/resources/views/v1/layout/default.twig b/resources/views/v1/layout/default.twig index cf02557e28..254e6f207f 100644 --- a/resources/views/v1/layout/default.twig +++ b/resources/views/v1/layout/default.twig @@ -239,6 +239,9 @@ ); } + diff --git a/resources/views/v1/partials/menu-sidebar.twig b/resources/views/v1/partials/menu-sidebar.twig index b9de1279cc..07a57665c5 100644 --- a/resources/views/v1/partials/menu-sidebar.twig +++ b/resources/views/v1/partials/menu-sidebar.twig @@ -224,11 +224,8 @@ {% if 'remote_user_guard' != authGuard or '' != logoutUri %} -
  • - + {{ 'logout'|_ }} diff --git a/resources/views/v1/profile/index.twig b/resources/views/v1/profile/index.twig index e7077141ea..631dd0e3b5 100644 --- a/resources/views/v1/profile/index.twig +++ b/resources/views/v1/profile/index.twig @@ -53,11 +53,7 @@
  • {% endif %} - - -
  • {{ 'logout'|_ }}
  • +
  • {{ 'logout'|_ }}
  • {% if true == isInternalAuth and true == isInternalIdentity %}