Calculated Fields Form - Version 1.1.103

Version Description

  • Includes new modifications in the radio buttons and radio buttons ds.
  • Implements additional verifications to prevent undesired actions.
Download this release

Release Info

Developer codepeople
Plugin Icon 128x128 Calculated Fields Form
Version 1.1.103
Comparing to
See all releases

Code changes from version 1.1.102 to 1.1.103

README.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://cff.dwbooster.com
4
  Tags: form,quote form,contact form,form builder,calculator,calculated,quote calculator,forms,form editor,advanced forms,payment calculator,payment,recurring payment,quote,fields,calculated field,price calculator,email,form design,paypal,equation editor,formula,equation,quote calculator,post,posts,plugin,widget,admin,sidebar,images,image,page,shortcode,products form,woocommerce,addons,layout,session,post,cookie,get,webhook,Dropbox,pdf,language
5
  Requires at least: 3.0.5
6
  Tested up to: 6.0
7
- Stable tag: 1.1.102
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -965,6 +965,11 @@ A: Please, follow the steps below:
965
 
966
  == Changelog ==
967
 
 
 
 
 
 
968
  = 1.1.102 =
969
 
970
  * Fixes an issue with the radio buttons when switching on/off is enabled.
@@ -1012,10 +1017,4 @@ A: Please, follow the steps below:
1012
 
1013
  * Fixes a minor issue in the checkbox control.
1014
  * Modifies the MONTH, DAY, and WEEKDAY to accept an additional parameter for leading zeros.
1015
- * Modifies the CSS rules to hide empty validation messages.
1016
-
1017
- = 1.1.93 =
1018
-
1019
- * Modifies the summary control.
1020
- * Modifies the container fields for accepting 12 columns.
1021
- * Modifies the Autocomplete Places add-on (Platinum version).
4
  Tags: form,quote form,contact form,form builder,calculator,calculated,quote calculator,forms,form editor,advanced forms,payment calculator,payment,recurring payment,quote,fields,calculated field,price calculator,email,form design,paypal,equation editor,formula,equation,quote calculator,post,posts,plugin,widget,admin,sidebar,images,image,page,shortcode,products form,woocommerce,addons,layout,session,post,cookie,get,webhook,Dropbox,pdf,language
5
  Requires at least: 3.0.5
6
  Tested up to: 6.0
7
+ Stable tag: 1.1.103
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
965
 
966
  == Changelog ==
967
 
968
+ = 1.1.103 =
969
+
970
+ * Includes new modifications in the radio buttons and radio buttons ds.
971
+ * Implements additional verifications to prevent undesired actions.
972
+
973
  = 1.1.102 =
974
 
975
  * Fixes an issue with the radio buttons when switching on/off is enabled.
1017
 
1018
  * Fixes a minor issue in the checkbox control.
1019
  * Modifies the MONTH, DAY, and WEEKDAY to accept an additional parameter for leading zeros.
1020
+ * Modifies the CSS rules to hide empty validation messages.
 
 
 
 
 
 
changelog.txt CHANGED
@@ -1,5 +1,10 @@
1
  == Changelog ==
2
 
 
 
 
 
 
3
  = 1.1.102 =
4
 
5
  * Fixes an issue with the radio buttons when switching on/off is enabled.
1
  == Changelog ==
2
 
3
+ = 1.1.103 =
4
+
5
+ * Includes new modifications in the radio buttons and radio buttons ds.
6
+ * Implements additional verifications to prevent undesired actions.
7
+
8
  = 1.1.102 =
9
 
10
  * Fixes an issue with the radio buttons when switching on/off is enabled.
cp_calculatedfieldsf_free.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Calculated Fields Form
4
  Plugin URI: https://cff.dwbooster.com
5
  Description: Create forms with field values calculated based in other form field values.
6
- Version: 1.1.102
7
  Text Domain: calculated-fields-form
8
  Author: CodePeople
9
  Author URI: https://cff.dwbooster.com
@@ -16,7 +16,7 @@ if(!defined('WP_DEBUG') || true != WP_DEBUG)
16
  }
17
 
18
  // Defining main constants
19
- define('CP_CALCULATEDFIELDSF_VERSION', '1.1.102' );
20
  define('CP_CALCULATEDFIELDSF_MAIN_FILE_PATH', __FILE__ );
21
  define('CP_CALCULATEDFIELDSF_BASE_PATH', dirname( CP_CALCULATEDFIELDSF_MAIN_FILE_PATH ) );
22
  define('CP_CALCULATEDFIELDSF_BASE_NAME', plugin_basename( CP_CALCULATEDFIELDSF_MAIN_FILE_PATH ) );
3
  Plugin Name: Calculated Fields Form
4
  Plugin URI: https://cff.dwbooster.com
5
  Description: Create forms with field values calculated based in other form field values.
6
+ Version: 1.1.103
7
  Text Domain: calculated-fields-form
8
  Author: CodePeople
9
  Author URI: https://cff.dwbooster.com
16
  }
17
 
18
  // Defining main constants
19
+ define('CP_CALCULATEDFIELDSF_VERSION', '1.1.103' );
20
  define('CP_CALCULATEDFIELDSF_MAIN_FILE_PATH', __FILE__ );
21
  define('CP_CALCULATEDFIELDSF_BASE_PATH', dirname( CP_CALCULATEDFIELDSF_MAIN_FILE_PATH ) );
22
  define('CP_CALCULATEDFIELDSF_BASE_NAME', plugin_basename( CP_CALCULATEDFIELDSF_MAIN_FILE_PATH ) );
js/fbuilder-pro-public.jquery.js CHANGED
@@ -1,4 +1,4 @@
1
- $.fbuilder['version'] = '1.1.102';
2
  $.fbuilder['controls'] = $.fbuilder['controls'] || {};
3
  $.fbuilder['forms'] = $.fbuilder['forms'] || {};
4
 
1
+ $.fbuilder['version'] = '1.1.103';
2
  $.fbuilder['controls'] = $.fbuilder['controls'] || {};
3
  $.fbuilder['forms'] = $.fbuilder['forms'] || {};
4
 
js/fields-public/07_fbuilder.fradio.js CHANGED
@@ -13,6 +13,10 @@
13
  choiceSelected:"",
14
  showDep:false,
15
  untickAccepted:true,
 
 
 
 
16
  show:function()
17
  {
18
  this.choicesVal = ((typeof(this.choicesVal) != "undefined" && this.choicesVal !== null)?this.choicesVal:this.choices);
@@ -48,6 +52,8 @@
48
  {
49
  var me = this,
50
  n = me.name;
 
 
51
  if(me.untickAccepted)
52
  {
53
  $(document).off('click', '[id*="'+n+'_"]').on('click', '[id*="'+n+'_"]', function(){
@@ -55,7 +61,7 @@
55
  e = $(m);
56
 
57
  $('[id*="'+n+'_"]').each(function(){if(m !== this) $(this).data('previous-status', false);});
58
- if(e.data('previous-status') || (typeof e.data('previous-status') == 'undefined' && m.checked)){ m.checked = false; e.change();}
59
  e.data('previous-status', m.checked);
60
  });
61
  }
@@ -133,6 +139,7 @@
133
  if(_default) e = $('[id*="'+n+'"][vt="'+t+'"]');
134
  if(!_default || !e.length) e = $('[id*="'+n+'"][value="'+t+'"]');
135
  if(e.length) e.prop('checked', true);
 
136
  if(!nochange) $('[id*="'+n+'"]').change();
137
  },
138
  setChoices:function(choices)
13
  choiceSelected:"",
14
  showDep:false,
15
  untickAccepted:true,
16
+ initStatus:function()
17
+ {
18
+ $('[id*="'+this.name+'_"]').each(function(){$(this).data('previous-status', this.checked);});
19
+ },
20
  show:function()
21
  {
22
  this.choicesVal = ((typeof(this.choicesVal) != "undefined" && this.choicesVal !== null)?this.choicesVal:this.choices);
52
  {
53
  var me = this,
54
  n = me.name;
55
+
56
+ me.initStatus();
57
  if(me.untickAccepted)
58
  {
59
  $(document).off('click', '[id*="'+n+'_"]').on('click', '[id*="'+n+'_"]', function(){
61
  e = $(m);
62
 
63
  $('[id*="'+n+'_"]').each(function(){if(m !== this) $(this).data('previous-status', false);});
64
+ if(e.data('previous-status')){ m.checked = false; e.change();}
65
  e.data('previous-status', m.checked);
66
  });
67
  }
139
  if(_default) e = $('[id*="'+n+'"][vt="'+t+'"]');
140
  if(!_default || !e.length) e = $('[id*="'+n+'"][value="'+t+'"]');
141
  if(e.length) e.prop('checked', true);
142
+ this.initStatus();
143
  if(!nochange) $('[id*="'+n+'"]').change();
144
  },
145
  setChoices:function(choices)