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 @@ ); } +