Contact Form Email - Version 1.2.39

Version Description

  • Fixed form builder issue
Download this release

Release Info

Developer codepeople
Plugin Icon 128x128 Contact Form Email
Version 1.2.39
Comparing to
See all releases

Code changes from version 1.2.38 to 1.2.39

Files changed (3) hide show
  1. README.txt +5 -2
  2. form-to-email.php +1 -1
  3. js/fbuilderf.jquery.js +6 -3
README.txt CHANGED
@@ -448,6 +448,9 @@ When you click a field already added into the contact form builder area, you can
448
 
449
  == Changelog ==
450
 
 
 
 
451
  = 1.2.38 =
452
  * Fixed conflict with autoptimize plugin
453
 
@@ -869,5 +872,5 @@ When you click a field already added into the contact form builder area, you can
869
 
870
  == Upgrade Notice ==
871
 
872
- = 1.2.38 =
873
- * Fixed conflict with autoptimize plugin
448
 
449
  == Changelog ==
450
 
451
+ = 1.2.39 =
452
+ * Fixed form builder issue
453
+
454
  = 1.2.38 =
455
  * Fixed conflict with autoptimize plugin
456
 
872
 
873
  == Upgrade Notice ==
874
 
875
+ = 1.2.39 =
876
+ * Fixed form builder issue
form-to-email.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Contact Form Email
4
  Plugin URI: https://form2email.dwbooster.com/download
5
  Description: Contact form that sends the data to email and also to a database list and CSV file.
6
- Version: 1.2.38
7
  Author: CodePeople
8
  Author URI: https://form2email.dwbooster.com
9
  Text Domain: contact-form-to-email
3
  Plugin Name: Contact Form Email
4
  Plugin URI: https://form2email.dwbooster.com/download
5
  Description: Contact form that sends the data to email and also to a database list and CSV file.
6
+ Version: 1.2.39
7
  Author: CodePeople
8
  Author URI: https://form2email.dwbooster.com
9
  Text Domain: contact-form-to-email
js/fbuilderf.jquery.js CHANGED
@@ -390,6 +390,9 @@ jQuery(window).on('load', function(){
390
  $('#paypal_price_field').html(str);
391
  }
392
  }
 
 
 
393
  function htmlEncode(value){
394
  value = $('<div/>').text(value).html()
395
  value = value.replace(/"/g, "&quot;");;
@@ -797,7 +800,7 @@ jQuery(window).on('load', function(){
797
  }
798
  return '<div class="fields '+me.csslayout+' cff-checkbox-field" id="field'+me.identifier+'-'+me.index+'"><div class="dfield">'+
799
  '<div class="one_column"><label><input name="'+me.name+'" id="'+me.name+'" class="field required" value="'+htmlEncode(me.value)+'" vt="'+htmlEncode((/^\s*$/.test(me.value)) ? me.title : me.value)+'" type="checkbox" /> <span>'+
800
- ( label )+''+((me.required)?'<span class="r">*</span>':'')+
801
  '</span></label></div>'+
802
  dlg+
803
  '</div><div class="clearer"></div></div>';
@@ -809,8 +812,8 @@ jQuery(window).on('load', function(){
809
  var dlg = $(this).closest('.fields').find('.cff-dialog'), w = dlg.data('width'), h=dlg.data('height');
810
  dlg.removeClass('hide');
811
 
812
- if('undefined' == typeof w) w = MIN($(this).closest('form').width(), $(window).width(), dlg.width());
813
- if('undefined' == typeof h) h = MIN($(this).closest('form').height(), $(window).height(), dlg.height());
814
 
815
  dlg.data('width',w);
816
  dlg.data('height',h);
390
  $('#paypal_price_field').html(str);
391
  }
392
  }
393
+ function htmlDecode(value){
394
+ if(/&(?:#x[a-f0-9]+|#[0-9]+|[a-z0-9]+);?/ig.test(value))value=$('<div/>').html(value).text();return value;
395
+ };
396
  function htmlEncode(value){
397
  value = $('<div/>').text(value).html()
398
  value = value.replace(/"/g, "&quot;");;
800
  }
801
  return '<div class="fields '+me.csslayout+' cff-checkbox-field" id="field'+me.identifier+'-'+me.index+'"><div class="dfield">'+
802
  '<div class="one_column"><label><input name="'+me.name+'" id="'+me.name+'" class="field required" value="'+htmlEncode(me.value)+'" vt="'+htmlEncode((/^\s*$/.test(me.value)) ? me.title : me.value)+'" type="checkbox" /> <span>'+
803
+ htmlDecode( label )+''+((me.required)?'<span class="r">*</span>':'')+
804
  '</span></label></div>'+
805
  dlg+
806
  '</div><div class="clearer"></div></div>';
812
  var dlg = $(this).closest('.fields').find('.cff-dialog'), w = dlg.data('width'), h=dlg.data('height');
813
  dlg.removeClass('hide');
814
 
815
+ if('undefined' == typeof w) w = Math.min($(this).closest('form').width(), $(window).width(), dlg.width());
816
+ if('undefined' == typeof h) h = Math.min($(this).closest('form').height(), $(window).height(), dlg.height());
817
 
818
  dlg.data('width',w);
819
  dlg.data('height',h);