File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1422,7 +1422,7 @@ function initDiffEditor(editorId) {
14221422 } ) ;
14231423
14241424 const selected = select [ 0 ] . options [ select [ 0 ] . selectedIndex ] ;
1425- if ( selected && selected . dataset . tag ) {
1425+ if ( ! select [ 0 ] . disabled && selected && selected . dataset . tag ) {
14261426 setDiffTag ( selected . dataset . tag ) ;
14271427 }
14281428
Original file line number Diff line number Diff line change 2626 {% endif %}
2727 <div class =" btn-group" >
2828 <a href =" #" role =" button" class =" btn btn-secondary btn-sm pe-none" aria-disabled =" true" ><i class =" fas fa-code-branch" ></i ></a >
29- <select class =" diff-select btn btn-secondary btn-sm form-select-sm text-start" aria-label =" Submission to diff against" >
29+ <select class =" diff-select btn btn-secondary btn-sm form-select-sm text-start" aria-label =" Submission to diff against" {%- if otherSubmissions is empty %} disabled = " true " aria-disabled = " true " {%- endif %} >
3030 <option value =" " data-tag =" no-diff" >No diff</option >
3131 {%- for other in otherSubmissions %}
3232 <option value =" {{ other .submitid }}" data-url =" {{ path(' jury_submission' , {submitId : other .submitid }) }}" {%- if other .tag %} data-tag =" {{ other .tag }}" {%- endif %}>
You can’t perform that action at this time.
0 commit comments