Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Context menus for comments, add quote reply #9043

Merged
merged 12 commits into from
Nov 19, 2019
Prev Previous commit
Next Next commit
Use jQuery closest
Signed-off-by: jolheiser <john.olheiser@gmail.com>
jolheiser committed Nov 18, 2019
commit f65d1ece20709244ddd8b1112ab61cd264b8add7
2 changes: 1 addition & 1 deletion public/js/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/js/index.js.map

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions web_src/js/index.js
Original file line number Diff line number Diff line change
@@ -741,9 +741,7 @@ function initRepository() {

let $content;
if ($(this).hasClass('quote-reply-diff')) {
const $parent = $(this)
.parent().parent().parent().parent().parent()
.parent().parent().parent().parent();
const $parent = $(this).closest('.comment-code-cloud');
$parent.find('button.comment-form-reply').click();
$content = $parent.find('[name="content"]');
} else {