LT-251: Highlighting both quick switches with the selected thumbnail

This commit is contained in:
Bruno Alves de Faria 2016-08-09 17:38:43 -03:00
parent bbcbc93510
commit 610d4f6d4a
2 changed files with 7 additions and 4 deletions

View File

@ -10,7 +10,6 @@ Template.registerHelper('isDisplaySetActive', (displaySetInstanceUid, viewportIn
return;
}
console.warn('>>>>test');
let viewportData;
if (_.isUndefined(viewportIndex)) {
viewportData = layoutManager.viewportData;

View File

@ -21,6 +21,10 @@ LayoutManager = class LayoutManager {
return this.layoutProps.rows * this.layoutProps.columns;
}
updateSession() {
Tracker.afterFlush(() => Session.set('LayoutManagerUpdated', Random.id()));
}
setDefaultViewportData() {
var numViewports = this.getNumberOfViewports();
@ -109,7 +113,7 @@ LayoutManager = class LayoutManager {
$(this.parentNode).html('');
Blaze.renderWithData(layoutTemplate, data, this.parentNode);
Session.set('LayoutManagerUpdated', Random.id());
this.updateSession();
this.isZoomed = false;
}
@ -157,7 +161,7 @@ LayoutManager = class LayoutManager {
// Render and insert the template
Blaze.renderWithData(Template.imageViewerViewport, data, newViewportContainer);
Session.set('LayoutManagerUpdated', Random.id());
this.updateSession();
}
enlargeViewport(viewportIndex) {
@ -191,7 +195,7 @@ LayoutManager = class LayoutManager {
this.zoomedViewportIndex = viewportIndex;
this.viewportData = data.viewportData;
Session.set('LayoutManagerUpdated', Random.id());
this.updateSession();
}
resetPreviousLayout() {