Version Description
Download this release
Release Info
Developer | Yuichiro ABE |
Plugin | Contact Form 7 add confirm |
Version | 1.3.8.9 |
Comparing to | |
See all releases |
Code changes from version 1.3.8.8 to 1.3.8.9
- contact-form-7-confirm.php +2 -2
- includes/controller.php +1 -1
- includes/js/scripts.js +9 -9
- readme.txt +9 -3
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-confirm
|
9 |
Domain Path: /languages/
|
10 |
-
Version: 1.3.8.
|
11 |
*/
|
12 |
|
13 |
/* Copyright 2014- Yuichiro ABE (email: y.abe at eyeta.jp)
|
@@ -44,7 +44,7 @@ Version: 1.3.8.8
|
|
44 |
戻って編集ボタンのデフォルトテキストが英語だった件を修正
|
45 |
以降、readme.txtに記述
|
46 |
*/
|
47 |
-
define( 'WPCF7C_VERSION', '1.3.8.
|
48 |
|
49 |
if ( ! defined( 'WPCF7C_PLUGIN_BASENAME' ) )
|
50 |
define( 'WPCF7C_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
|
7 |
Author URI: http://www.eyeta.jp/
|
8 |
Text Domain: contact-form-7-confirm
|
9 |
Domain Path: /languages/
|
10 |
+
Version: 1.3.8.9
|
11 |
*/
|
12 |
|
13 |
/* Copyright 2014- Yuichiro ABE (email: y.abe at eyeta.jp)
|
44 |
戻って編集ボタンのデフォルトテキストが英語だった件を修正
|
45 |
以降、readme.txtに記述
|
46 |
*/
|
47 |
+
define( 'WPCF7C_VERSION', '1.3.8.9' );
|
48 |
|
49 |
if ( ! defined( 'WPCF7C_PLUGIN_BASENAME' ) )
|
50 |
define( 'WPCF7C_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
|
includes/controller.php
CHANGED
@@ -95,7 +95,7 @@ function wpcf7c_captcha_validation_filter( $result, $tag ) {
|
|
95 |
function wpcf7c_ajax_json_echo_step2($items, $result) {
|
96 |
//eyeta_log("wpcf7c_ajax_json_echo_step1");
|
97 |
if($result['mail_sent']) {
|
98 |
-
if($items["onSubmit"] == null) {
|
99 |
$items["onSubmit"] = array("wpcf7c_step2('" . $_POST['_wpcf7_unit_tag'] . "');");
|
100 |
} else {
|
101 |
$items["onSubmit"][] = "wpcf7c_step2('" . $_POST['_wpcf7_unit_tag'] . "');";
|
95 |
function wpcf7c_ajax_json_echo_step2($items, $result) {
|
96 |
//eyeta_log("wpcf7c_ajax_json_echo_step1");
|
97 |
if($result['mail_sent']) {
|
98 |
+
if(!isset($items["onSubmit"]) || $items["onSubmit"] == null) {
|
99 |
$items["onSubmit"] = array("wpcf7c_step2('" . $_POST['_wpcf7_unit_tag'] . "');");
|
100 |
} else {
|
101 |
$items["onSubmit"][] = "wpcf7c_step2('" . $_POST['_wpcf7_unit_tag'] . "');";
|
includes/js/scripts.js
CHANGED
@@ -1,15 +1,15 @@
|
|
1 |
|
2 |
|
3 |
-
(function(
|
4 |
|
5 |
|
6 |
|
7 |
-
if(
|
8 |
// 対象有り
|
9 |
|
10 |
-
|
11 |
// 親のフォームを検索
|
12 |
-
var parent =
|
13 |
if(parent.attr("wpcf7c") == undefined) {
|
14 |
// elm-submitをsubmitボタンへもセット
|
15 |
parent.find(".wpcf7-submit").addClass("wpcf7c-elm-step2").addClass("wpcf7c-force-hide");
|
@@ -75,8 +75,8 @@ var wpcf7c_to_step1 = function(parent, scroll){
|
|
75 |
if(scroll) {
|
76 |
var speed = 1000;
|
77 |
var position = parent.offset().top;
|
78 |
-
if(
|
79 |
-
position =
|
80 |
}
|
81 |
jQuery("html, body").animate({scrollTop:position}, speed, "swing");
|
82 |
}
|
@@ -88,7 +88,7 @@ var wpcf7c_step1 = function(unit_tag){
|
|
88 |
// 確認完了
|
89 |
|
90 |
// 対象フォーム検索
|
91 |
-
//var elm_unit_tag =
|
92 |
jQuery(jQuery.find("input[name=_wpcf7_unit_tag]")).each(function(){
|
93 |
if(jQuery(this).val() == unit_tag) {
|
94 |
var parent = jQuery(this).parents("form");
|
@@ -151,8 +151,8 @@ var wpcf7c_step1 = function(unit_tag){
|
|
151 |
// スムーズスクロール
|
152 |
var speed = 1000;
|
153 |
var position = parent.offset().top;
|
154 |
-
if(
|
155 |
-
position =
|
156 |
}
|
157 |
jQuery("html, body").animate({scrollTop:position}, speed, "swing");
|
158 |
|
1 |
|
2 |
|
3 |
+
(function(jQuery){
|
4 |
|
5 |
|
6 |
|
7 |
+
if(jQuery(".wpcf7c-elm-step1").size() != 0) {
|
8 |
// 対象有り
|
9 |
|
10 |
+
jQuery(".wpcf7c-elm-step1").each(function(){
|
11 |
// 親のフォームを検索
|
12 |
+
var parent = jQuery(this).parents("form");
|
13 |
if(parent.attr("wpcf7c") == undefined) {
|
14 |
// elm-submitをsubmitボタンへもセット
|
15 |
parent.find(".wpcf7-submit").addClass("wpcf7c-elm-step2").addClass("wpcf7c-force-hide");
|
75 |
if(scroll) {
|
76 |
var speed = 1000;
|
77 |
var position = parent.offset().top;
|
78 |
+
if(jQuery('.wpcf7c-anchor').size() != 0) {
|
79 |
+
position = jQuery('.wpcf7c-anchor').offset().top;
|
80 |
}
|
81 |
jQuery("html, body").animate({scrollTop:position}, speed, "swing");
|
82 |
}
|
88 |
// 確認完了
|
89 |
|
90 |
// 対象フォーム検索
|
91 |
+
//var elm_unit_tag = jQuery.find("input[name=_wpcf7_unit_tag]");
|
92 |
jQuery(jQuery.find("input[name=_wpcf7_unit_tag]")).each(function(){
|
93 |
if(jQuery(this).val() == unit_tag) {
|
94 |
var parent = jQuery(this).parents("form");
|
151 |
// スムーズスクロール
|
152 |
var speed = 1000;
|
153 |
var position = parent.offset().top;
|
154 |
+
if(jQuery('.wpcf7c-anchor').size() != 0) {
|
155 |
+
position = jQuery('.wpcf7c-anchor').offset().top;
|
156 |
}
|
157 |
jQuery("html, body").animate({scrollTop:position}, speed, "swing");
|
158 |
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: Yuichiro ABE
|
|
3 |
Donate link:
|
4 |
Tags: contact, form, contact form
|
5 |
Requires at least: 3.8
|
6 |
-
Tested up to: 3.
|
7 |
-
Stable tag: 1.3.8.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -49,6 +49,12 @@ An answer to that question.
|
|
49 |
|
50 |
1.3.8.8
|
51 |
「Notice: Undefined index」が出ていた箇所を修正
|
|
|
|
|
|
|
|
|
52 |
== Upgrade notice ==
|
53 |
-
1.3.8.
|
54 |
「Notice: Undefined index」が出ていた箇所を修正
|
|
|
|
3 |
Donate link:
|
4 |
Tags: contact, form, contact form
|
5 |
Requires at least: 3.8
|
6 |
+
Tested up to: 3.9
|
7 |
+
Stable tag: 1.3.8.9
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
49 |
|
50 |
1.3.8.8
|
51 |
「Notice: Undefined index」が出ていた箇所を修正
|
52 |
+
|
53 |
+
1.3.8.9
|
54 |
+
「Notice: Undefined index」が出ていた箇所を修正
|
55 |
+
javascript上で$を利用しないように変更
|
56 |
== Upgrade notice ==
|
57 |
+
1.3.8.9
|
58 |
「Notice: Undefined index」が出ていた箇所を修正
|
59 |
+
javascript上で$を利用しないように変更
|
60 |
+
|