Commit 52b4b1a8 authored by Romain Loth's avatar Romain Loth

docs view: fix bug on right-side time selector

parent f8485f2e
...@@ -90,7 +90,7 @@ function Final_UpdateTable( action ) { ...@@ -90,7 +90,7 @@ function Final_UpdateTable( action ) {
// console.log("dataini, datafin") // console.log("dataini, datafin")
// console.log(dataini, datafin) // console.log(dataini, datafin)
$.each(AjaxRecords, function(i, node) { $.each(AjaxRecords, function(i, node) {
if (node.date >= dataini && node.date >= dataini) { if (node.date >= dataini && node.date <= datafin) {
// pr( AjaxRecords[i].date+" : "+AjaxRecords[i].id ) // pr( AjaxRecords[i].date+" : "+AjaxRecords[i].id )
TimeRange.push(node); TimeRange.push(node);
} }
...@@ -414,6 +414,8 @@ function Main_test(Data) { ...@@ -414,6 +414,8 @@ function Main_test(Data) {
var chartfilt = chart.filter() var chartfilt = chart.filter()
// tricky part: identifying when the moveChart changes. // tricky part: identifying when the moveChart changes.
if(chartfilt) { if(chartfilt) {
console.log("chart.filter()")
console.log(chart.filter())
Push2Buffer ( chart.filter() ) Push2Buffer ( chart.filter() )
} else { } else {
if(TheBuffer) { if(TheBuffer) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment