Fixing child measurements rowItem jumping and data syncing
This commit is contained in:
1 parent
ebcdf80d49
commit
2a724e7080
6 files changed
+40
-18
No files matched your search
+5
-2
@@ -1,6 +1,8 @@
|
||||
import { Template } from 'meteor/templating';
|
||||
import { OHIF } from 'meteor/ohif:core';
|
||||
import { _ } from 'meteor/underscore';
|
||||
import { $ } from 'meteor/jquery';
|
||||
import { OHIF } from 'meteor/ohif:core';
|
||||
import { cornerstone } from 'meteor/ohif:cornerstone';
|
||||
|
||||
Template.measurementTableRow.onCreated(() => {
|
||||
const instance = Template.instance();
|
||||
@@ -43,7 +45,8 @@ Template.measurementTableRow.events({
|
||||
$row.closest('.measurementTableView').find('.measurementTableRow').not($row).removeClass('active');
|
||||
$row.toggleClass('active');
|
||||
|
||||
OHIF.measurements.jumpToRowItem(rowItem, timepoints);
|
||||
const childToolKey = $(event.target).attr('data-child');
|
||||
OHIF.measurements.jumpToRowItem(rowItem, timepoints, childToolKey);
|
||||
},
|
||||
|
||||
'click .js-rename'(event, instance) {
|
||||
|
||||
+2
-10
@@ -1,6 +1,8 @@
|
||||
import { Template } from 'meteor/templating';
|
||||
import { _ } from 'meteor/underscore';
|
||||
import { $ } from 'meteor/jquery';
|
||||
import { OHIF } from 'meteor/ohif:core';
|
||||
import { cornerstone } from 'meteor/ohif:cornerstone';
|
||||
|
||||
Template.measurementTableTimepointCell.helpers({
|
||||
hasDataAtThisTimepoint() {
|
||||
@@ -58,16 +60,6 @@ Template.measurementTableTimepointCell.helpers({
|
||||
});
|
||||
|
||||
Template.measurementTableTimepointCell.events({
|
||||
'click .measurementTableTimepointCell'(event, instance) {
|
||||
if (!instance.data.timepointId) {
|
||||
return;
|
||||
}
|
||||
|
||||
const rowItem = instance.data.rowItem;
|
||||
const timepoints = instance.data.timepoints.get();
|
||||
OHIF.measurements.jumpToRowItem(rowItem, timepoints);
|
||||
},
|
||||
|
||||
'dblclick .measurementTableTimepointCell'(event, instance) {
|
||||
const { rowItem, timepointId } = instance.data;
|
||||
if (!timepointId) return;
|
||||
|
||||
Reference in new issue
Block a user