Skip to content

Commit

Permalink
fix(admin-scripts): store header template settings js not working fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
sabbir1991 committed Apr 28, 2018
1 parent abd33ac commit 1b70d0c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion includes/admin/class-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,9 @@ public function settings_script() {
wp_enqueue_style( 'jquery-ui' );
wp_enqueue_style( 'dokan-chosen-style' );

wp_enqueue_script( 'dokan-tooltip' );
wp_enqueue_script( 'dokan-admin' );

do_action( 'dokan_enqueue_admin_dashboard_script' );
}

Expand Down Expand Up @@ -237,7 +240,7 @@ function admin_menu() {
if ( current_user_can( $capability ) ) {
$submenu[ $slug ][] = array( __( '<span style="color:#f18500">Help</span>', 'dokan-lite' ), $capability, 'admin.php?page=' . $slug . '#/help' );
}
// add_submenu_page( 'dokan', __( 'Help', 'dokan-lite' ), __( '<span style="color:#f18500">Help</span>', 'dokan-lite' ), $capability, 'dokan-help', array( $this, 'help_page' ) );

$settings = add_submenu_page( 'dokan', __( 'Settings', 'dokan-lite' ), __( 'Settings', 'dokan-lite' ), $capability, 'dokan-settings', array( $this, 'settings_page' ) );

/**
Expand Down

0 comments on commit 1b70d0c

Please sign in to comment.