Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAtul Pratap Singh <atulpratapsingh05@gmail.com>2013-01-27 19:18:07 +0400
committerAtul Pratap Singh <atulpratapsingh05@gmail.com>2013-01-27 19:18:07 +0400
commiteffd5a3cce297617f88accc021b8af32b13234d5 (patch)
tree2ea701cff8e66652d6eddfe8178d33ae5e0b9c5d /js/tbl_chart.js
parentfcc51cea40eac1a0118f730c913450f332833eca (diff)
Show error messages when unable to display chart
Diffstat (limited to 'js/tbl_chart.js')
-rw-r--r--js/tbl_chart.js6
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() {