Bug fixing: nonTarget tool rendering problem when measurements of a row are activated

This commit is contained in:
Evren Ozkan committed 2015-11-09 11:49:31 -05:00
1 parent 3c8c212416
commit 1e61e487c0
5 files changed
+96 -88

No files matched your search

@@ -12,17 +12,16 @@ function nonTargetToolAdded(e, eventData, lesionData) {
// location is selected and disable select location in dialog
lesionData.locationUID = locationUID;
var locationName = measurementManagerDAL.getLocationName(locationUID);
var locationIndex;
$("#selectNonTargetLesionLocation option").each(function()
{
if ($(this).text() === locationName) {
locationIndex = $(this).index();
// Select location in locations dropdown list
$("#selectNonTargetLesionLocation option").eq($(this).index()).attr("selected", "selected");
return;
}
});
// Select location in locations dropdown list
$("#selectNonTargetLesionLocation option").eq(locationIndex).attr("selected", "selected");
$("#selectNonTargetLesionLocation").attr("disabled", "disabled");
} else{
@@ -30,7 +29,7 @@ function nonTargetToolAdded(e, eventData, lesionData) {
$("#selectNonTargetLesionLocation").removeAttr("disabled");
}
// Save lesionData in Session to use after location and response are selected in nonTargetLesionDialog
// Save lesionData in Session to use after location and response are selected
Session.set("nonTargetLesionData", lesionData);
var dialogPointsOnPage = eventData.currentPoints.page;
@@ -81,6 +80,7 @@ function updateLesions(e) {
if(!isTarget) {
$(element).trigger("nonTargetToolModified", eventData);
return;
}
$(element).trigger("LesionToolModified", eventData);
@@ -1,6 +1,6 @@
<template name="lesionTableRow">
<tr id="{{lesionNumber}}" class="lesionTableRow">
<td class='lesionNumber'>{{lesionNumber}}</td>
<td class='lesionNumber'>{{number}}</td>
<td class='location'>{{location}}</td>
<td class='target'>{{#if isTarget}} Y {{else}} N {{/if}}</td>
<!--Each time point as a column-->