diff --git a/src/ui/heat_map.js b/src/ui/heat_map.js index 3cf97ee3c899fe6e14d5efaa98c89b40635fc18c..dcabbf986a9485bb7d7e5416f1f1b46134bbddd7 100644 --- a/src/ui/heat_map.js +++ b/src/ui/heat_map.js @@ -180,6 +180,8 @@ morpheus.HeatMap = function (options) { width: undefined, // set the available width for the // heat map. If not // set, it will be determined automatically + /** Whether to focus this tab */ + focus: true, inheritFromParent: true, inheritFromParentOptions: { transpose: false @@ -309,7 +311,7 @@ morpheus.HeatMap = function (options) { rename: true, title: this.options.name, object: this, - focus: true + focus: this.options.focus }); if (options.$loadingImage) { options.$loadingImage.appendTo(this.$content); @@ -388,7 +390,9 @@ morpheus.HeatMap = function (options) { options.loadedCallback(_this); } - _this.tabManager.setActiveTab(tab.id); + if (_this.options.focus) { + _this.tabManager.setActiveTab(tab.id); + } _this.$el.trigger('heatMapLoaded', _this); }; if (morpheus.Util.isArray(options.dataset)) {