@@ -, +, @@ --------- -- notice if you click login again, you continue as if you never logged out. This is because the current log out is a Koha only logout. -- same continuation as before. -- authentication is required again --- .../opac-tmpl/bootstrap/en/includes/masthead.inc | 27 ++++++++++++++++++++-- koha-tmpl/opac-tmpl/bootstrap/js/script.js | 6 ++++- 2 files changed, 30 insertions(+), 3 deletions(-) --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc +++ a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc @@ -92,7 +92,7 @@ [%# CAS authentication is too complicated for modal window %]
  • Log in to your account
  • [% ELSIF ( Koha.Preference('GoogleOpenIDConnect') == 1 ) %] -
  • Log in to your account
  • +
  • Log in to your account
  • [% ELSE %]
  • Log in to your account
  • [% END %] @@ -109,8 +109,12 @@ [% IF Koha.Preference( 'opacuserlogin' ) == 1 %] [% IF ( loggedinusername ) %]
  • + [% END %] + Log out

    [% END %] [% END %] @@ -337,3 +341,22 @@ + + + --- a/koha-tmpl/opac-tmpl/bootstrap/js/script.js +++ a/koha-tmpl/opac-tmpl/bootstrap/js/script.js @@ -58,9 +58,13 @@ $(document).ready(function(){ $("#loginModal").modal("show"); $("#members").removeAttr("style"); }); + $(".logoutOAuthModal-trigger").on("click",function(e){ + e.preventDefault(); + $("#logoutOAuthModal").modal("show"); + }); $("#loginModal").on("hide",function(){ if($("#user-menu-trigger").is(":hidden")){ $("#members").removeAttr("style"); } }); -}); +}); --