Version Description
Download this release
Release Info
Developer | takayukister |
Plugin | Contact Form 7 |
Version | 1.7.6.1 |
Comparing to | |
See all releases |
Code changes from version 1.7.6 to 1.7.6.1
- README.txt +2 -2
- contact-form-7.js +4 -0
- wp-contact-form-7.php +3 -10
README.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: takayukister
|
|
3 |
Donate link: http://takayukister.chipin.com/contact-form-7-20
|
4 |
Tags: contact form, email, ajax, captcha, akismet
|
5 |
Requires at least: 2.2
|
6 |
-
Tested up to: 2.5-
|
7 |
-
Stable tag: 1.7.6
|
8 |
|
9 |
Just another contact form plugin. Simple but flexible.
|
10 |
|
3 |
Donate link: http://takayukister.chipin.com/contact-form-7-20
|
4 |
Tags: contact form, email, ajax, captcha, akismet
|
5 |
Requires at least: 2.2
|
6 |
+
Tested up to: 2.5-RC1.1
|
7 |
+
Stable tag: 1.7.6.1
|
8 |
|
9 |
Just another contact form plugin. Simple but flexible.
|
10 |
|
contact-form-7.js
CHANGED
@@ -4,6 +4,10 @@ jQuery(document).ready(function() {
|
|
4 |
dataType: 'json',
|
5 |
success: wpcf7ProcessJson
|
6 |
});
|
|
|
|
|
|
|
|
|
7 |
});
|
8 |
|
9 |
// Exclusive checkbox
|
4 |
dataType: 'json',
|
5 |
success: wpcf7ProcessJson
|
6 |
});
|
7 |
+
|
8 |
+
jQuery('div.wpcf7 > form').each(function(i, n) {
|
9 |
+
wpcf7ToggleSubmit(jQuery(n));
|
10 |
+
});
|
11 |
});
|
12 |
|
13 |
// Exclusive checkbox
|
wp-contact-form-7.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Contact Form 7
|
|
4 |
Plugin URI: http://ideasilo.wordpress.com/2007/04/30/contact-form-7/
|
5 |
Description: Just another contact form plugin. Simple but flexible.
|
6 |
Author: Takayuki Miyoshi
|
7 |
-
Version: 1.7.6
|
8 |
Author URI: http://ideasilo.wordpress.com/
|
9 |
*/
|
10 |
|
@@ -583,7 +583,7 @@ var _wpcf7 = {
|
|
583 |
$url = parse_url($_SERVER['REQUEST_URI']);
|
584 |
$url = $url['path'] . (empty($url['query']) ? '' : '?' . $url['query']) . '#' . $unit_tag;
|
585 |
|
586 |
-
$form .= '<form action="' . $url . '" method="post" class="wpcf7-form"
|
587 |
$form .= '<input type="hidden" name="_wpcf7" value="' . $id . '" />';
|
588 |
$form .= '<input type="hidden" name="_wpcf7_unit_tag" value="' . $unit_tag . '" />';
|
589 |
$form .= $this->form_elements($cf['form']);
|
@@ -612,13 +612,6 @@ var _wpcf7 = {
|
|
612 |
$class = ' class="' . $class . '"';
|
613 |
|
614 |
$form .= '<div' . $class . '>' . $content . '</div>';
|
615 |
-
|
616 |
-
$script = '<script type="text/javascript">
|
617 |
-
//<![CDATA[
|
618 |
-
wpcf7ToggleSubmit(jQuery("form#' . $unit_tag . '").get(0));
|
619 |
-
//]]>
|
620 |
-
</script>';
|
621 |
-
$form .= $script;
|
622 |
|
623 |
$form .= '</div>';
|
624 |
|
@@ -921,7 +914,7 @@ wpcf7ToggleSubmit(jQuery("form#' . $unit_tag . '").get(0));
|
|
921 |
|
922 |
$onclick = ' onclick="wpcf7ToggleSubmit(this.form);"';
|
923 |
$checked = $default ? ' checked="checked"' : '';
|
924 |
-
$html = '<input type="checkbox" value="1"' . $atts . $onclick . $checked . ' />';
|
925 |
return $html;
|
926 |
break;
|
927 |
case 'captchac':
|
4 |
Plugin URI: http://ideasilo.wordpress.com/2007/04/30/contact-form-7/
|
5 |
Description: Just another contact form plugin. Simple but flexible.
|
6 |
Author: Takayuki Miyoshi
|
7 |
+
Version: 1.7.6.1
|
8 |
Author URI: http://ideasilo.wordpress.com/
|
9 |
*/
|
10 |
|
583 |
$url = parse_url($_SERVER['REQUEST_URI']);
|
584 |
$url = $url['path'] . (empty($url['query']) ? '' : '?' . $url['query']) . '#' . $unit_tag;
|
585 |
|
586 |
+
$form .= '<form action="' . $url . '" method="post" class="wpcf7-form">';
|
587 |
$form .= '<input type="hidden" name="_wpcf7" value="' . $id . '" />';
|
588 |
$form .= '<input type="hidden" name="_wpcf7_unit_tag" value="' . $unit_tag . '" />';
|
589 |
$form .= $this->form_elements($cf['form']);
|
612 |
$class = ' class="' . $class . '"';
|
613 |
|
614 |
$form .= '<div' . $class . '>' . $content . '</div>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
615 |
|
616 |
$form .= '</div>';
|
617 |
|
914 |
|
915 |
$onclick = ' onclick="wpcf7ToggleSubmit(this.form);"';
|
916 |
$checked = $default ? ' checked="checked"' : '';
|
917 |
+
$html = '<input type="checkbox" name="' . $name . '" value="1"' . $atts . $onclick . $checked . ' />';
|
918 |
return $html;
|
919 |
break;
|
920 |
case 'captchac':
|