Version Description
Download this release
Release Info
Developer | Yuichiro ABE |
Plugin | Contact Form 7 add confirm |
Version | 4.1.1 |
Comparing to | |
See all releases |
Code changes from version 4.1 to 4.1.1
- contact-form-7-confirm.php +2 -2
- includes/controller.php +6 -0
- includes/js/scripts.js +12 -0
- readme.txt +7 -4
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: 4.1
|
11 |
*/
|
12 |
|
13 |
/* Copyright 2014- Yuichiro ABE (email: y.abe at eyeta.jp)
|
@@ -44,7 +44,7 @@ Version: 4.1
|
|
44 |
戻って編集ボタンのデフォルトテキストが英語だった件を修正
|
45 |
以降、readme.txtに記述
|
46 |
*/
|
47 |
-
define( 'WPCF7C_VERSION', '4.1' );
|
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: 4.1.1
|
11 |
*/
|
12 |
|
13 |
/* Copyright 2014- Yuichiro ABE (email: y.abe at eyeta.jp)
|
44 |
戻って編集ボタンのデフォルトテキストが英語だった件を修正
|
45 |
以降、readme.txtに記述
|
46 |
*/
|
47 |
+
define( 'WPCF7C_VERSION', '4.1.1' );
|
48 |
|
49 |
if ( ! defined( 'WPCF7C_PLUGIN_BASENAME' ) )
|
50 |
define( 'WPCF7C_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
|
includes/controller.php
CHANGED
@@ -225,6 +225,12 @@ function wpcf7c_ajax_json_echo_step2($items, $result) {
|
|
225 |
} else {
|
226 |
$items["onSubmit"][] = "wpcf7c_step2('" . $_POST['_wpcf7_unit_tag'] . "');";
|
227 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
228 |
}
|
229 |
|
230 |
return $items;
|
225 |
} else {
|
226 |
$items["onSubmit"][] = "wpcf7c_step2('" . $_POST['_wpcf7_unit_tag'] . "');";
|
227 |
}
|
228 |
+
} else {
|
229 |
+
if(!isset($items["onSubmit"]) || $items["onSubmit"] == null) {
|
230 |
+
$items["onSubmit"] = array("wpcf7c_step2_error('" . $_POST['_wpcf7_unit_tag'] . "');");
|
231 |
+
} else {
|
232 |
+
$items["onSubmit"][] = "wpcf7c_step2_error('" . $_POST['_wpcf7_unit_tag'] . "');";
|
233 |
+
}
|
234 |
}
|
235 |
|
236 |
return $items;
|
includes/js/scripts.js
CHANGED
@@ -203,3 +203,15 @@ var wpcf7c_step2 = function(unit_tag){
|
|
203 |
});
|
204 |
}
|
205 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
203 |
});
|
204 |
}
|
205 |
|
206 |
+
var wpcf7c_step2_error = function(unit_tag) {
|
207 |
+
jQuery(jQuery.find("input[name=_wpcf7_unit_tag]")).each(function(){
|
208 |
+
if(jQuery(this).val() == unit_tag) {
|
209 |
+
var parent = jQuery(this).parents("form");
|
210 |
+
|
211 |
+
var responseOutput = parent.find('div.wpcf7-response-output');
|
212 |
+
responseOutput.removeClass("wpcf7c-force-hide");
|
213 |
+
}
|
214 |
+
});
|
215 |
+
|
216 |
+
}
|
217 |
+
|
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.1
|
7 |
-
Stable tag: 4.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -101,7 +101,10 @@ An answer to that question.
|
|
101 |
バージョンのカウント方法をcontact form 7とwordpressに合わせました。
|
102 |
contact form DBプラグインの2.8.26以降で二重登録される不具合に対応。
|
103 |
|
|
|
|
|
|
|
104 |
== Upgrade notice ==
|
105 |
-
4.1
|
106 |
-
|
107 |
-
|
4 |
Tags: contact, form, contact form
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 4.1
|
7 |
+
Stable tag: 4.1.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
101 |
バージョンのカウント方法をcontact form 7とwordpressに合わせました。
|
102 |
contact form DBプラグインの2.8.26以降で二重登録される不具合に対応。
|
103 |
|
104 |
+
4.1.1
|
105 |
+
メール送信エラーなどの際にエラーメッセージが出ない不具合を修正
|
106 |
+
|
107 |
== Upgrade notice ==
|
108 |
+
4.1.1
|
109 |
+
メール送信エラーなどの際にエラーメッセージが出ない不具合を修正
|
110 |
+
|