Skip to content
This repository has been archived by the owner on Dec 17, 2018. It is now read-only.

Update init.php #737

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions init.php
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ public function register_scripts() {
$scripts[] = 'farbtastic';
$styles[] = 'farbtastic';
}
wp_register_script( 'cmb-checktype', CMB_META_BOX_URL . 'js/checktype.js' );
wp_register_script( 'cmb-datepicker', CMB_META_BOX_URL . 'js/jquery.datePicker.min.js' );
wp_register_script( 'cmb-timepicker', CMB_META_BOX_URL . 'js/jquery.timePicker.min.js' );
wp_register_script( 'cmb-scripts', CMB_META_BOX_URL .'js/cmb'. $min .'.js', $scripts, self::CMB_VERSION );
Expand Down Expand Up @@ -302,6 +303,7 @@ public function do_scripts( $hook ) {
// only enqueue our scripts/styles on the proper pages
if ( $hook == 'post.php' || $hook == 'post-new.php' || $hook == 'page-new.php' || $hook == 'page.php' ) {
wp_enqueue_script( 'cmb-scripts' );
wp_enqueue_script( 'cmb-checktype' );

// default is to show cmb styles on post pages
if ( $this->_meta_box['cmb_styles'] )
Expand Down