Bug fixing: Non-Target lesion in lesion table
location dropdown list in nonTargetLesionDialog is disabled if lesionNumber exists
This commit is contained in:
1 parent
db21685473
commit
3c8c212416
2 files changed
+18
-9
No files matched your search
@@ -96,8 +96,6 @@ Template.nonTargetLesionDialog.events({
|
||||
},
|
||||
|
||||
'click button#nonTargetLesionOK': function() {
|
||||
// Set activeModule parameters in index.html
|
||||
$("#nonTargetLesionLocationDialog").modal("hide");
|
||||
|
||||
var lesionData = Session.get("nonTargetLesionData");
|
||||
// Get selected location data
|
||||
@@ -108,7 +106,13 @@ Template.nonTargetLesionDialog.events({
|
||||
// Get selected location data
|
||||
var locationObj = lesionLocationsArray[selectedLocationIndex];
|
||||
lesionData.location = $("#selectNonTargetLesionLocation :selected").text();
|
||||
lesionData.measurementText = $("#selectNonTargetLesionLocationResponse").val();
|
||||
|
||||
var response = $("#selectNonTargetLesionLocationResponse").val();
|
||||
if(response === "-1") {
|
||||
return;
|
||||
}
|
||||
$("#nonTargetLesionLocationDialog").modal("hide");
|
||||
lesionData.measurementText = response;
|
||||
|
||||
// Select first option
|
||||
$("#selectNonTargetLesionLocation").val($("#selectNonTargetLesionLocation option:first").val());
|
||||
@@ -119,12 +123,10 @@ Template.nonTargetLesionDialog.events({
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
// Adds location data to trialPatientLocations array and returns locationUID
|
||||
var locationUID = measurementManagerDAL.addNewLocation(locationObj);
|
||||
// Linkk locationUID with activeLesionMeasurementData
|
||||
// Link locationUID with activeLesionMeasurementData
|
||||
lesionData.locationUID = locationUID;
|
||||
|
||||
measurementManagerDAL.addLesionData(lesionData);
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user