Commit 8afeed05 authored by jonnybradley's avatar jonnybradley

[UPD] chart.js: Move include to npm-asset and remove redundant clean vendors line

parent e0ef50b3
Pipeline #50506100 failed with stages
in 28 minutes and 26 seconds
......@@ -349,7 +349,6 @@ class CleanVendors
$fs->remove($vendors . 'phpcas/phpcas/CAS-1.3.3/docs');
$fs->remove($vendors . 'jquery/plugins/jquery-json/test');
$fs->remove($vendors . 'chartjs/Chart.js/samples');
//duplicate with mottie/tablesorter
$fs->remove($vendors . 'components/tablesorter');
......
......@@ -137,7 +137,7 @@ function wikiplugin_chartjs($data, $params)
$min = $params['debug'] ? '': 'min.';
TikiLib::lib('header')->add_jsfile("vendor_bundled/vendor/chartjs/Chart.js/Chart.{$min}js")
TikiLib::lib('header')->add_jsfile("vendor_bundled/vendor/npm-asset/chart.js/dist/Chart.bundle.{$min}js")
->add_jq_onready('
setTimeout(function () {
var chartjs_' . $params['id'] . ' = new Chart("' . $params['id'] . '", {
......
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