Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
birm committed Sep 18, 2023
1 parent 49a49f9 commit 15400e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions apps/labeling/pitfalls.html
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,7 @@ <h5 class="modal-title" style="font-size: 1.5rem;">Modal title</h5>
<input type="checkbox" class="pitfalls_check" id="pitfall-16" name="pitfalls" value="Under-staining"> Under-staining </label>
<br>
</div>
<div><label for="comments">Comments:</label><textarea id="comments" style="height: 37px;"></textarea></div>
</div>
</div>
</div>
Expand Down
2 changes: 2 additions & 0 deletions apps/labeling/pitfalls.js
Original file line number Diff line number Diff line change
Expand Up @@ -1125,6 +1125,7 @@ function addROIFormEvent() {
label.properties.percent_stroma = itsRange.value;
label.properties.til_density = vtaRange.value;
label.properties.pitfalls = pitfalls;
label.properties.comments = document.getElementById('comments').value;
label.geometries.features[0].properties.style.color = '#7cfc00'; // overwrite highlight color
label.task = 'roiSelection';
const flileloc = $D.params.data.location.split('/');
Expand Down Expand Up @@ -1370,6 +1371,7 @@ function resetForm() {
document.getElementById('tissue_type_area').style.display = 'none';
document.getElementById('pitfalls_area').style.display = 'none';
document.getElementById('save').style.display = 'none';
document.getElementById('comments').value = "";
}


Expand Down

0 comments on commit 15400e9

Please sign in to comment.