-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Fix reply on code review #10227
Fix reply on code review #10227
Conversation
Codecov Report
@@ Coverage Diff @@
## master #10227 +/- ##
==========================================
- Coverage 43.63% 43.55% -0.09%
==========================================
Files 576 583 +7
Lines 79716 80263 +547
==========================================
+ Hits 34783 34956 +173
- Misses 40635 40969 +334
- Partials 4298 4338 +40
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one question, anyway LGTM
|
||
window.submitReply = function (btn) { | ||
const form = $(btn).closest('form'); | ||
if (form.length > 0 && form.hasClass('comment-form')) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why the class/length checks?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just copied from onCodeReviewClicked. :)
Why not just use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See above.
I have tried that, but it's not work. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Guess I won't block as this is a bugfix, but these form submissions should be cleaned up to work without JS.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes a other pr can minimize js for souch things :)
make L-G-T-M work |
Co-authored-by: zeripath <[email protected]>
Co-authored-by: zeripath <[email protected]> Co-authored-by: zeripath <[email protected]>
Co-authored-by: zeripath <[email protected]>
* Fix branch page pull request title and link error (#10092) * Fix branch page pull request title and link error * Fix ui * Fix reply on code review (#10227) Co-authored-by: zeripath <[email protected]> * Revert unrelated change * Fix lint Co-authored-by: zeripath <[email protected]> Co-authored-by: Lauris BH <[email protected]>
Should fix #9891