show error message on chart if channel not found

This commit is contained in:
Lee Lawlor
2014-10-02 13:59:11 -04:00
parent 4f05d39cfb
commit 0260e5209a
4 changed files with 9 additions and 4 deletions

View File

@ -185,7 +185,12 @@
// draw the chart
var dynamicChart = new Highcharts.Chart(chartOptions);
}); // end getJSON ajax call
// end getJSON success
})
// chained to getjson, on error
.error(function() {
$('#chart-container').html('Invalid Channel.');
});
}); // end document.ready