From 629370fc7479f5de3506efc0df40692bfaad709b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Thu, 5 Oct 2017 17:38:35 +0200 Subject: [PATCH] Cleanup --- lookyloo/__init__.py | 2 +- lookyloo/static/tree.js | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/lookyloo/__init__.py b/lookyloo/__init__.py index fb335654..79728646 100644 --- a/lookyloo/__init__.py +++ b/lookyloo/__init__.py @@ -46,7 +46,7 @@ def load_tree(report_dir): ct = CrawledTree(har_files) ct.find_parents() ct.join_trees() - temp = tempfile.NamedTemporaryFile(delete=False) + temp = tempfile.NamedTemporaryFile(prefix='lookyloo', delete=False) pickle.dump(ct, temp) temp.close() session["tree"] = temp.name diff --git a/lookyloo/static/tree.js b/lookyloo/static/tree.js index e9e731b0..3ebfb857 100644 --- a/lookyloo/static/tree.js +++ b/lookyloo/static/tree.js @@ -37,7 +37,8 @@ var background = init.append('rect') .on('click', function(d) { hostnode_tooltip.transition() .duration(500) - .style("opacity", 0); + .style("opacity", 0) + .style("z-index", -10); }); // append the svg object to the body of the page @@ -100,6 +101,7 @@ function hostnode_click(d) { hostnode_tooltip.transition() .duration(200) .style("opacity", .9) + .style("z-index", 1) .style("left", (pageX) + "px") .style("top", (pageY - 28) + "px"); var list = hostnode_tooltip.append('ul') @@ -109,8 +111,8 @@ function hostnode_click(d) { var entry = list.append('li') .attr("class", "list-group-item") .attr("url_uuid", jdata['uuid']) - .text(jdata['name']) - .on('click', function(){urlnode_click(jdata)}); + .text(jdata['name']); + //.on('click', function(){urlnode_click(jdata)}); }) }); } @@ -407,5 +409,4 @@ function update(source) { } update(d); } - }