Version Description
(05-03-19) = * Refix the fix from version 1.4.3 that got unfixed in version 1.5 somehow
Download this release
Release Info
Developer | Jules Colle |
Plugin | Conditional Fields for Contact Form 7 |
Version | 1.5.3 |
Comparing to | |
See all releases |
Code changes from version 1.5.2 to 1.5.3
- contact-form-7-conditional-fields.php +1 -1
- init.php +1 -1
- js/scripts.js +7 -5
- readme.txt +4 -1
contact-form-7-conditional-fields.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Contact Form 7 Conditional Fields
|
|
4 |
Plugin URI: http://bdwm.be/
|
5 |
Description: Adds support for conditional fields to Contact Form 7. This plugin depends on Contact Form 7.
|
6 |
Author: Jules Colle
|
7 |
-
Version: 1.5.
|
8 |
Author URI: http://bdwm.be/
|
9 |
*/
|
10 |
|
4 |
Plugin URI: http://bdwm.be/
|
5 |
Description: Adds support for conditional fields to Contact Form 7. This plugin depends on Contact Form 7.
|
6 |
Author: Jules Colle
|
7 |
+
Version: 1.5.3
|
8 |
Author URI: http://bdwm.be/
|
9 |
*/
|
10 |
|
init.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if (!defined('WPCF7CF_VERSION')) define( 'WPCF7CF_VERSION', '1.5.
|
4 |
if (!defined('WPCF7CF_REQUIRED_WP_VERSION')) define( 'WPCF7CF_REQUIRED_WP_VERSION', '4.1' );
|
5 |
if (!defined('WPCF7CF_PLUGIN')) define( 'WPCF7CF_PLUGIN', __FILE__ );
|
6 |
if (!defined('WPCF7CF_PLUGIN_BASENAME')) define( 'WPCF7CF_PLUGIN_BASENAME', plugin_basename( WPCF7CF_PLUGIN ) );
|
1 |
<?php
|
2 |
|
3 |
+
if (!defined('WPCF7CF_VERSION')) define( 'WPCF7CF_VERSION', '1.5.3' );
|
4 |
if (!defined('WPCF7CF_REQUIRED_WP_VERSION')) define( 'WPCF7CF_REQUIRED_WP_VERSION', '4.1' );
|
5 |
if (!defined('WPCF7CF_PLUGIN')) define( 'WPCF7CF_PLUGIN', __FILE__ );
|
6 |
if (!defined('WPCF7CF_PLUGIN_BASENAME')) define( 'WPCF7CF_PLUGIN_BASENAME', plugin_basename( WPCF7CF_PLUGIN ) );
|
js/scripts.js
CHANGED
@@ -97,11 +97,6 @@ var wpcf7cf = {
|
|
97 |
$group.animate(show_animation, animation_intime).trigger('wpcf7cf_show_group'); // show
|
98 |
}
|
99 |
} else if ($group.css('display') !== 'none' && $group.hasClass('wpcf7cf-hidden')) {
|
100 |
-
if ($group.prop('tagName') === 'SPAN') {
|
101 |
-
$group.hide().trigger('wpcf7cf_hide_group');
|
102 |
-
} else {
|
103 |
-
$group.animate(hide_animation, animation_outtime).trigger('wpcf7cf_hide_group'); // hide
|
104 |
-
}
|
105 |
|
106 |
if ($group.attr('data-clear_on_hide') !== undefined) {
|
107 |
$inputs = $(':input', $group).not(':button, :submit, :reset, :hidden');
|
@@ -110,6 +105,13 @@ var wpcf7cf = {
|
|
110 |
$inputs.change();
|
111 |
//display_fields();
|
112 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
113 |
}
|
114 |
});
|
115 |
|
97 |
$group.animate(show_animation, animation_intime).trigger('wpcf7cf_show_group'); // show
|
98 |
}
|
99 |
} else if ($group.css('display') !== 'none' && $group.hasClass('wpcf7cf-hidden')) {
|
|
|
|
|
|
|
|
|
|
|
100 |
|
101 |
if ($group.attr('data-clear_on_hide') !== undefined) {
|
102 |
$inputs = $(':input', $group).not(':button, :submit, :reset, :hidden');
|
105 |
$inputs.change();
|
106 |
//display_fields();
|
107 |
}
|
108 |
+
|
109 |
+
if ($group.prop('tagName') === 'SPAN') {
|
110 |
+
$group.hide().trigger('wpcf7cf_hide_group');
|
111 |
+
} else {
|
112 |
+
$group.animate(hide_animation, animation_outtime).trigger('wpcf7cf_hide_group'); // hide
|
113 |
+
}
|
114 |
+
|
115 |
}
|
116 |
});
|
117 |
|
readme.txt
CHANGED
@@ -6,7 +6,7 @@ Website: http://bdwm.be
|
|
6 |
Tags: wordpress, contact form 7, forms, conditional fields
|
7 |
Requires at least: 4.1
|
8 |
Tested up to: 5.1.1
|
9 |
-
Stable tag: 1.5.
|
10 |
Requires PHP: 5.3
|
11 |
License: GPLv2 or later
|
12 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -102,6 +102,9 @@ The conditional fields javascript code is loaded during wp_footer, so a call to
|
|
102 |
|
103 |
== Changelog ==
|
104 |
|
|
|
|
|
|
|
105 |
= 1.5.2 (05-03-19)=
|
106 |
* by reverting changes in 1.5.1, the possibility to load forms via AJAX was destroyed. So, from now on the wpcf7cf scripts will be loaded in the 'wp_enqueue_scripts' hook. Analogous with the WPCF7_LOAD_JS constant, a new constant is defined called WPCF7CF_LOAD_JS wich is set to true by default.
|
107 |
|
6 |
Tags: wordpress, contact form 7, forms, conditional fields
|
7 |
Requires at least: 4.1
|
8 |
Tested up to: 5.1.1
|
9 |
+
Stable tag: 1.5.3
|
10 |
Requires PHP: 5.3
|
11 |
License: GPLv2 or later
|
12 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
102 |
|
103 |
== Changelog ==
|
104 |
|
105 |
+
= 1.5.3 (05-03-19) =
|
106 |
+
* Refix the fix from version 1.4.3 that got unfixed in version 1.5 somehow 🙄
|
107 |
+
|
108 |
= 1.5.2 (05-03-19)=
|
109 |
* by reverting changes in 1.5.1, the possibility to load forms via AJAX was destroyed. So, from now on the wpcf7cf scripts will be loaded in the 'wp_enqueue_scripts' hook. Analogous with the WPCF7_LOAD_JS constant, a new constant is defined called WPCF7CF_LOAD_JS wich is set to true by default.
|
110 |
|