Version Description
(04-12-19) = * Really fix clear_on_hide problem (https://wordpress.org/support/topic/clear_on_hide-still-not-working-right-after-1-4-2-update/)
Download this release
Release Info
Developer | Jules Colle |
Plugin | Conditional Fields for Contact Form 7 |
Version | 1.4.3 |
Comparing to | |
See all releases |
Code changes from version 1.4.2 to 1.4.3
- contact-form-7-conditional-fields.php +1 -1
- init.php +1 -1
- js/scripts.js +14 -8
- readme.txt +3 -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.4.
|
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.4.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.4.
|
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.4.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
@@ -87,18 +87,17 @@ var cf7signature_resized = 0; // for compatibility with contact-form-7-signature
|
|
87 |
$groups.each(function (index) {
|
88 |
$group = $(this);
|
89 |
if ($group.is(':animated')) $group.finish(); // stop any current animations on the group
|
90 |
-
|
|
|
|
|
91 |
if ($group.prop('tagName') === 'SPAN') {
|
92 |
-
$group.show().trigger('wpcf7cf_show_group');
|
93 |
} else {
|
94 |
$group.animate(show_animation, animation_intime).trigger('wpcf7cf_show_group'); // show
|
95 |
}
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
} else {
|
100 |
-
$group.animate(hide_animation, animation_outtime).trigger('wpcf7cf_hide_group'); // hide
|
101 |
-
}
|
102 |
|
103 |
if ($group.attr('data-clear_on_hide') !== undefined) {
|
104 |
$inputs = $(':input', $group).not(':button, :submit, :reset, :hidden');
|
@@ -107,6 +106,13 @@ var cf7signature_resized = 0; // for compatibility with contact-form-7-signature
|
|
107 |
$inputs.change();
|
108 |
//display_fields();
|
109 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
110 |
}
|
111 |
});
|
112 |
|
87 |
$groups.each(function (index) {
|
88 |
$group = $(this);
|
89 |
if ($group.is(':animated')) $group.finish(); // stop any current animations on the group
|
90 |
+
|
91 |
+
if ($group.css('display') === 'none' && !$group.hasClass('wpcf7cf-hidden')) { // show the group
|
92 |
+
|
93 |
if ($group.prop('tagName') === 'SPAN') {
|
94 |
+
$group.show().trigger('wpcf7cf_show_group'); // Never animate inline groups because it tends to look messy.
|
95 |
} else {
|
96 |
$group.animate(show_animation, animation_intime).trigger('wpcf7cf_show_group'); // show
|
97 |
}
|
98 |
+
|
99 |
+
} else if ($group.css('display') !== 'none' && $group.hasClass('wpcf7cf-hidden')) { // hide the group
|
100 |
+
|
|
|
|
|
|
|
101 |
|
102 |
if ($group.attr('data-clear_on_hide') !== undefined) {
|
103 |
$inputs = $(':input', $group).not(':button, :submit, :reset, :hidden');
|
106 |
$inputs.change();
|
107 |
//display_fields();
|
108 |
}
|
109 |
+
|
110 |
+
if ($group.prop('tagName') === 'SPAN') {
|
111 |
+
$group.hide().trigger('wpcf7cf_hide_group'); // Never animate inline groups because it tends to look messy.
|
112 |
+
} else {
|
113 |
+
$group.animate(hide_animation, animation_outtime).trigger('wpcf7cf_hide_group');
|
114 |
+
}
|
115 |
+
|
116 |
}
|
117 |
});
|
118 |
|
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.4.
|
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,8 @@ The conditional fields javascript code is loaded during wp_footer, so a call to
|
|
102 |
|
103 |
== Changelog ==
|
104 |
|
|
|
|
|
105 |
|
106 |
= 1.4.2 (04-10-19) =
|
107 |
* Disabled mailbox syntax errors if there are group tags present. (this is overkill, and should be changed if the necassary hooks become available) https://wordpress.org/support/topic/filter-detect_invalid_mailbox_syntax/
|
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.4.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.4.3 (04-12-19) =
|
106 |
+
* Really fix clear_on_hide problem (https://wordpress.org/support/topic/clear_on_hide-still-not-working-right-after-1-4-2-update/)
|
107 |
|
108 |
= 1.4.2 (04-10-19) =
|
109 |
* Disabled mailbox syntax errors if there are group tags present. (this is overkill, and should be changed if the necassary hooks become available) https://wordpress.org/support/topic/filter-detect_invalid_mailbox_syntax/
|