Measurements and Timepoint interaction in Lesion Table and tools
This commit is contained in:
1 parent
5363880e40
commit
b49c36493e
15 files changed
+300
-383
No files matched your search
@@ -1,15 +1,15 @@
|
||||
Template.lesionDialog.onRendered(function () {
|
||||
// Show Lesion Dialog
|
||||
$(document).on("ShowLesionDialog", function (e, eventData, activeLesionMeasurementData) {
|
||||
|
||||
var locationUID = measurementManagerDAL.isLesionNumberAdded(activeLesionMeasurementData.lesionNumber);
|
||||
|
||||
if(locationUID != null) {
|
||||
|
||||
activeLesionMeasurementData.locationUID = locationUID;
|
||||
measurementManagerDAL.updateTimepointData(activeLesionMeasurementData);
|
||||
}else{
|
||||
// This event determines whether or not to show the lesion dialog
|
||||
// If there already exists a lesion with this specific lesion number,
|
||||
// related to the chosen location.
|
||||
|
||||
$(document).on("ShowLesionDialog", function (e, eventData, lesionData) {
|
||||
var locationUID = measurementManagerDAL.isLesionNumberAdded(lesionData.lesionNumber);
|
||||
|
||||
if (locationUID) {
|
||||
lesionData.locationUID = locationUID;
|
||||
measurementManagerDAL.updateTimepointData(lesionData);
|
||||
} else {
|
||||
// Show Dialog
|
||||
var dialogPointsOnPage = eventData.currentPoints.page;
|
||||
$("#modal-dialog-container").css({
|
||||
@@ -19,7 +19,6 @@ Template.lesionDialog.onRendered(function () {
|
||||
|
||||
$("#lesionDialog").modal("show");
|
||||
}
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user