Skip to content

Commit

Permalink
= 4.2.6.9.3 =
Browse files Browse the repository at this point in the history
~ Added: source tom-select.min.css
~ Comment load select2 somewhere.
  • Loading branch information
tungnxt89 committed Aug 2, 2024
1 parent 810eb65 commit 0e3695e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions assets/src/css/vendor/tom-select.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions inc/admin/class-lp-admin-assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ protected function _get_scripts(): array {
'dropdown-pages',
'wp-api-fetch',
//'jquery-ui-timepicker-addon',
'select2'
//'select2'
),
array(
LP_LESSON_CPT,
Expand Down Expand Up @@ -253,7 +253,7 @@ protected function _get_scripts(): array {
),*/
'lp-setup' => new LP_Asset_Key(
$this->url( 'js/dist/admin/pages/setup' . self::$_min_assets . '.js' ),
array( 'jquery', 'dropdown-pages', 'select2' ),
array( 'jquery', 'dropdown-pages' ),
array( 'lp-page-setup' ),
0,
1
Expand Down Expand Up @@ -404,7 +404,7 @@ protected function _get_styles(): array {
array(
'wp-color-picker',
'wp-components',
'select2',
//'select2',
//'jquery-ui',
//'jquery-ui-timepicker',
// 'font-awesome',
Expand All @@ -420,7 +420,7 @@ protected function _get_styles(): array {
0
),
'lp-tom-select' => new LP_Asset_Key(
'https://cdn.jsdelivr.net/npm/tom-select@2.2.3/dist/css/tom-select.css',
$this->url( 'src/css/vendor/tom-select.min.css' ),
[],
[],
0
Expand Down
2 changes: 1 addition & 1 deletion inc/admin/views/meta-boxes/fields/radio.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function output( $thepostid ) {
$field['name'] = isset( $field['name'] ) ? $field['name'] : $field['id'];
$field['desc_tip'] = isset( $field['desc_tip'] ) ? $field['desc_tip'] : false;

$dependency_check = $extra['dependency'] ?? [];
$dependency_check = $this->extra['dependency'] ?? [];
if ( ! empty( $dependency_check ) ) {
if ( $dependency_check['is_disable'] ) {
$field['wrapper_class'] .= ' lp-option-disabled';
Expand Down

0 comments on commit 0e3695e

Please sign in to comment.