Skip to content

Commit

Permalink
fix(earning-suggession): accounting js does not loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
sabbir1991 committed Apr 23, 2018
1 parent ef5c239 commit 2ab1e74
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions includes/class-assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function enqueue_admin_scripts( $hook ) {
wp_enqueue_style( 'dokan-vue-admin' );

// load vue libraries and bootstrap the app
wp_enqueue_script( 'accounting' );
wp_enqueue_script( 'dokan-accounting' );
wp_enqueue_script( 'dokan-chart' );
wp_enqueue_script( 'dokan-vue-vendor' );
wp_localize_script( 'dokan-vue-vendor', 'dokan', $localize_script );
Expand Down Expand Up @@ -226,10 +226,10 @@ public function get_scripts() {
'dokan-i18n-jed' => array(
'src' => $asset_url . '/vendors/i18n/jed.js',
),
// 'dokan-i18n' => array(
// 'src' => $asset_url . '/vendors/i18n/i18n.js',
// 'deps' => array( 'dokan-i18n-jed' )
// ),
'dokan-accounting' => array(
'src' => WC()->plugin_url() . '/assets/js/accounting/accounting.min.js',
'deps' => array( 'jquery' )
),
'dokan-moment' => array(
'src' => $asset_url . '/vendors/moment/moment.min.js',
),
Expand Down Expand Up @@ -471,6 +471,7 @@ function dokan_dashboard_scripts() {
wp_enqueue_script( 'dokan-chosen' );
wp_enqueue_script( 'dokan-select2-js' );
wp_enqueue_media();
wp_enqueue_script( 'dokan-accounting' );
wp_enqueue_script( 'serializejson' );
wp_enqueue_script( 'dokan-popup' );
wp_enqueue_script( 'wc-password-strength-meter' );
Expand Down

0 comments on commit 2ab1e74

Please sign in to comment.