1
0
Fork 0
forked from forgejo/forgejo

Fix commit expand button to not go to commit link (#8745)

* Fix commit expand button to not go to commit link

* Fix message rendering to have correct HTML in result

* Fix check for empty commit message

* Code optimization
This commit is contained in:
Lauris BH 2019-11-01 06:48:30 +02:00 committed by GitHub
parent ac0fb36c41
commit ebcc38188e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 32 additions and 18 deletions

View file

@ -2994,7 +2994,8 @@ function initFilterBranchTagDropdown(selector) {
});
}
$(".commit-button").click(function() {
$(".commit-button").click(function(e) {
e.preventDefault();
$(this).parent().find('.commit-body').toggle();
});