- test

parent cafc0efb
...@@ -26,6 +26,6 @@ ...@@ -26,6 +26,6 @@
<?php $this->registerJsFile('/js/jquery.form.js', ['position' => yii\web\View::POS_END ]);?> <?php $this->registerJsFile('/js/jquery.form.js', ['position' => yii\web\View::POS_END ]);?>
<?php $this->registerJsFile('/js/connect-form.js', ['position' => yii\web\View::POS_END ]);?> <?php $this->registerJsFile('/js/connect-form.js', ['position' => yii\web\View::POS_END ]);?>
<?php $this->registerJsFile('/js/prism.js', ['position' => yii\web\View::POS_END ]);?> <?php $this->registerJsFile('/js/prism.js', ['position' => yii\web\View::POS_END ]);?>
<?php // $this->registerJsFile('/plugins/fusioncharts-suite-xt/js/fusioncharts.js', ['position' => yii\web\View::POS_END ]);?> <?php $this->registerJsFile('/plugins/fusioncharts-suite-xt/js/fusioncharts.js', ['position' => yii\web\View::POS_END ]);?>
<?php $this->registerJsFile('/js/custom.js', ['position' => yii\web\View::POS_END ]);?> <?php $this->registerJsFile('/js/custom.js', ['position' => yii\web\View::POS_END ]);?>
\ No newline at end of file
...@@ -109,7 +109,9 @@ $(document).ready(function() { ...@@ -109,7 +109,9 @@ $(document).ready(function() {
}); });
}); });
FusionCharts.ready(function () { if($('#chart-container').length > 0)
{
FusionCharts.ready(function () {
var revenueChart = new FusionCharts({ var revenueChart = new FusionCharts({
type: 'doughnut2d', type: 'doughnut2d',
renderAt: 'chart-container', renderAt: 'chart-container',
...@@ -173,9 +175,12 @@ FusionCharts.ready(function () { ...@@ -173,9 +175,12 @@ FusionCharts.ready(function () {
] ]
} }
}).render(); }).render();
}); });
}
FusionCharts.ready(function () { if($('#chart-container-2').length > 0)
{
FusionCharts.ready(function () {
var revenueChart = new FusionCharts({ var revenueChart = new FusionCharts({
type: 'column2d', type: 'column2d',
renderAt: 'chart-container-2', renderAt: 'chart-container-2',
...@@ -298,4 +303,5 @@ FusionCharts.ready(function () { ...@@ -298,4 +303,5 @@ FusionCharts.ready(function () {
] ]
} }
}).render(); }).render();
}); });
\ No newline at end of file }
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment