diff options
author | Cirno the Strongest <1447794+CirnoT@users.noreply.github.com> | 2020-11-02 16:58:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-02 10:58:14 -0500 |
commit | 7f7e7f3ca432fa80f9f5a8a71c9c10a89ac43c4f (patch) | |
tree | 225c7cd34f4c4984571ffc33d3588207e0055220 /web_src/js/index.js | |
parent | 06268dcf53657ffe012abe878e1127ab4f954264 (diff) | |
download | gitea-7f7e7f3ca432fa80f9f5a8a71c9c10a89ac43c4f.tar.gz gitea-7f7e7f3ca432fa80f9f5a8a71c9c10a89ac43c4f.zip |
Fix 'add code comment' button being invisible all the time (#13389)
* Fix 'add code comment' button being invisible all the time
* Fix off-center icon
* Remove old JS hover hack
* Show on full-line hover
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'web_src/js/index.js')
-rw-r--r-- | web_src/js/index.js | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/web_src/js/index.js b/web_src/js/index.js index 7c56703144..fa80b5fb65 100644 --- a/web_src/js/index.js +++ b/web_src/js/index.js @@ -1238,16 +1238,6 @@ function initPullRequestReview() { $(this).closest('.menu').toggle('visible'); }); - $('.code-view .lines-code,.code-view .lines-num') - .on('mouseenter', function () { - const parent = $(this).closest('td'); - $(this).closest('tr').addClass( - parent.hasClass('lines-num-old') || parent.hasClass('lines-code-old') ? 'focus-lines-old' : 'focus-lines-new' - ); - }) - .on('mouseleave', function () { - $(this).closest('tr').removeClass('focus-lines-new focus-lines-old'); - }); $('.add-code-comment').on('click', function (e) { if ($(e.target).hasClass('btn-add-single')) return; // https://github.com/go-gitea/gitea/issues/4745 e.preventDefault(); |