diff options
author | silverwind <me@silverwind.io> | 2020-06-11 00:16:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-10 18:16:35 -0400 |
commit | a05a30c1c18186519002b1367bcd74512a08b89b (patch) | |
tree | b28f14edc341be8e32a3d9b3640587d1eaceee34 /modules | |
parent | 8ffc0ed13ffc25bf54e7a2cd46c8aaca0cbbea45 (diff) | |
download | gitea-a05a30c1c18186519002b1367bcd74512a08b89b.tar.gz gitea-a05a30c1c18186519002b1367bcd74512a08b89b.zip |
Don't add same line code comment box twice (#11837)
* Don't add same line code comment box twice
Clicking the same '+' button multiple times adds multiple comment boxes
to the same line. Prevent this by assigning a unique key to each comment
box and checking if it already exists in the DOM.
Also cleaned up the code around this a bit.
* Update web_src/js/index.js
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: techknowlogick <matti@mdranta.net>
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'modules')
0 files changed, 0 insertions, 0 deletions