Permalink
Browse files

Relocate and load graph JS files from plugin files dir

Fixes #21669
  • Loading branch information...
syncguru authored and vboctor committed Oct 20, 2016
1 parent 0d00ae9 commit 1496d17f23a27cd18dbf71cce2f71dba61b7c1a7
@@ -110,10 +110,10 @@ function resources() {
html_javascript_cdn_link( 'https://cdnjs.cloudflare.com/ajax/libs/Chart.js/' . CHARTJS_VERSION . '/Chart.min.js', CHARTJS_HASH );
html_javascript_cdn_link( 'https://cdnjs.cloudflare.com/ajax/libs/Chart.js/' . CHARTJS_VERSION . '/Chart.bundle.min.js', CHARTJSBUNDLE_HASH );
} else {
html_javascript_link( 'chart-' . CHARTJS_VERSION . '.min.js' );
html_javascript_link( 'chart.bundle-' . CHARTJS_VERSION . '.min.js' );
echo '<script src="' . plugin_file( 'chart-' . CHARTJS_VERSION . '.min.js' ) . '"></script>';
echo '<script src="' . plugin_file( 'chart.bundle-' . CHARTJS_VERSION . '.min.js' ) . '"></script>';
}
html_javascript_link( '../plugins/MantisGraph/MantisGraph.js' );
echo '<script src="' . plugin_file( "MantisGraph.js" ) . '"></script>';
}
/**

0 comments on commit 1496d17

Please sign in to comment.