summaryrefslogtreecommitdiff
path: root/jarmon.js
diff options
context:
space:
mode:
authorRichard Wall <richard@aziz>2010-07-11 08:59:39 +0100
committerRichard Wall <richard@aziz>2010-07-11 08:59:39 +0100
commit537a99f97d79a570f26cba63f50b12a882f78042 (patch)
tree2bc85b4c3e61916e2e4c7fb27207bf5e555f8e30 /jarmon.js
parent7a00cfd1c1852c600c75adc2b04e0a5bf296b6fb (diff)
re-instate plot selection
Diffstat (limited to 'jarmon.js')
-rw-r--r--jarmon.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/jarmon.js b/jarmon.js
index 7b072ca..ec54c91 100644
--- a/jarmon.js
+++ b/jarmon.js
@@ -675,10 +675,12 @@ jarmon.ChartCoordinator = function(ui) {
}
};
- // When a selection is made on the range timeline, redraw all the charts.
+ // When a selection is made on the range timeline, or any of my charts
+ // redraw all the charts.
this.ui.bind("plotselected", function(event, ranges) {
- self.setTimeRange(new Date(ranges.xaxis.from),
- new Date(ranges.xaxis.to));
+ self.ui.find('[name="from_standard"]').val('custom');
+ self.setTimeRange(ranges.xaxis.from, ranges.xaxis.to);
+ self.update();
});
};