We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ad4b5f commit 3c92bdbCopy full SHA for 3c92bdb
apps/labeling/roiMarking.js
@@ -1131,13 +1131,17 @@ let prevLabel = false
1131
1132
1133
function stopLabeling(){
1134
- if (prevLabel){
1135
- switchLabel(prevLabel)
1136
- $CAMIC.viewer.canvasDrawInstance.drawOff();
1137
- $CAMIC.status = null;
1138
- prevLabel = null;
1139
- }
1140
- saveLabels()
+ const oldSelection = document.getElementsByClassName("selected_button");
+ for (let x of oldSelection){
+ x.classList.remove("selected_button")
+ }
+ if (prevLabel){
+ switchLabel(prevLabel)
+ $CAMIC.viewer.canvasDrawInstance.drawOff();
1141
+ $CAMIC.status = null;
1142
+ prevLabel = null;
1143
1144
+ saveLabels()
1145
}
1146
1147
let meowlabel = {
0 commit comments