Remove .js extension from files and remove jqplot plugins which are not deened to be loaded in head of page.
Signed-Off-By: Piyush Vijay <piyushvijay.1997@gmail.com>
This commit is contained in:
parent
f6b5d2d345
commit
0e44376dc8
@ -36,7 +36,8 @@ const PhpToJsFileMapping = {
|
||||
tbl_structure: ['tbl_structure'],
|
||||
tbl_indexes: [],
|
||||
tbl_relation: ['tbl_relation'],
|
||||
tbl_replace: []
|
||||
tbl_replace: [],
|
||||
tbl_chart: ['tbl_chart']
|
||||
};
|
||||
|
||||
const JsFileList = [
|
||||
@ -69,7 +70,8 @@ const JsFileList = [
|
||||
'db_central_columns',
|
||||
'indexes',
|
||||
'tbl_structure',
|
||||
'tbl_relation'
|
||||
'tbl_relation',
|
||||
'tbl_chart'
|
||||
];
|
||||
|
||||
export {
|
||||
|
||||
@ -92,22 +92,7 @@ class TableChartController extends TableController
|
||||
return;
|
||||
}
|
||||
|
||||
$this->response->getHeader()->getScripts()->addFiles(
|
||||
[
|
||||
'chart.js',
|
||||
'tbl_chart.js',
|
||||
'vendor/jqplot/jquery.jqplot.js',
|
||||
'vendor/jqplot/plugins/jqplot.barRenderer.js',
|
||||
'vendor/jqplot/plugins/jqplot.canvasAxisLabelRenderer.js',
|
||||
'vendor/jqplot/plugins/jqplot.canvasTextRenderer.js',
|
||||
'vendor/jqplot/plugins/jqplot.categoryAxisRenderer.js',
|
||||
'vendor/jqplot/plugins/jqplot.dateAxisRenderer.js',
|
||||
'vendor/jqplot/plugins/jqplot.pointLabels.js',
|
||||
'vendor/jqplot/plugins/jqplot.pieRenderer.js',
|
||||
'vendor/jqplot/plugins/jqplot.enhancedPieLegendRenderer.js',
|
||||
'vendor/jqplot/plugins/jqplot.highlighter.js'
|
||||
]
|
||||
);
|
||||
$this->response->getHeader()->getScripts()->addFile('tbl_chart');
|
||||
|
||||
/**
|
||||
* Extract values for common work
|
||||
|
||||
Loading…
Reference in New Issue
Block a user