]> source.dussan.org Git - gitea.git/commitdiff
Fix spelling (#16179)
authorJonathan Tran <jonnytran@gmail.com>
Wed, 16 Jun 2021 21:56:43 +0000 (17:56 -0400)
committerGitHub <noreply@github.com>
Wed, 16 Jun 2021 21:56:43 +0000 (23:56 +0200)
Co-authored-by: Jonathan Tran <jon@allspice.io>
templates/repo/diff/comment_form.tmpl
web_src/js/index.js

index e217c4a497d5f5a6217dc66e0759fd9ee0730cdf..9c02c9de15e0c0c8778ece90daa0ba1f9e380c9a 100644 (file)
@@ -9,7 +9,7 @@
                <input type="hidden" name="diff_start_cid">
                <input type="hidden" name="diff_end_cid">
                <input type="hidden" name="diff_base_cid">
-               <div class="ui top tabular menu" {{if not $.hidden}}onload="assingMenuAttributes(this)" {{end}}data-write="write" data-preview="preview">
+               <div class="ui top tabular menu" {{if not $.hidden}}onload="assignMenuAttributes(this)" {{end}}data-write="write" data-preview="preview">
                        <a class="active item" data-tab="write">{{$.root.i18n.Tr "write"}}</a>
                        <a class="item" data-tab="preview" data-url="{{$.root.Repository.APIURL}}/markdown" data-context="{{$.root.RepoLink}}">{{$.root.i18n.Tr "preview"}}</a>
                </div>
index e42a6640151ab86d4fc5d3c818696806ae32e75c..29203568a5a73b5eee3343dbd2e55cd37b5bd6db 100644 (file)
@@ -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);