File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ var imageOrder = []; // names of slices ordered by their openseadrago
8
8
var currentImage = undefined ; // name of the current image
9
9
var prevImage = undefined ; // name of the last image
10
10
var region = null ; // currently selected region (one element of Regions[])
11
+ var prevColoredRegion = null ; // previous region in annotation style dialog
11
12
var copyRegion ; // clone of the currently selected region for copy/paste
12
13
var handle ; // currently selected control point or handle (if any)
13
14
var selectedTool ; // currently selected tool
@@ -119,6 +120,7 @@ function selectRegion(reg) {
119
120
if ( ImageInfo [ currentImage ] [ "Regions" ] [ i ] == reg ) {
120
121
reg . path . selected = true ;
121
122
reg . path . fullySelected = true ;
123
+ prevColoredRegion = region ;
122
124
region = reg ;
123
125
} else {
124
126
ImageInfo [ currentImage ] [ "Regions" ] [ i ] . path . selected = false ;
@@ -873,6 +875,9 @@ function annotationStyle( reg ) {
873
875
if ( $ ( '#colorSelector' ) . css ( 'display' ) == 'none' ) {
874
876
$ ( '#colorSelector' ) . css ( 'display' , 'block' ) ;
875
877
}
878
+ else if ( prevColoredRegion !== reg ) {
879
+ $ ( '#colorSelector' ) . css ( 'display' , 'block' ) ;
880
+ }
876
881
else {
877
882
$ ( '#colorSelector' ) . css ( 'display' , 'none' ) ;
878
883
}
You can’t perform that action at this time.
0 commit comments