Changeset 1598164
- Timestamp:
- 02/17/2017 05:08:42 PM (9 years ago)
- Location:
- allprowebtools-leadboxes/tags/1.1.0
- Files:
-
- 3 edited
- 1 copied
-
. (copied) (copied from allprowebtools-leadboxes/tags/1.0.9)
-
allprowebtools.php (modified) (1 diff)
-
js/apwt-leadbox.js (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
allprowebtools-leadboxes/tags/1.1.0/allprowebtools.php
r1556509 r1598164 6 6 Author: AllProWebTools 7 7 Author URI: http://www.AllProWebTools.com 8 Version: 1. 0.98 Version: 1.1.0 9 9 License: GPLv2 10 10 */ -
allprowebtools-leadboxes/tags/1.1.0/js/apwt-leadbox.js
r1556509 r1598164 1 1 jQuery('body').on('click','.leadbox-submit', function(e) { 2 2 e.preventDefault(); 3 var form = this.form; 3 var leadboxForm = jQuery(this).closest('form'); 4 var recaptchaBox = leadboxForm.find('#g-recaptcha-response'); 4 5 5 6 var postedValues = {}; 6 jQuery(jQuery(form).find("input, select")).each(function() {7 postedValues[this.name] = this.value;7 leadboxForm.find("input, select").each(function(i, v) { 8 postedValues[jQuery(v).attr('name')] = jQuery(v).val(); 8 9 }); 10 postedValues['g-recaptcha-response'] = recaptchaBox.val(); 9 11 10 12 var postdata = { … … 21 23 success: function(response) { 22 24 if(response.status == "error") { 23 jQuery(jQuery(form).children('.leadbox-error')).html(response.message); 25 jQuery(leadboxForm.children('.leadbox-error')).html(data.message); 26 grecaptcha.reset() //reset recaptcha 24 27 } else { 25 28 if (response.status != 'paige') { … … 27 30 window.location.href = response.message; 28 31 } else { 29 jQuery(form).html(thanksMessage);32 leadboxForm.html(thanksMessage); 30 33 } 31 34 } -
allprowebtools-leadboxes/tags/1.1.0/readme.txt
r1556509 r1598164 3 3 Tags: allprowebtools, crm, lead box, signup box, optin box, autoresponder, email marketing 4 4 Requires at least: 3.4 5 Tested up to: 4.7 6 Stable tag: 1. 0.95 Tested up to: 4.7.2 6 Stable tag: 1.1.0 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 96 96 = 1.0.9 - 12/16/16 = 97 97 1. Patched for better compatability with WP 4.7 and certain PHP versions 98 99 = 1.1.0 - 02/17/17 = 100 1. Added support for Google reCaptcha 101
Note: See TracChangeset
for help on using the changeset viewer.