summaryrefslogtreecommitdiff
path: root/jarmon.js
diff options
context:
space:
mode:
authorRichard Wall <richard@aziz>2010-07-11 13:31:46 +0100
committerRichard Wall <richard@aziz>2010-07-11 13:31:46 +0100
commit883063cbaedce812694b0608630c93d49cd51bb3 (patch)
tree6b8747476daccd83c753ba57cd5ea0ab8407c19c /jarmon.js
parenta3d0b1df27a7498a24b36bb805a3f515869f5fdd (diff)
draw the graphs when page is first loaded
Diffstat (limited to 'jarmon.js')
-rw-r--r--jarmon.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/jarmon.js b/jarmon.js
index c9fbdde..200211a 100644
--- a/jarmon.js
+++ b/jarmon.js
@@ -606,7 +606,9 @@ jarmon.Chart.STACKED_OPTIONS = {
// A selection of useful time ranges
jarmon.timeRangeShortcuts = [
['last hour', function(now) { return [now-60*60*1000*1, now]; }],
- ['last six hours', function(now) { return [now-60*60*1000*6, now]; }],
+ ['last 3 hours', function(now) { return [now-60*60*1000*3, now]; }],
+ ['last 6 hours', function(now) { return [now-60*60*1000*6, now]; }],
+ ['last 12 hours', function(now) { return [now-60*60*1000*12, now]; }],
['last day', function(now) { return [now-60*60*1000*24, now]; }],
['last week', function(now) { return [now-60*60*1000*24*7, now]; }],
['last month', function(now) { return [now-60*60*1000*24*31, now]; }],
@@ -827,6 +829,7 @@ jarmon.ChartCoordinator.prototype.init = function() {
this.ui.find('[name="tzoffset"]').val(tzoffset);
// Default to 1 hour
- this.ui.find('[name="from_standard"]').val('last hour');
+ this.ui.find('[name="from_standard"]').val('last 3 hours');
+ this.update();
};