aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2020-06-11 00:16:35 +0200
committerGitHub <noreply@github.com>2020-06-10 18:16:35 -0400
commita05a30c1c18186519002b1367bcd74512a08b89b (patch)
treeb28f14edc341be8e32a3d9b3640587d1eaceee34 /modules
parent8ffc0ed13ffc25bf54e7a2cd46c8aaca0cbbea45 (diff)
downloadgitea-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