Custom Contact Forms - Version 7.2.2

Version Description

  • Fix asset restriciton adding bug in Firefox
Download this release

Release Info

Developer tlovett1
Plugin Icon 128x128 Custom Contact Forms
Version 7.2.2
Comparing to
See all releases

Code changes from version 7.2.1 to 7.2.2

build/js/settings.min.js CHANGED
@@ -1 +1 @@
1
- (function(e){var t=e(document.querySelectorAll(".ccf-asset-restrictions")),i=document.querySelectorAll(".ccf-asset-loading-restrictions-wrap")[0],l=e(document.querySelectorAll(".ccf-asset-loading-restriction-enabled")),s=t.find(".asset").length;l.on("change",function(e){i.className="0"===e.target.value?"ccf-asset-loading-restrictions-wrap ccf-hide-field":"ccf-asset-loading-restrictions-wrap"}),t.on("click",".add",function(){var i=event.target.parentNode.cloneNode(!0),l=i.querySelectorAll(".asset-location")[0],r=i.querySelectorAll(".restriction-type")[0];l.value="",r.value="url",l.name="ccf_settings[asset_loading_restrictions]["+s+"][location]",r.name="ccf_settings[asset_loading_restrictions]["+s+"][type]",s++,t.append(e(i))}),t.on("click",".delete",function(e){var t=document.querySelectorAll(".ccf-asset-restrictions .asset");2>t.length?(e.target.parentNode.querySelectorAll(".asset-location")[0].value="",e.target.parentNode.querySelectorAll(".restriction-type")[0].value="url"):e.target.parentNode.parentNode.removeChild(e.target.parentNode)})})(jQuery);
1
+ (function(e){var t=e(document.querySelectorAll(".ccf-asset-restrictions")),i=document.querySelectorAll(".ccf-asset-loading-restrictions-wrap")[0],l=e(document.querySelectorAll(".ccf-asset-loading-restriction-enabled")),s=t.find(".asset").length;l.on("change",function(e){i.className="0"===e.target.value?"ccf-asset-loading-restrictions-wrap ccf-hide-field":"ccf-asset-loading-restrictions-wrap"}),t.on("click",".add",function(i){var l=i.target.parentNode.cloneNode(!0),r=l.querySelectorAll(".asset-location")[0],c=l.querySelectorAll(".restriction-type")[0];r.value="",c.value="url",r.name="ccf_settings[asset_loading_restrictions]["+s+"][location]",c.name="ccf_settings[asset_loading_restrictions]["+s+"][type]",s++,t.append(e(l))}),t.on("click",".delete",function(e){var t=document.querySelectorAll(".ccf-asset-restrictions .asset");2>t.length?(e.target.parentNode.querySelectorAll(".asset-location")[0].value="",e.target.parentNode.querySelectorAll(".restriction-type")[0].value="url"):e.target.parentNode.parentNode.removeChild(e.target.parentNode)})})(jQuery);
custom-contact-forms.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin URI: http://www.taylorlovett.com
5
  * Description: Build beautiful custom forms the WordPress way. View live previews of your forms while you build them.
6
  * Author: Taylor Lovett
7
- * Version: 7.2.1
8
  * Author URI: http://www.taylorlovett.com
9
  */
10
 
@@ -12,7 +12,7 @@
12
  * Include plugin reqs
13
  */
14
 
15
- define( 'CCF_VERSION', '7.2.1' );
16
 
17
  require_once( dirname( __FILE__ ) . '/classes/class-ccf-constants.php' );
18
  require_once( dirname( __FILE__ ) . '/classes/class-ccf-custom-contact-forms.php' );
4
  * Plugin URI: http://www.taylorlovett.com
5
  * Description: Build beautiful custom forms the WordPress way. View live previews of your forms while you build them.
6
  * Author: Taylor Lovett
7
+ * Version: 7.2.2
8
  * Author URI: http://www.taylorlovett.com
9
  */
10
 
12
  * Include plugin reqs
13
  */
14
 
15
+ define( 'CCF_VERSION', '7.2.2' );
16
 
17
  require_once( dirname( __FILE__ ) . '/classes/class-ccf-constants.php' );
18
  require_once( dirname( __FILE__ ) . '/classes/class-ccf-custom-contact-forms.php' );
js/settings.js CHANGED
@@ -13,7 +13,7 @@
13
  }
14
  } );
15
 
16
- $assetRestrictions.on( 'click', '.add', function() {
17
  var newAsset = event.target.parentNode.cloneNode( true );
18
  var location = newAsset.querySelectorAll( '.asset-location' )[0];
19
  var type = newAsset.querySelectorAll( '.restriction-type' )[0];
13
  }
14
  } );
15
 
16
+ $assetRestrictions.on( 'click', '.add', function( event ) {
17
  var newAsset = event.target.parentNode.cloneNode( true );
18
  var location = newAsset.querySelectorAll( '.asset-location' )[0];
19
  var type = newAsset.querySelectorAll( '.restriction-type' )[0];
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
4
  Tags: contact form, web form, custom contact form, custom forms, captcha form, contact fields, form mailers, forms
5
  Requires at least: 3.9
6
  Tested up to: 4.5
7
- Stable tag: 7.2.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -35,6 +35,9 @@ For questions, feature requests, and support concerning the Custom Contact Forms
35
 
36
  == Changelog ==
37
 
 
 
 
38
  = 7.2.1 =
39
  * Fix API json url bug
40
  * Update notification dialog
4
  Tags: contact form, web form, custom contact form, custom forms, captcha form, contact fields, form mailers, forms
5
  Requires at least: 3.9
6
  Tested up to: 4.5
7
+ Stable tag: 7.2.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
35
 
36
  == Changelog ==
37
 
38
+ = 7.2.2 =
39
+ * Fix asset restriciton adding bug in Firefox
40
+
41
  = 7.2.1 =
42
  * Fix API json url bug
43
  * Update notification dialog