From c78fc226ffa87edd03dd89b96c3d6d8718137790 Mon Sep 17 00:00:00 2001 From: Bertrand GAUTHIER <bertrand.gauthier@unicaen.fr> Date: Wed, 21 Jul 2021 17:08:56 +0200 Subject: [PATCH] WIP bootstrap 3 => 4 --- src/UnicaenAuth/View/Helper/UserCurrent.php | 4 ++-- src/UnicaenAuth/View/Helper/UserProfileSelect.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/UnicaenAuth/View/Helper/UserCurrent.php b/src/UnicaenAuth/View/Helper/UserCurrent.php index d086f7c..0744b1e 100644 --- a/src/UnicaenAuth/View/Helper/UserCurrent.php +++ b/src/UnicaenAuth/View/Helper/UserCurrent.php @@ -52,7 +52,7 @@ class UserCurrent extends UserAbstract $selectableRoles = $this->getUserContext()->getSelectableIdentityRoles(); $role = current($selectableRoles) ?: $this->getUserContext()->getIdentityRole('user'); } - $status .= sprintf(", <small class='role-libelle'>%s</small>", !method_exists($role, '__toString') ? $role->getRoleId() : $role); + $status .= sprintf("<br/><small class='role-libelle'>%s</small>", !method_exists($role, '__toString') ? $role->getRoleId() : $role); } $userProfileHelper = $this->getView()->plugin('userProfile'); /* @var $userProfileHelper UserProfile */ @@ -77,7 +77,7 @@ class UserCurrent extends UserAbstract } $out = <<<EOS -<a class="navbar-link" +<a class="navbar-link dropdown-toggle" id="$id" title="$title" data-placement="bottom" diff --git a/src/UnicaenAuth/View/Helper/UserProfileSelect.php b/src/UnicaenAuth/View/Helper/UserProfileSelect.php index 136634e..20ce96a 100644 --- a/src/UnicaenAuth/View/Helper/UserProfileSelect.php +++ b/src/UnicaenAuth/View/Helper/UserProfileSelect.php @@ -82,7 +82,7 @@ class UserProfileSelect extends UserAbstract $html .= <<<EOS <script> $(function() { - $("input.$inputClass").change(function() { submitProfile(); }).tooltip({ delay: 500, placement: 'left' }); + $("input.$inputClass").on("change", function() { submitProfile(); }).tooltip({ delay: 500, placement: 'left' }); }); function submitProfile() { -- GitLab