summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2014-12-03 19:10:41 +0200
committerAlon Levy <alon@pobox.com>2014-12-04 00:04:38 +0200
commit5c60b07877f99e22809849dffe756ff44a9b96cb (patch)
treeea419261acf4ed2b8c74891ea0974a8b425de9ce
parentee62b20842373d346f467b6e57ea83a2a82c9221 (diff)
rz_core: rename overlay_click and small cleanup
-rw-r--r--src/rz_core.js10
1 files 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);