Hi Mark,

This is a rather complicated answer as there are a lot of layers of complexity.

At the top layer is the DiffReviewableView 
(reviewboard/static/rb/js/diffviewer/views/diffReviewableView.js). This view 
adds a TextCommentRowSelector 
(reviewboard/static/rb/js/textCommentRowSelector.js), which is what adds all 
the event handlers for the actual handling of clicks on the line numbers. The 
actual popup is the responsibility of the DiffCommentBlockView 
(reviewboard/static/rb/js/diffviewer/views/diffCommentBlockView.js), as it is 
triggered by the row selector.

Hope this helps.

Regards,
Barret
> On Oct 5, 2015, at 1:51 PM, mark chang <markmar...@gmail.com> wrote:
> 
> In reviewboard, when you click on a line number, a nice pop up asks you to 
> input "Your comment".
> How is this done in source code?
> Any example of the code?
> thanks
> Mark
> 
> 
> -- 
> Supercharge your Review Board with Power Pack: 
> https://www.reviewboard.org/powerpack/ 
> <https://www.reviewboard.org/powerpack/>
> Want us to host Review Board for you? Check out RBCommons: 
> https://rbcommons.com/ <https://rbcommons.com/>
> Happy user? Let us know! https://www.reviewboard.org/users/ 
> <https://www.reviewboard.org/users/>
> --- 
> You received this message because you are subscribed to the Google Groups 
> "reviewboard" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to reviewboard+unsubscr...@googlegroups.com 
> <mailto:reviewboard+unsubscr...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to