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:
Evren Ozkan committed 2015-12-10 15:17:52 -05:00
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);
},
@@ -6,7 +6,6 @@
#dragbar
width: 100%
height: 3px
postion: absolute
top: 0
left: 0
right: 0