Bug fixing: The code block which activates first measurement is moved outside of if statement that checks whether toolDataInsertedManually is true.
This commit is contained in:
1 parent
6423751291
commit
a14973be04
3 files changed
+13
-12
No files matched your search
@@ -4,7 +4,10 @@
|
||||
* @param measurementId The unique key for a specific Measurement
|
||||
*/
|
||||
activateLesion = function(measurementId, templateData) {
|
||||
// Find Measurement data for this lesion
|
||||
|
||||
// Set background color of selected row
|
||||
$("tr[data-measurementid="+measurementId+"]").addClass("selectedRow").siblings().removeClass("selectedRow");
|
||||
|
||||
var measurementData = Measurements.findOne(measurementId);
|
||||
|
||||
// If there is no measurement with this ID, stop here
|
||||
@@ -221,9 +224,6 @@ Template.lesionTable.events({
|
||||
// Retrieve the lesion id from the DOM data for this row
|
||||
var measurementId = $(e.currentTarget).data('measurementid');
|
||||
|
||||
// Set background color of selected row
|
||||
$(e.currentTarget).addClass("selectedRow").siblings().removeClass("selectedRow");
|
||||
|
||||
activateLesion(measurementId,template.data);
|
||||
},
|
||||
|
||||
|
||||
Reference in new issue
Block a user