0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-26 12:34:35 +01:00
gitea/web_src/js
silverwind a05a30c1c1
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>
2020-06-10 18:16:35 -04:00
..
components
features Replace jquery-datetimepicker with native date input (#11684) 2020-06-10 14:35:27 -04:00
standalone
vendor
index.js Don't add same line code comment box twice (#11837) 2020-06-10 18:16:35 -04:00
jquery.js
publicpath.js
serviceworker.js Fix serviceworker output file and misc improvements (#11562) 2020-05-24 08:36:40 +01:00
utils.js Move tributejs to npm/webpack (#11497) 2020-05-20 22:00:43 -04:00