summaryrefslogtreecommitdiff
path: root/html
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2006-01-21 19:30:43 +0000
committerStef Walter <stef@memberwebs.com>2006-01-21 19:30:43 +0000
commitec327cbb34922c125c3dac2c4757af380200f44a (patch)
tree87598efdde7cd7c0e3b584b9f8af9782f43fc5a0 /html
parent00e5df0f96a713060e5839f80b9b4fa6f562b0c3 (diff)
Enhancements to the time span selector.
Diffstat (limited to 'html')
-rw-r--r--html/frame.html3
-rw-r--r--html/rrdui.js4
2 files changed, 5 insertions, 2 deletions
diff --git a/html/frame.html b/html/frame.html
index a5e9735..3c9aae8 100644
--- a/html/frame.html
+++ b/html/frame.html
@@ -21,12 +21,13 @@
<!-- Date selection drop down -->
<div id="goto">
- <select id="goto-select" size="6">
+ <select id="goto-select" size="8">
<option value="1800:0">Last 30 Minutes</option>
<option value="3600:0">Last Hour</option>
<option value="10800:0">Last 3 Hours</option>
<option value="21600:0">Last 6 Hours</option>
<option value="86400:0">Last Day</option>
+ <option value="172800:86400">Yesterday</option>
<option value="259200:0">Last 3 Days</option>
<option value="604800:0">Last Week</option>
<option value="1209600:0">Last 2 Weeks</option>
diff --git a/html/rrdui.js b/html/rrdui.js
index f71a8a3..ad056d5 100644
--- a/html/rrdui.js
+++ b/html/rrdui.js
@@ -406,7 +406,7 @@ function actionGoto(img, act)
/* Display the selection thingy */
var got = gdoc.getElementById("goto");
- /* TODO: Make 120/170 a constant */
+ /* TODO: Make numbers constants */
got.style.top = img.offsetTop + 40;
got.style.left = (img.offsetLeft + img.width) - 160;
got.style.width = 120;
@@ -415,6 +415,8 @@ function actionGoto(img, act)
var sel = gdoc.getElementById("goto-select");
sel.onchange = actionGotoChange;
sel._img = img;
+ sel.value = null;
+ sel.selectedIndex = -1;
}
function actionGotoCancel()