|
@@ -183,6 +183,11 @@
|
|
|
|
|
|
function loadStatisticByDate(dateid){
|
|
function loadStatisticByDate(dateid){
|
|
$.getJSON("/api/analytic/load?id=" + dateid, function(data){
|
|
$.getJSON("/api/analytic/load?id=" + dateid, function(data){
|
|
|
|
+ if (data.error != undefined){
|
|
|
|
+ msgbox(data.error, false, 6000);
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+
|
|
//Destroy all the previous charts
|
|
//Destroy all the previous charts
|
|
statisticCharts.forEach(function(thisChart){
|
|
statisticCharts.forEach(function(thisChart){
|
|
thisChart.destroy();
|
|
thisChart.destroy();
|