File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 9
9
<input type="hidden" name="diff_start_cid">
10
10
<input type="hidden" name="diff_end_cid">
11
11
<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">
13
13
<a class="active item" data-tab="write">{{$.root.i18n.Tr "write"}}</a>
14
14
<a class="item" data-tab="preview" data-url="{{$.root.Repository.APIURL}}/markdown" data-context="{{$.root.RepoLink}}">{{$.root.i18n.Tr "preview"}}</a>
15
15
</div>
Original file line number Diff line number Diff line change @@ -1377,7 +1377,7 @@ function initPullRequestReview() {
1377
1377
}
1378
1378
$textarea . focus ( ) ;
1379
1379
$simplemde . codemirror . focus ( ) ;
1380
- assingMenuAttributes ( form . find ( '.menu' ) ) ;
1380
+ assignMenuAttributes ( form . find ( '.menu' ) ) ;
1381
1381
} ) ;
1382
1382
1383
1383
const $reviewBox = $ ( '.review-box' ) ;
@@ -1435,7 +1435,7 @@ function initPullRequestReview() {
1435
1435
const data = await $ . get ( $ ( this ) . data ( 'new-comment-url' ) ) ;
1436
1436
td . html ( data ) ;
1437
1437
commentCloud = td . find ( '.comment-code-cloud' ) ;
1438
- assingMenuAttributes ( commentCloud . find ( '.menu' ) ) ;
1438
+ assignMenuAttributes ( commentCloud . find ( '.menu' ) ) ;
1439
1439
td . find ( "input[name='line']" ) . val ( idx ) ;
1440
1440
td . find ( "input[name='side']" ) . val ( side === 'left' ? 'previous' : 'proposed' ) ;
1441
1441
td . find ( "input[name='path']" ) . val ( path ) ;
@@ -1448,7 +1448,7 @@ function initPullRequestReview() {
1448
1448
} ) ;
1449
1449
}
1450
1450
1451
- function assingMenuAttributes ( menu ) {
1451
+ function assignMenuAttributes ( menu ) {
1452
1452
const id = Math . floor ( Math . random ( ) * Math . floor ( 1000000 ) ) ;
1453
1453
menu . attr ( 'data-write' , menu . attr ( 'data-write' ) + id ) ;
1454
1454
menu . attr ( 'data-preview' , menu . attr ( 'data-preview' ) + id ) ;
You can’t perform that action at this time.
0 commit comments