File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 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>
Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments