diff options
author | Jonathan Tran <jonnytran@gmail.com> | 2021-06-16 17:56:43 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-16 23:56:43 +0200 |
commit | 047c39e91bb39d4f31278d8c4082187894ea8263 (patch) | |
tree | d2fe11a6fb52c91037bd0e203133b57e973fe0c9 /web_src/js | |
parent | 92736010646d4a5cfd3430c6f57bbf4cbd8951da (diff) | |
download | gitea-047c39e91bb39d4f31278d8c4082187894ea8263.tar.gz gitea-047c39e91bb39d4f31278d8c4082187894ea8263.zip |
Fix spelling (#16179)
Co-authored-by: Jonathan Tran <jon@allspice.io>
Diffstat (limited to 'web_src/js')
-rw-r--r-- | web_src/js/index.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/web_src/js/index.js b/web_src/js/index.js index e42a664015..29203568a5 100644 --- a/web_src/js/index.js +++ b/web_src/js/index.js @@ -1377,7 +1377,7 @@ function initPullRequestReview() { } $textarea.focus(); $simplemde.codemirror.focus(); - assingMenuAttributes(form.find('.menu')); + assignMenuAttributes(form.find('.menu')); }); const $reviewBox = $('.review-box'); @@ -1435,7 +1435,7 @@ function initPullRequestReview() { const data = await $.get($(this).data('new-comment-url')); td.html(data); commentCloud = td.find('.comment-code-cloud'); - assingMenuAttributes(commentCloud.find('.menu')); + assignMenuAttributes(commentCloud.find('.menu')); td.find("input[name='line']").val(idx); td.find("input[name='side']").val(side === 'left' ? 'previous' : 'proposed'); td.find("input[name='path']").val(path); @@ -1448,7 +1448,7 @@ function initPullRequestReview() { }); } -function assingMenuAttributes(menu) { +function assignMenuAttributes(menu) { const id = Math.floor(Math.random() * Math.floor(1000000)); menu.attr('data-write', menu.attr('data-write') + id); menu.attr('data-preview', menu.attr('data-preview') + id); |