Contact Form 7 add confirm - Version 5.1

Version Description

Download this release

Release Info

Developer Yuichiro ABE
Plugin Icon wp plugin Contact Form 7 add confirm
Version 5.1
Comparing to
See all releases

Code changes from version 5.0 to 5.1

contact-form-7-confirm.php CHANGED
@@ -7,7 +7,7 @@ Author: Yuichiro ABE
7
  Author URI: http://www.eyeta.jp/
8
  Text Domain: contact-form-7-add-confirm
9
  Domain Path: /languages/
10
- Version: 5.0
11
  */
12
 
13
  /* Copyright 2014- Yuichiro ABE (email: y.abe at eyeta.jp)
@@ -28,7 +28,7 @@ Version: 5.0
28
  */
29
 
30
 
31
- define( 'WPCF7C_VERSION', '5.0' );
32
 
33
  if ( ! defined( 'WPCF7C_PLUGIN_BASENAME' ) )
34
  define( 'WPCF7C_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
7
  Author URI: http://www.eyeta.jp/
8
  Text Domain: contact-form-7-add-confirm
9
  Domain Path: /languages/
10
+ Version: 5.1
11
  */
12
 
13
  /* Copyright 2014- Yuichiro ABE (email: y.abe at eyeta.jp)
28
  */
29
 
30
 
31
+ define( 'WPCF7C_VERSION', '5.1' );
32
 
33
  if ( ! defined( 'WPCF7C_PLUGIN_BASENAME' ) )
34
  define( 'WPCF7C_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
includes/js/scripts.js CHANGED
@@ -4,7 +4,7 @@
4
 
5
 
6
 
7
- if(jQuery(".wpcf7c-elm-step1").size() != 0) {
8
  // 対象有り
9
 
10
  jQuery(".wpcf7c-elm-step1").each(function(){
@@ -167,7 +167,7 @@ var wpcf7c_scroll = function(unit_tag) {
167
  var parent = jQuery(this).parents("form");
168
  var speed = 1000;
169
  var position = parent.offset().top;
170
- if(jQuery('.wpcf7c-anchor').size() != 0) {
171
  position = jQuery('.wpcf7c-anchor').offset().top;
172
  }
173
  jQuery("html, body").animate({scrollTop:position}, speed, "swing");
@@ -192,7 +192,7 @@ var wpcf7c_step2 = function(unit_tag){
192
  wpcf7c_to_step1(parent);
193
 
194
  // step3の要素があれば、それに切り替える
195
- if(parent.find(".wpcf7c-elm-step3").size() != 0) {
196
  // 表示切替
197
  parent.find(".wpcf7c-elm-step1").addClass("wpcf7c-force-hide");
198
  parent.find(".wpcf7c-elm-step2").addClass("wpcf7c-force-hide");
@@ -228,4 +228,3 @@ document.addEventListener( 'wpcf7submit', function( event ) {
228
 
229
  }
230
  }, false );
231
-
4
 
5
 
6
 
7
+ if(jQuery(".wpcf7c-elm-step1").length != 0) {
8
  // 対象有り
9
 
10
  jQuery(".wpcf7c-elm-step1").each(function(){
167
  var parent = jQuery(this).parents("form");
168
  var speed = 1000;
169
  var position = parent.offset().top;
170
+ if(jQuery('.wpcf7c-anchor').length != 0) {
171
  position = jQuery('.wpcf7c-anchor').offset().top;
172
  }
173
  jQuery("html, body").animate({scrollTop:position}, speed, "swing");
192
  wpcf7c_to_step1(parent);
193
 
194
  // step3の要素があれば、それに切り替える
195
+ if(parent.find(".wpcf7c-elm-step3").length != 0) {
196
  // 表示切替
197
  parent.find(".wpcf7c-elm-step1").addClass("wpcf7c-force-hide");
198
  parent.find(".wpcf7c-elm-step2").addClass("wpcf7c-force-hide");
228
 
229
  }
230
  }, false );
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link:
4
  Tags: contact, form, contact form
5
  Requires at least: 3.8
6
  Tested up to: 4.9.3
7
- Stable tag: 5.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
  Text Domain: contact-form-7-add-confirm
@@ -143,8 +143,10 @@ An answer to that question.
143
 
144
  4.8
145
  Contact Form 7 ver.4.8に対応
146
-
147
- == Upgrade notice ==
148
  5.0
149
  Contact Form 7 ver.5.0に対応
150
-
 
 
 
4
  Tags: contact, form, contact form
5
  Requires at least: 3.8
6
  Tested up to: 4.9.3
7
+ Stable tag: 5.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
  Text Domain: contact-form-7-add-confirm
143
 
144
  4.8
145
  Contact Form 7 ver.4.8に対応
146
+
 
147
  5.0
148
  Contact Form 7 ver.5.0に対応
149
+
150
+ == Upgrade notice ==
151
+ 5.1
152
+ jQuery3.0対応としてscripts.js の size() を length に変更