diff options
author | Atul Pratap Singh <atulpratapsingh05@gmail.com> | 2013-01-27 19:18:07 +0400 |
---|---|---|
committer | Atul Pratap Singh <atulpratapsingh05@gmail.com> | 2013-01-27 19:18:07 +0400 |
commit | effd5a3cce297617f88accc021b8af32b13234d5 (patch) | |
tree | 2ea701cff8e66652d6eddfe8178d33ae5e0b9c5d /js/tbl_chart.js | |
parent | fcc51cea40eac1a0118f730c913450f332833eca (diff) |
Show error messages when unable to display chart
Diffstat (limited to 'js/tbl_chart.js')
-rw-r--r-- | js/tbl_chart.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/js/tbl_chart.js b/js/tbl_chart.js index 1518f04ed4..23034a6a73 100644 --- a/js/tbl_chart.js +++ b/js/tbl_chart.js @@ -203,7 +203,11 @@ function drawChart() { $('select[name="chartXAxis"] option').each(function() { columnNames.push($(this).text()); }); - currentChart = PMA_queryChart(chart_data, columnNames, currentSettings); + try { + currentChart = PMA_queryChart(chart_data, columnNames, currentSettings); + } catch(err) { + PMA_ajaxShowMessage(err.message, false); + } } function getSelectedSeries() { |