Commit 235d5d8c authored by joshua-gould's avatar joshua-gould

renamed heatmap.$el

parent 0b887b66
This diff is collapsed.
......@@ -270,8 +270,8 @@ morpheus.HeatMap = function(options) {
}
this.tabManager = this.options.parent.tabManager;
}
this.$el = $('<div></div>');
this.$el.css({
this.$content = $('<div></div>');
this.$content.css({
'width' : '100%',
'user-select' : 'none',
......@@ -297,7 +297,7 @@ morpheus.HeatMap = function(options) {
});
var tab = this.tabManager.add({
$el : this.$el,
$el : this.$content,
closeable : true,
rename : true,
title : this.options.name,
......@@ -305,7 +305,7 @@ morpheus.HeatMap = function(options) {
focus : true
});
if (options.$loadingImage) {
options.$loadingImage.appendTo(this.$el);
options.$loadingImage.appendTo(this.$content);
}
this.tabId = tab.id;
......@@ -314,7 +314,6 @@ morpheus.HeatMap = function(options) {
: (options.dataset.file ? options.dataset.file : options.dataset);
this._togglingInfoWindow = false;
this.tooltipMode = 0; // 0=docked, 1=dialog, 2=follow
this.el = this.$el[0];
var promises = [];
if (options.promises) {
......@@ -373,7 +372,7 @@ morpheus.HeatMap = function(options) {
};
$(window).on('orientationchange resize', resize);
_this.$el.on('remove', function() {
_this.$content.on('remove', function() {
$(window).off('orientationchange resize', resize);
});
}
......@@ -1097,7 +1096,7 @@ morpheus.HeatMap.prototype = {
this.whenLoaded = null;
this.$parent = $('<div></div>').css('position', 'relative');
this.$parent.appendTo(this.$el);
this.$parent.appendTo(this.$content);
this.toolbar = new morpheus.HeatMapToolBar(this);
if (this.options.customUrls) {
this.setCustomUrls(this.options.customUrls);
......
......@@ -134,7 +134,7 @@ morpheus.HeatMapKeyListener = function(controller) {
return false;
}
};
var $keyelement = controller.$el;
var $keyelement = controller.$content;
$keyelement.on('keydown', keydown);
$keyelement.on('dragover.morpheus dragenter.morpheus', function(e) {
e.preventDefault();
......
......@@ -271,7 +271,7 @@ morpheus.HeatMapToolBar = function(controller) {
$search.appendTo($el.find('[name=toolbarSearch]'));
$(toolbarHtml.join('')).appendTo($toolbarForm);
$toolbarForm.appendTo($el.find('[name=toolbarButtons]'));
$el.prependTo(controller.$el);
$el.prependTo(controller.$content);
// gapi.hangout.render('hangout-div', {
// 'widget_size' : '72',
// 'render' : 'createhangout'
......
......@@ -352,9 +352,9 @@ morpheus.VectorTrack.prototype = {
.isRenderAs(morpheus.VectorTrack.RENDER.BAR))) {
if (this.getFullVector().getProperties().has(
morpheus.VectorKeys.FIELDS)
|| _.isNumber(morpheus.VectorUtil.getFirstNonNull(this
.getFullVector()))) {
|| morpheus.VectorUtil.getDataType(this.getFullVector()) === 'number') {
this.settings.discrete = false;
this.settings.highlightMatchingValues = false;
}
this.settings.discreteAutoDetermined = true;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment