Skip to content

Commit

Permalink
when to show sliders, 2
Browse files Browse the repository at this point in the history
  • Loading branch information
birm committed Oct 6, 2023
1 parent bb2f4f8 commit 19433f9
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions apps/labeling/roiSelection.js
Original file line number Diff line number Diff line change
Expand Up @@ -1278,18 +1278,14 @@ function makeFormReactive() {
// hide save button
document.getElementById('save').style.display = 'none';
if (e.target.value == 'Evaluable for sTILs') {
// show sliders when evaluable
//document.getElementById('sliders').style.display = 'none';
//document.getElementById('vta').style.display = 'none';
//document.getElementById('til_message').style.display = 'none';
// tissue types 1 and 2 enable, 3 and 4 disable
document.getElementById('tt_radio_1').disabled = false;
document.getElementById('tt_radio_2').disabled = false;
document.getElementById('tt_radio_3').disabled = true;
document.getElementById('tt_radio_4').disabled = true;
} else {
// hide sliders when not evaluable
// document.getElementById('sliders').style.display = 'none';
document.getElementById('sliders').style.display = 'none';
// tissue types 1 and 2 disable, 3 and 4 enaable
document.getElementById('tt_radio_1').disabled = true;
document.getElementById('tt_radio_2').disabled = true;
Expand All @@ -1303,8 +1299,8 @@ function makeFormReactive() {
tt.addEventListener('change', function(e) {
disableITS();
disableTIL();
disableSaveBtn();
if (tt.dataset.showPitfalls){
enableSaveBtn();
// show pitfalls
document.getElementById('pitfalls_area').style.display = 'block';
// show save button
Expand All @@ -1316,6 +1312,8 @@ function makeFormReactive() {
}
} else {
enableITS();
disableSaveBtn();
document.getElementById('sliders').style.display = 'block';
document.getElementById('pitfalls_area').style.display = 'none';
}
});
Expand Down

0 comments on commit 19433f9

Please sign in to comment.