Contact Form 7 Multi-Step Forms - Version 1.4.4

Version Description

fix empty checkboxes causing javascript error when going back.

Download this release

Release Info

Developer webheadllc
Plugin Icon 128x128 Contact Form 7 Multi-Step Forms
Version 1.4.4
Comparing to
See all releases

Code changes from version 1.4.3 to 1.4.4

contact-form-7-multi-step-module.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://www.mymonkeydo.com/contact-form-7-multi-step-module/
5
  Description: Enables the Contact Form 7 plugin to create multi-page, multi-step forms.
6
  Author: Webhead LLC.
7
  Author URI: http://webheadcoder.com
8
- Version: 1.4.3
9
  */
10
  /* Copyright 2012 Webhead LLC (email: info at webheadcoder.com)
11
 
@@ -24,7 +24,7 @@ Version: 1.4.3
24
  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
25
  */
26
 
27
- define( 'CF7MSM_VERSION', '1.4.3' );
28
 
29
  /**
30
  * Load modules after plugins loaded to check for hidden module.
5
  Description: Enables the Contact Form 7 plugin to create multi-page, multi-step forms.
6
  Author: Webhead LLC.
7
  Author URI: http://webheadcoder.com
8
+ Version: 1.4.4
9
  */
10
  /* Copyright 2012 Webhead LLC (email: info at webheadcoder.com)
11
 
24
  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
25
  */
26
 
27
+ define( 'CF7MSM_VERSION', '1.4.4' );
28
 
29
  /**
30
  * Load modules after plugins loaded to check for hidden module.
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: webheadllc
3
  Tags: contact form 7, multistep form, form, multiple pages, store form
4
  Requires at least: 3.4.1
5
- Tested up to: 4.1
6
- Stable tag: 1.4.3
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -69,6 +69,9 @@ This plugin is free for a reason. Please go through the video tutorial provided
69
 
70
  == Changelog ==
71
 
 
 
 
72
  = 1.4.3 =
73
  fix exclusive checkboxes not saving on back. added version to javascript.
74
 
2
  Contributors: webheadllc
3
  Tags: contact form 7, multistep form, form, multiple pages, store form
4
  Requires at least: 3.4.1
5
+ Tested up to: 4.3.1
6
+ Stable tag: 1.4.4
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
69
 
70
  == Changelog ==
71
 
72
+ = 1.4.4 =
73
+ fix empty checkboxes causing javascript error when going back.
74
+
75
  = 1.4.3 =
76
  fix exclusive checkboxes not saving on back. added version to javascript.
77
 
resources/cf7msm.js CHANGED
@@ -25,9 +25,11 @@ jQuery(document).ready(function($) {
25
  //checkbox
26
  field = cf7_form.find('input[name="' + key + '[]"]'); //value is this or this or tihs
27
  if (field.length > 0) {
28
- $.each(val, function(i, v){
29
- field.filter('input[value="' + v + '"]').prop('checked', true);
30
- });
 
 
31
  }
32
  }
33
  }
25
  //checkbox
26
  field = cf7_form.find('input[name="' + key + '[]"]'); //value is this or this or tihs
27
  if (field.length > 0) {
28
+ if ( val != '' && val.length > 0 ) {
29
+ $.each(val, function(i, v){
30
+ field.filter('input[value="' + v + '"]').prop('checked', true);
31
+ });
32
+ }
33
  }
34
  }
35
  }