diff options
Diffstat (limited to 'web_src/js/features/repo-commit.js')
-rw-r--r-- | web_src/js/features/repo-commit.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/web_src/js/features/repo-commit.js b/web_src/js/features/repo-commit.js index 3aba850911..e2eef3ee59 100644 --- a/web_src/js/features/repo-commit.js +++ b/web_src/js/features/repo-commit.js @@ -1,5 +1,6 @@ import $ from 'jquery'; import {createTippy} from '../modules/tippy.js'; +import {toggleElem} from '../utils/dom.js'; const {csrfToken} = window.config; @@ -7,7 +8,7 @@ export function initRepoEllipsisButton() { $('.ellipsis-button').on('click', function (e) { e.preventDefault(); const expanded = $(this).attr('aria-expanded') === 'true'; - $(this).parent().find('.commit-body').toggle(); + toggleElem($(this).parent().find('.commit-body')); $(this).attr('aria-expanded', String(!expanded)); }); } |