From 7a00cfd1c1852c600c75adc2b04e0a5bf296b6fb Mon Sep 17 00:00:00 2001 From: Richard Wall Date: Sun, 11 Jul 2010 08:39:09 +0100 Subject: improved timerange chooser - still needs plot selection and drop down calendars enabling --- index.html | 33 ++++++++++++++++++++++++++------- 1 file changed, 26 insertions(+), 7 deletions(-) (limited to 'index.html') diff --git a/index.html b/index.html index cec632a..0e285e2 100644 --- a/index.html +++ b/index.html @@ -112,10 +112,20 @@ }); // Initialise all the charts - cc.reset(); + cc.init(); } $(function() { + // Add dhtml calendars to the date input fields + /* + $(":date").dateinput({format: 'mmm dd yyyy', max: +1}); + $(":date[name=startTime]").data("dateinput").change(function() { + $(":date[name=endTime]").data("dateinput").setMin(this.getValue(), true); + }); + $(":date[name=endTime]").data("dateinput").change(function() { + $(":date[name=startTime]").data("dateinput").setMax(this.getValue(), true); + }); + */ // Setup dhtml tabs $(".css-tabs").tabs(".css-panes > div", {history: true}); @@ -127,18 +137,27 @@ // A static json file containing a list of rrd urls $.getJSON('rrd_list.json', initialiseCharts); + }); -
+
- - - - - + + + + + + + + + + +
-- cgit v1.2.3-2-g168b