Version Description
No known upgrade issues.
Download this release
Release Info
Developer | mpwalsh8 |
Plugin | Google Forms |
Version | 0.48 |
Comparing to | |
See all releases |
Code changes from version 0.47 to 0.48
- index.php +2 -2
- readme.txt +4 -1
- wpgform-core.php +13 -10
index.php
CHANGED
@@ -4,8 +4,8 @@
|
|
4 |
* Plugin Name: WordPress Google Form
|
5 |
* Plugin URI: http://michaelwalsh.org/wordpress/wordpress-plugins/wpgform/
|
6 |
* Description: Add Google Forms to a WordPress web site. Display a Google Form directly into your posts, pages or sidebar. Style the Google Form to match your existing theme and display a custom confirmation page after form submission.
|
7 |
-
* Version: 0.
|
8 |
-
* Build: 0.
|
9 |
* Last Modified: $WCDATE$
|
10 |
* Author: Mike Walsh
|
11 |
* Author URI: http://www.michaelwalsh.org
|
4 |
* Plugin Name: WordPress Google Form
|
5 |
* Plugin URI: http://michaelwalsh.org/wordpress/wordpress-plugins/wpgform/
|
6 |
* Description: Add Google Forms to a WordPress web site. Display a Google Form directly into your posts, pages or sidebar. Style the Google Form to match your existing theme and display a custom confirmation page after form submission.
|
7 |
+
* Version: 0.48
|
8 |
+
* Build: 0.48.$WCREV$
|
9 |
* Last Modified: $WCDATE$
|
10 |
* Author: Mike Walsh
|
11 |
* Author URI: http://www.michaelwalsh.org
|
readme.txt
CHANGED
@@ -255,7 +255,10 @@ No known upgrade issues.
|
|
255 |
|
256 |
== Changelog ==
|
257 |
|
258 |
-
= Version 0.
|
|
|
|
|
|
|
259 |
* Fixed jQuery syntax errors introduced in certain combinations of form options which resulted in the confirmation page not working.
|
260 |
|
261 |
= Version 0.46 =
|
255 |
|
256 |
== Changelog ==
|
257 |
|
258 |
+
= Version 0.48 =
|
259 |
+
* Fixed a Javascript error which occurs when using Google Default text overrides AND the form didn't have an "Other" radio button choice.
|
260 |
+
|
261 |
+
= Version 0.47 =
|
262 |
* Fixed jQuery syntax errors introduced in certain combinations of form options which resulted in the confirmation page not working.
|
263 |
|
264 |
= Version 0.46 =
|
wpgform-core.php
CHANGED
@@ -999,20 +999,23 @@ jQuery(document).ready(function($) {
|
|
999 |
// Replace Google supplied text with "override" values
|
1000 |
$("div.%sss-required-asterisk").text("* %s");
|
1001 |
$("div.%sss-radio div.%sss-printable-hint").text("%s");
|
1002 |
-
$("div.%sss-radio label:last+span.%sss-q-other-container").
|
1003 |
-
|
1004 |
-
|
|
|
|
|
1005 |
$("div.%sss-checkbox div.%sss-printable-hint").text("%s");
|
1006 |
$("div.%sss-form-container :input[name=\"back\"]").attr("value", "\u00ab %s");
|
1007 |
$("div.%sss-form-container :input[name=\"continue\"]").attr("value", "%s \u00bb");
|
1008 |
$("div.%sss-form-container :input[name=\"submit\"]").attr("value", "%s");'
|
1009 |
-
|
1010 |
-
|
1011 |
-
|
1012 |
-
|
1013 |
-
, $prefix, $wpgform_options['
|
1014 |
-
|
1015 |
-
|
|
|
1016 |
|
1017 |
// Before closing the <script> tag, is the form read only?
|
1018 |
if ($readonly) $js .= sprintf('
|
999 |
// Replace Google supplied text with "override" values
|
1000 |
$("div.%sss-required-asterisk").text("* %s");
|
1001 |
$("div.%sss-radio div.%sss-printable-hint").text("%s");
|
1002 |
+
if ($("div.%sss-radio label:last+span.%sss-q-other-container").length) {
|
1003 |
+
$("div.%sss-radio label:last+span.%sss-q-other-container").prev().contents().filter(function() {
|
1004 |
+
return this.nodeType == 3;
|
1005 |
+
})[0].nodeValue = "%s";
|
1006 |
+
}
|
1007 |
$("div.%sss-checkbox div.%sss-printable-hint").text("%s");
|
1008 |
$("div.%sss-form-container :input[name=\"back\"]").attr("value", "\u00ab %s");
|
1009 |
$("div.%sss-form-container :input[name=\"continue\"]").attr("value", "%s \u00bb");
|
1010 |
$("div.%sss-form-container :input[name=\"submit\"]").attr("value", "%s");'
|
1011 |
+
,$prefix, $wpgform_options['required_text_override']
|
1012 |
+
,$prefix, $prefix, $wpgform_options['radio_buttons_text_override']
|
1013 |
+
,$prefix, $prefix
|
1014 |
+
,$prefix, $prefix, $wpgform_options['radio_buttons_other_text_override']
|
1015 |
+
,$prefix, $prefix, $wpgform_options['check_boxes_text_override']
|
1016 |
+
,$prefix, $wpgform_options['back_button_text_override']
|
1017 |
+
,$prefix, $wpgform_options['continue_button_text_override']
|
1018 |
+
,$prefix, $wpgform_options['submit_button_text_override']) ;
|
1019 |
|
1020 |
// Before closing the <script> tag, is the form read only?
|
1021 |
if ($readonly) $js .= sprintf('
|