show error message on chart if channel not found
This commit is contained in:
1 parent
4f05d39cfb
commit
0260e5209a
4 files changed
+9
-4
No files matched your search
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user