From 7fac2370b39efad46a258179c89aa13bf8d13202 Mon Sep 17 00:00:00 2001 From: Carl Friedrich Bolz Date: Wed, 3 Aug 2016 16:33:20 +0200 Subject: [PATCH] unbreak clicking on traces in the forest view (before, clicking on them switched to a non-existing trace type, which means one had to then click on one of the categories again) --- vmlog/static/log/forest.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vmlog/static/log/forest.js b/vmlog/static/log/forest.js index 58a87b3..3100403 100644 --- a/vmlog/static/log/forest.js +++ b/vmlog/static/log/forest.js @@ -199,7 +199,7 @@ TraceForest.prototype.mouse_click_trace = function(){ var jthis = jQuery(this) var trace = jitlog.get_trace_by_id(jthis.data('trace-id')) var $scope = trace_forest.$scope - $scope.switch_trace(trace, $scope.trace_type) + $scope.switch_trace(trace, $scope.$storage.trace_type) } TraceForest.prototype.mouse_enter_trace = function(){ @@ -346,7 +346,7 @@ TraceForest.prototype.display_tree = function($scope, trunk, visual_trace){ if (par) { this.up_layer.on("click", function(){ var trace = jitlog.get_trace_by_id(parseInt(par,16)) - $scope.switch_trace(trace, trace.type) + $scope.switch_trace(trace, $scope.$storage.trace_type) }) this.up_layer.append("svg:circle") .attr("r", 8)