diff --git a/CHANGELOG.md b/CHANGELOG.md index be80914d..e82c5b85 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,7 +22,8 @@ ### Bugfixes -- Fixed a bug with the local storage that caused problems with outdated discovery information +- Fixed a bug in the webinterface with the local storage that caused problems with outdated discovery information +- Fixed a bug in the webinterface where the `Expand` `Collapse` buttons (e.g. in the consent screen) got the wrong text. ## mytoken 0.7.0 diff --git a/internal/server/web/static/js/utils.js b/internal/server/web/static/js/utils.js index 78294f9c..00dfe09d 100644 --- a/internal/server/web/static/js/utils.js +++ b/internal/server/web/static/js/utils.js @@ -24,7 +24,7 @@ $.fn.hideB = function () { $('.my-expand').on('click', function () { const expand = "Expand"; const collapse = "Collapse"; - if ($(this).text() === expand) { + if ($(this).text().trim() === expand) { $(this).text(collapse); } else { $(this).text(expand);