summaryrefslogtreecommitdiff
path: root/html/rrdui.js
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2006-01-21 01:48:13 +0000
committerStef Walter <stef@memberwebs.com>2006-01-21 01:48:13 +0000
commit923447867e44268299ded6c3494baec1d4b4d39f (patch)
treec18ad7096625ec109bd5ad377523821b1e0f1ee4 /html/rrdui.js
parent6faca697f9b2c0f09e6a233fb853363c16501395 (diff)
Some cleanup for the timespan selector.
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;