summaryrefslogtreecommitdiff
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
parent6faca697f9b2c0f09e6a233fb853363c16501395 (diff)
Some cleanup for the timespan selector.
-rw-r--r--html/rrdui.js8
-rw-r--r--html/style.css2
2 files changed, 4 insertions, 6 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;
diff --git a/html/style.css b/html/style.css
index bf65862..7ff1ed7 100644
--- a/html/style.css
+++ b/html/style.css
@@ -107,7 +107,7 @@ img.graph
position: absolute;
left: 50px;
top: 50px;
- height: 160px;
+ height: 120px;
display: none;
}