asysmon-res.js.ctrl-aggregated.js Maven / Gradle / Ivy
angular.module('ASysMonApp').controller('CtrlAggregated', function($scope, $log, Rest, escapeHtml) {
$('.button-segment').affix({
offset: {
top: 95
}
});
function reinitTooltips() {
$('.btn').tooltip({
container: 'body',
html: true
});
}
reinitTooltips();
$scope.$watch('isStarted', function() {
$('.btn').tooltip('hide');
setTimeout(reinitTooltips, 0);
});
$scope.expansionModel = {};
$scope.rootLevel = 0;
var nodesByFqn = {};
function initFromResponse(data) {
// $log.log('init from response');
$scope.isStarted = data.isStarted;
$scope.columnDefs = data.columnDefs.reverse();
$scope.traces = data.traces;
$scope.pickedTraces = $scope.traces; //TODO keep selection on 'refresh'
nodesByFqn = {};
initTraceNodes($scope.traces, 0, '');
// $log.log('after init trace nodes');
$scope.totalDataWidth = 0;
for(var i=0; i' + curCol.name + '