When you click on a flag icon, the popup is appended next to it. For a very short time, it causes a visual bug, because the width of .comment-flag
's parent <td>
is 17 pixel by default (before you click on the icon), but the ajax-loading image is 18 pixel wide and has 3-3px padding.
It'd be better to append the popup to <body>
. That would also solve another bug.
When you click on the icon fast twice, you'll see an error message:
You may only attempt to flag this comment every 3 seconds.
Instead of this message, if you click on the same icon, the site shouldn't try to display exactly the same popup, that's useless, and you save 1 ajax request.