wip datepicker, added an intercepter to the originale function to get the arguments

This commit is contained in:
asus
2024-04-20 21:14:36 +02:00
parent 70b2afe577
commit 51097aa0de
2 changed files with 30 additions and 11 deletions

View File

@@ -37,9 +37,9 @@ jquery date picker :
function add_form_builder_dates_patch() {
$handle = 'form_builder_dates_patch';
$url = Fbpatch::root_url() . '/js/dates.js';
$dependencies = array();
$dependencies = array('jquery-ui-datepicker');
$version = null;
$defer = true;
$defer = false;
wp_enqueue_script($handle, $url, $dependencies, $version, $defer);
}
add_action('wp_enqueue_scripts', __NAMESPACE__.'\add_form_builder_dates_patch', 22);