fix for end_time less than start_time

This commit is contained in:
Atul Pratap Singh 2012-09-20 23:50:36 +05:30
parent 05fe6108c5
commit 91330c5b31

View File

@ -1213,6 +1213,11 @@ $(function() {
return;
selectionTimeDiff.push(datapos.xaxis);
if(selectionTimeDiff[1] < selectionTimeDiff[0]) {
selectionTimeDiff = [];
return;
}
//get date from timestamp
var min = new Date(Math.ceil(selectionTimeDiff[0]));
var max = new Date(Math.ceil(selectionTimeDiff[1]));