mirror of https://github.com/CIRCL/lookyloo
fix: Wrong URL path
parent
c6d02cdae8
commit
6329e7747f
|
@ -82,7 +82,7 @@ function getBB(selection) {
|
||||||
};
|
};
|
||||||
|
|
||||||
function urlnode_click(d) {
|
function urlnode_click(d) {
|
||||||
var url = "tree/url/" + d.data.uuid;
|
var url = "/tree/url/" + d.data.uuid;
|
||||||
d3.blob(url, {credentials: 'same-origin'}).then(function(data) {
|
d3.blob(url, {credentials: 'same-origin'}).then(function(data) {
|
||||||
saveAs(data, 'file.zip');
|
saveAs(data, 'file.zip');
|
||||||
});
|
});
|
||||||
|
@ -94,9 +94,6 @@ d3.selection.prototype.moveToFront = function() {
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// What happen when clicking on a domain (load a modal display)
|
// What happen when clicking on a domain (load a modal display)
|
||||||
function hostnode_click(d) {
|
function hostnode_click(d) {
|
||||||
// Move the node to the front (end of the list)
|
// Move the node to the front (end of the list)
|
||||||
|
@ -160,7 +157,7 @@ function hostnode_click(d) {
|
||||||
.append('text')
|
.append('text')
|
||||||
.attr('id', 'overlay_close_' + d.data.uuid)
|
.attr('id', 'overlay_close_' + d.data.uuid)
|
||||||
.attr('height', overlay_header_height)
|
.attr('height', overlay_header_height)
|
||||||
.attr('x', left_margin + 500)
|
.attr('x', left_margin + 500) // Value updated based on the size of the rectangle max: max_overlay_width
|
||||||
.attr('y', top_margin + 25)
|
.attr('y', top_margin + 25)
|
||||||
.style("font-size", overlay_header_height - 20)
|
.style("font-size", overlay_header_height - 20)
|
||||||
.text('\u2716')
|
.text('\u2716')
|
||||||
|
|
Loading…
Reference in New Issue