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:
authorTyron Madlener <tyronx@gmail.com>2011-08-10 11:51:42 +0400
committerTyron Madlener <tyronx@gmail.com>2011-08-10 11:51:42 +0400
commite4924833c71a8cc4e55d7291fa826653d7d4504f (patch)
tree9190c624c888abbbf0f192a4a6907eccd4dcba29 /tbl_chart.php
parent03a76e2c74aba8964e9541ee436e77549a3afe21 (diff)
Load flashcanvas.js only for IE version below 9
Diffstat (limited to 'tbl_chart.php')
-rw-r--r--tbl_chart.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/tbl_chart.php b/tbl_chart.php
index 047a7fcac1..6131ff2b3d 100644
--- a/tbl_chart.php
+++ b/tbl_chart.php
@@ -23,6 +23,10 @@ $GLOBALS['js_include'][] = 'tbl_chart.js';
$GLOBALS['js_include'][] = 'highcharts/highcharts.js';
/* Files required for chart exporting */
$GLOBALS['js_include'][] = 'highcharts/exporting.js';
+/* < IE 9 doesn't support canvas natively */
+if(PMA_USR_BROWSER_AGENT == 'IE' && PMA_USR_BROWSER_VER < 9) {
+ $GLOBALS['js_include'][] = 'canvg/flashcanvas.js';
+}
$GLOBALS['js_include'][] = 'canvg/canvg.js';
/**