summaryrefslogtreecommitdiff
path: root/html/rrdui.js
diff options
context:
space:
mode:
Diffstat (limited to 'html/rrdui.js')
-rw-r--r--html/rrdui.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/html/rrdui.js b/html/rrdui.js
index bfb3cf3..f71a8a3 100644
--- a/html/rrdui.js
+++ b/html/rrdui.js
@@ -120,7 +120,7 @@ function displayCurrentPage()
reloadGraph(img);
img.onmousedown = function(evt)
- { return zoomGraphStart(gwindow.event ? gwindow.event : evt); }
+ { actionGotoCancel(); return zoomGraphStart(evt || gwindow.event); }
img.onmouseover = function(evt)
{ return actionsDisplay(gwindow.event ? gwindow.event : evt); }
}
@@ -407,13 +407,11 @@ function actionGoto(img, act)
var got = gdoc.getElementById("goto");
/* TODO: Make 120/170 a constant */
- got.style.top = act.offsetTop;
- got.style.left = (img.offsetLeft + img.width) - 170;
+ got.style.top = img.offsetTop + 40;
+ got.style.left = (img.offsetLeft + img.width) - 160;
got.style.width = 120;
got.style.display = "block";
- img.onmouseclick = actionGotoCancel;
-
var sel = gdoc.getElementById("goto-select");
sel.onchange = actionGotoChange;
sel._img = img;