File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -36,8 +36,12 @@ function setupDicomForm(patients, callback) {
36
36
const value = study . metaData . StudyDescription + " - " + study . metaData . StudyDate
37
37
studySelect . options [ studySelect . options . length ] = new Option ( value , value ) ;
38
38
}
39
+
40
+ if ( studyList . length === 1 ) {
41
+ studySelect . selectedIndex = 1
42
+ studySelect . onchange ( )
43
+ }
39
44
}
40
- patientSelect . onchange ( ) ; // reset in case page is reloaded
41
45
42
46
studySelect . onchange = function ( ) {
43
47
// Remove options
@@ -55,6 +59,11 @@ function setupDicomForm(patients, callback) {
55
59
const value = serie . metaData . SeriesDescription + " - " + serie . metaData . Modality
56
60
serieSelect . options [ serieSelect . options . length ] = new Option ( value , value ) ;
57
61
}
62
+
63
+ if ( serieList . length === 1 ) {
64
+ serieSelect . selectedIndex = 1
65
+ serieSelect . onchange ( )
66
+ }
58
67
}
59
68
60
69
serieSelect . onchange = function ( ) {
@@ -65,6 +74,11 @@ function setupDicomForm(patients, callback) {
65
74
const serie = serieList [ serieId ]
66
75
callback ( serie )
67
76
}
77
+
78
+ if ( patientList . length === 1 ) {
79
+ patientSelect . selectedIndex = 1
80
+ }
81
+ patientSelect . onchange ( ) ; // reset in case page is reloaded
68
82
}
69
83
70
84
export default setupDicomForm ;
You can’t perform that action at this time.
0 commit comments