Skip to content

Commit 047c39e

Browse files
authored
Fix spelling (#16179)
Co-authored-by: Jonathan Tran <[email protected]>
1 parent 9273601 commit 047c39e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

templates/repo/diff/comment_form.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<input type="hidden" name="diff_start_cid">
1010
<input type="hidden" name="diff_end_cid">
1111
<input type="hidden" name="diff_base_cid">
12-
<div class="ui top tabular menu" {{if not $.hidden}}onload="assingMenuAttributes(this)" {{end}}data-write="write" data-preview="preview">
12+
<div class="ui top tabular menu" {{if not $.hidden}}onload="assignMenuAttributes(this)" {{end}}data-write="write" data-preview="preview">
1313
<a class="active item" data-tab="write">{{$.root.i18n.Tr "write"}}</a>
1414
<a class="item" data-tab="preview" data-url="{{$.root.Repository.APIURL}}/markdown" data-context="{{$.root.RepoLink}}">{{$.root.i18n.Tr "preview"}}</a>
1515
</div>

web_src/js/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1377,7 +1377,7 @@ function initPullRequestReview() {
13771377
}
13781378
$textarea.focus();
13791379
$simplemde.codemirror.focus();
1380-
assingMenuAttributes(form.find('.menu'));
1380+
assignMenuAttributes(form.find('.menu'));
13811381
});
13821382

13831383
const $reviewBox = $('.review-box');
@@ -1435,7 +1435,7 @@ function initPullRequestReview() {
14351435
const data = await $.get($(this).data('new-comment-url'));
14361436
td.html(data);
14371437
commentCloud = td.find('.comment-code-cloud');
1438-
assingMenuAttributes(commentCloud.find('.menu'));
1438+
assignMenuAttributes(commentCloud.find('.menu'));
14391439
td.find("input[name='line']").val(idx);
14401440
td.find("input[name='side']").val(side === 'left' ? 'previous' : 'proposed');
14411441
td.find("input[name='path']").val(path);
@@ -1448,7 +1448,7 @@ function initPullRequestReview() {
14481448
});
14491449
}
14501450

1451-
function assingMenuAttributes(menu) {
1451+
function assignMenuAttributes(menu) {
14521452
const id = Math.floor(Math.random() * Math.floor(1000000));
14531453
menu.attr('data-write', menu.attr('data-write') + id);
14541454
menu.attr('data-preview', menu.attr('data-preview') + id);

0 commit comments

Comments
 (0)