Skip to content

Commit

Permalink
Remove .tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
eheinrich committed Jun 24, 2019
1 parent 63e3f75 commit 2c4ca56
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 18 deletions.
10 changes: 1 addition & 9 deletions static/js/components/observationhistory.vue
Original file line number Diff line number Diff line change
Expand Up @@ -181,15 +181,7 @@
buildPlot: function () {
// Set a unique name for the plot element, since vis.js needs this to separate plots
this.$el.setAttribute('class', _.uniqueId(this.$el.className));
let plot = new vis.Timeline(document.getElementById('plot'), new vis.DataSet([]), this.options);
let that = this;
plot.on('changed', function () {
//HAX
$(that.$el).find('.vis-group').mouseover(function () {
$(that.$el).find('.vis-item').tooltip({container: 'body', 'placement': 'top'});
});
});
return plot;
return new vis.Timeline(document.getElementById('plot'), new vis.DataSet([]), this.options);
}
}
};
Expand Down
9 changes: 0 additions & 9 deletions static/js/components/telescope_states.vue
Original file line number Diff line number Diff line change
Expand Up @@ -150,15 +150,6 @@
this.$el.setAttribute('class', _.uniqueId(this.$el.className));
let plot = new vis.Timeline(this.$el, new vis.DataSet([]), this.options);
let that = this;
plot.on('changed', function () {
$(that.$el).find('.vis-label').each(function () {
$(this).tooltip({'container': 'body', 'placement': 'top'});
});
//HAX
$(that.$el).find('.vis-group').mouseover(function () {
$(that.$el).find('.vis-item').tooltip({container: 'body'});
});
});
plot.on('rangechanged', function () {
that.$emit('rangechanged', that.plot.getWindow());
});
Expand Down

0 comments on commit 2c4ca56

Please sign in to comment.