Made lesion removal confirmation dialogs different for timepoints and complete measurments

This commit is contained in:
Erik Ziegler committed 2016-01-10 15:40:51 +01:00
1 parent a1618438d8
commit a9266608d2
4 files changed
+27 -5

No files matched your search

@@ -238,12 +238,18 @@ Template.lesionLocationDialog.events({
var doneCallback = Template.lesionLocationDialog.doneCallback;
var dialog = Template.lesionLocationDialog.dialog;
var options = {
keyPressAllowed: false,
title: 'Remove measurement?',
text: 'Are you sure you would like to remove the entire measurement?'
};
showConfirmDialog(function() {
if (doneCallback && typeof doneCallback === 'function') {
var deleteTool = true;
doneCallback(measurementData, deleteTool);
}
});
}, options);
closeHandler(dialog);
},