missing jquery-datepicker dependencies
-
the wp_repeater.js script is missing jquery-ui-datepicker dependency, resulting in a error
$element.datepicker is not a functionwp_enqueue_script('gf_repeater', SUPERADDONS_GF_REPEATER_PLUGIN_URL . "libs/wp_repeater.js", array('jquery', 'jquery-ui-datepicker', 'gform_masked_input'), time());should bewp_enqueue_script('gf_repeater', SUPERADDONS_GF_REPEATER_PLUGIN_URL . "libs/wp_repeater.js", array('jquery', 'jquery-ui-datepicker', 'gform_masked_input'), time());
patch for version 3.1.0diff --git a/wp-content/plugins/repeater-for-gravity-forms/add_on.php b/wp-content/plugins/repeater-for-gravity-forms/add_on.php
index e9aa7e82..584e4b64 100644
--- a/wp-content/plugins/repeater-for-gravity-forms/add_on.php
+++ b/wp-content/plugins/repeater-for-gravity-forms/add_on.php
@@ -106,7 +106,7 @@ class Superaddons_Grepeater_Field_Addon extends GFAddOn{
if ( ! wp_script_is( 'gform_masked_input', 'registered' ) ) {
wp_register_script( 'gform_masked_input', SUPERADDONS_GF_REPEATER_PLUGIN_URL . 'libs/jquery.maskedinput.min.js', array( 'jquery' ), '1.3.1', true );
}
- wp_enqueue_script( 'gf_repeater', SUPERADDONS_GF_REPEATER_PLUGIN_URL . "libs/wp_repeater.js", array( 'jquery', 'gform_masked_input' ), time() );
+ wp_enqueue_script('gf_repeater', SUPERADDONS_GF_REPEATER_PLUGIN_URL . "libs/wp_repeater.js", array('jquery', 'jquery-ui-datepicker', 'gform_masked_input'), time());
$check_pro = get_option( '_redmuber_item_1540' );
wp_localize_script( "gf_repeater", "yeeaddons_gf_repeater_data", array( "input_mask" => ( $input_mask ), "pro" => $check_pro ) );
}
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.
