diff options
author | Lauris BH <lauris@nix.lv> | 2019-11-01 06:48:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-01 06:48:30 +0200 |
commit | ebcc38188eab15cfd03b3cf2d1771aa189abfc18 (patch) | |
tree | 22398d3abf0c8964e898b0bed3094f7aa5147526 /public | |
parent | ac0fb36c417376f3967d0d98ae5066d8946c41c9 (diff) | |
download | gitea-ebcc38188eab15cfd03b3cf2d1771aa189abfc18.tar.gz gitea-ebcc38188eab15cfd03b3cf2d1771aa189abfc18.zip |
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
Diffstat (limited to 'public')
-rw-r--r-- | public/js/index.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/public/js/index.js b/public/js/index.js index bfcf36f528..53650890f0 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -2994,7 +2994,8 @@ function initFilterBranchTagDropdown(selector) { }); } -$(".commit-button").click(function() { +$(".commit-button").click(function(e) { + e.preventDefault(); $(this).parent().find('.commit-body').toggle(); }); |