2015-10-23 18:21:46 +02:00
|
|
|
Template.lesionDialog.onRendered(function () {
|
2015-10-26 16:04:42 +01:00
|
|
|
// Show Lesion Dialog
|
2015-10-29 13:50:28 +01:00
|
|
|
$(document).on("ShowLesionDialog", function (e, eventData, activeLesionMeasurementData) {
|
|
|
|
|
|
|
|
|
|
var locationUID = measurementManagerDAL.isLesionNumberAdded(activeLesionMeasurementData.lesionNumber);
|
|
|
|
|
|
|
|
|
|
if(locationUID != null) {
|
|
|
|
|
|
|
|
|
|
activeLesionMeasurementData.locationUID = locationUID;
|
2015-10-30 00:05:04 +01:00
|
|
|
measurementManagerDAL.updateTimepointData(activeLesionMeasurementData);
|
2015-10-29 13:50:28 +01:00
|
|
|
}else{
|
|
|
|
|
|
|
|
|
|
// Show Dialog
|
|
|
|
|
var dialogPointsOnPage = eventData.currentPoints.page;
|
|
|
|
|
$("#modal-dialog-container").css({
|
|
|
|
|
"top": dialogPointsOnPage.y,
|
|
|
|
|
"left": dialogPointsOnPage.x
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$("#lesionDialog").modal("show");
|
|
|
|
|
}
|
|
|
|
|
|
2015-10-26 16:04:42 +01:00
|
|
|
});
|
|
|
|
|
});
|
2015-10-23 18:21:46 +02:00
|
|
|
|