From 5c60b07877f99e22809849dffe756ff44a9b96cb Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Wed, 3 Dec 2014 19:10:41 +0200 Subject: rz_core: rename overlay_click and small cleanup --- src/rz_core.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/rz_core.js b/src/rz_core.js index 0eeb3b78..eaa26f63 100644 --- a/src/rz_core.js +++ b/src/rz_core.js @@ -95,7 +95,7 @@ var initDrawingArea = function () { .attr("height", $(el).innerHeight() * 12) .attr("x", -$(el).innerWidth() * 5) .attr("y", -$(el).innerHeight() * 5); - $('.overlay').click(mousedown); + $('.overlay').click(overlay_mousedown); // SVG rendering order is last rendered on top, so to make sure // all links are below the nodes we group them under a single g @@ -594,11 +594,9 @@ function showInfo(d, i) { update_view__graph(true); } -function mousedown() { - $('.editinfo').css('top', -100); - $('.editinfo').css('left', 0); - $('.editlinkinfo').css('top', -100); - $('.editlinkinfo').css('left', 0); +function overlay_mousedown() { + $('.editinfo').css({top: -100, left: 0}); + $('.editlinkinfo').css({top: -100, left: 0}); selection.clear(); view.hide(); update_view__graph(true); -- cgit v1.3.1