Skip to content

Commit

Permalink
WPCIVIUX-176 Add wp-api-request as a dependency to fullcalendar script
Browse files Browse the repository at this point in the history
  • Loading branch information
agileware-fj authored and agileware-dev committed Nov 5, 2024
1 parent a559e08 commit 3195843
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shortcodes/event/event-fullcalendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public function shortcode_callback( $atts = [], $content = null, $tag = '' ) {
wp_enqueue_script( 'fullcalendar-base', 'https://cdn.jsdelivr.net/combine/npm/[email protected]/main.js', [] );
wp_enqueue_script( 'popper', 'https://unpkg.com/@popperjs/core@2/dist/umd/popper.min.js', [] );
wp_enqueue_script( 'tippy', 'https://unpkg.com/tippy.js@6/dist/tippy-bundle.umd.js', [ 'popper' ] );
wp_enqueue_script( 'ux-fullcalendar', WP_CIVICRM_UX_PLUGIN_URL . WP_CIVICRM_UX_PLUGIN_NAME . '/public/js/event-fullcalendar.js', [ 'fullcalendar-base', 'popper', 'tippy' ] );
wp_enqueue_script( 'ux-fullcalendar', WP_CIVICRM_UX_PLUGIN_URL . WP_CIVICRM_UX_PLUGIN_NAME . '/public/js/event-fullcalendar.js', [ 'fullcalendar-base', 'popper', 'tippy', 'wp-api-request' ] );

$ux_fullcalendar = [
'ajax_url' => get_rest_url(),
Expand Down

0 comments on commit 3195843

Please sign in to comment.