dashboard
This commit is contained in:
parent
bc51d5652b
commit
1360d32bb3
|
@ -447,13 +447,11 @@ function woocommerce_dashboard_sales_js() {
|
|||
// Queue scripts
|
||||
$suffix = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '' : '.min';
|
||||
|
||||
wp_register_script( 'woocommerce_dashboard_sales', $woocommerce->plugin_url() . '/assets/js/admin/dashboard_sales'.$suffix.'.js', 'jquery', '1.0' );
|
||||
wp_register_script( 'woocommerce_dashboard_sales', $woocommerce->plugin_url() . '/assets/js/admin/dashboard_sales' . $suffix . '.js', array( 'jquery', 'flot', 'flot-resize' ), '1.0' );
|
||||
wp_register_script( 'flot', $woocommerce->plugin_url() . '/assets/js/admin/jquery.flot'.$suffix.'.js', 'jquery', '1.0' );
|
||||
wp_register_script( 'flot-resize', $woocommerce->plugin_url() . '/assets/js/admin/jquery.flot.resize'.$suffix.'.js', 'jquery', '1.0' );
|
||||
|
||||
wp_localize_script( 'woocommerce_dashboard_sales', 'params', $params );
|
||||
|
||||
wp_print_scripts('flot');
|
||||
wp_print_scripts('flot-resize');
|
||||
wp_print_scripts('woocommerce_dashboard_sales');
|
||||
}
|
Loading…
Reference in New Issue