gitea/web_src/js/features/repo-commit.js

7 lines
174 B
JavaScript

export function initRepoCommitButton() {
$('.commit-button').on('click', function (e) {
e.preventDefault();
$(this).parent().find('.commit-body').toggle();
});
}