Bug fixes for confirmDelete and lesion management
This commit is contained in:
1 parent
5eb8a717cb
commit
4ae0183a9c
6 files changed
+43
-14
No files matched your search
@@ -34,15 +34,22 @@ Template.lesionTableRow.events({
|
||||
},
|
||||
'keydown .location': function(e) {
|
||||
var keyCode = e.which;
|
||||
|
||||
if (keyCode === keys.DELETE ||
|
||||
(keyCode === keys.D && e.ctrlKey === true)) {
|
||||
var currentMeasurement = this;
|
||||
var options = {
|
||||
keyPressAllowed: false
|
||||
};
|
||||
|
||||
showConfirmDialog(function() {
|
||||
Meteor.call("removeMeasurement", currentMeasurement._id, function(error, response) {
|
||||
console.log('Removed!');
|
||||
if (error) {
|
||||
log.warn(error);
|
||||
}
|
||||
log.info(response);
|
||||
});
|
||||
});
|
||||
}, options);
|
||||
}
|
||||
}
|
||||
});
|
||||
Reference in new issue
Block a user