File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
templates/repo/issue/view_content Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 363
363
{{end}}
364
364
</div>
365
365
</div>
366
- <div class="dib ml-3">{{$.i18n.Tr "repo.pulls.merge_instruction_hint" | Safe}}</div>
367
- <div class="instruct" style="display:none">
366
+ <div class="instruct dib ml-3">{{$.i18n.Tr "repo.pulls.merge_instruction_hint" | Safe}}</div>
367
+ <div class="instruct content " style="display:none">
368
368
<div class="ui divider"></div>
369
369
<div><h3 class="di">{{$.i18n.Tr "step1"}} </h3>{{$.i18n.Tr "repo.pulls.merge_instruction_step1_desc"}}</div>
370
370
<div class="ui secondary segment">
Original file line number Diff line number Diff line change @@ -1123,6 +1123,7 @@ async function initRepository() {
1123
1123
e . preventDefault ( ) ;
1124
1124
$ ( `.${ $ ( this ) . data ( 'do' ) } -fields` ) . show ( ) ;
1125
1125
$ ( this ) . parent ( ) . hide ( ) ;
1126
+ $ ( '.instruct' ) . hide ( ) ;
1126
1127
} ) ;
1127
1128
$ ( '.merge-button > .dropdown' ) . dropdown ( {
1128
1129
onChange ( _text , _value , $choice ) {
@@ -1136,6 +1137,7 @@ async function initRepository() {
1136
1137
e . preventDefault ( ) ;
1137
1138
$ ( this ) . closest ( '.form' ) . hide ( ) ;
1138
1139
$mergeButton . parent ( ) . show ( ) ;
1140
+ $ ( '.instruct.dib' ) . show ( ) ;
1139
1141
} ) ;
1140
1142
initReactionSelector ( ) ;
1141
1143
}
@@ -1202,7 +1204,7 @@ async function initRepository() {
1202
1204
1203
1205
function initPullRequestMergeInstruction ( ) {
1204
1206
$ ( '.show-instruction' ) . on ( 'click' , ( ) => {
1205
- $ ( '.instruct' ) . toggle ( ) ;
1207
+ $ ( '.instruct.content ' ) . toggle ( ) ;
1206
1208
} ) ;
1207
1209
}
1208
1210
You can’t perform that action at this time.
0 commit comments