Calculated Fields Form - Version 1.1.125

Version Description

  • Fixes a minor issue in the Slider, Checkbox, and number controls with spinner buttons.
Download this release

Release Info

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

Code changes from version 1.1.124 to 1.1.125

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.1
7
- Stable tag: 1.1.124
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -965,6 +965,10 @@ A: Please, follow the steps below:
965
 
966
  == Changelog ==
967
 
 
 
 
 
968
  = 1.1.124 =
969
 
970
  * Implements the Text Operations module.
@@ -1014,9 +1018,4 @@ A: Please, follow the steps below:
1014
  * Modifies the calculated fields to reduce the number of endless loops.
1015
  * Modifies the Google Places add-on to fix a conflict with the Yoast sitemap (Platinum plugin version).
1016
  * Fixes a notice in the WebMerge add-on (Platinum plugin version).
1017
- * Minor modifications in the interface of other add-ons (Platinum plugin version).
1018
-
1019
- = 1.1.115 =
1020
-
1021
- * Modifies the number and currency controls to allow including buttons to increase and decrease their values.
1022
- * Implements the GOTOFIELD operation for scrolling to the field location, even if it is in another page of multipage form.
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.1
7
+ Stable tag: 1.1.125
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.125 =
969
+
970
+ * Fixes a minor issue in the Slider, Checkbox, and number controls with spinner buttons.
971
+
972
  = 1.1.124 =
973
 
974
  * Implements the Text Operations module.
1018
  * Modifies the calculated fields to reduce the number of endless loops.
1019
  * Modifies the Google Places add-on to fix a conflict with the Yoast sitemap (Platinum plugin version).
1020
  * Fixes a notice in the WebMerge add-on (Platinum plugin version).
1021
+ * Minor modifications in the interface of other add-ons (Platinum plugin version).
 
 
 
 
 
changelog.txt CHANGED
@@ -1,5 +1,9 @@
1
  == Changelog ==
2
 
 
 
 
 
3
  = 1.1.124 =
4
 
5
  * Implements the Text Operations module.
1
  == Changelog ==
2
 
3
+ = 1.1.125 =
4
+
5
+ * Fixes a minor issue in the Slider, Checkbox, and number controls with spinner buttons.
6
+
7
  = 1.1.124 =
8
 
9
  * Implements the Text Operations module.
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.124
7
  Text Domain: calculated-fields-form
8
  Author: CodePeople
9
  Author URI: https://cff.dwbooster.com
@@ -15,7 +15,7 @@ if ( ! defined( 'WP_DEBUG' ) || true != WP_DEBUG ) {
15
  }
16
 
17
  // Defining main constants
18
- define( 'CP_CALCULATEDFIELDSF_VERSION', '1.1.124' );
19
  define( 'CP_CALCULATEDFIELDSF_MAIN_FILE_PATH', __FILE__ );
20
  define( 'CP_CALCULATEDFIELDSF_BASE_PATH', dirname( CP_CALCULATEDFIELDSF_MAIN_FILE_PATH ) );
21
  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.125
7
  Text Domain: calculated-fields-form
8
  Author: CodePeople
9
  Author URI: https://cff.dwbooster.com
15
  }
16
 
17
  // Defining main constants
18
+ define( 'CP_CALCULATEDFIELDSF_VERSION', '1.1.125' );
19
  define( 'CP_CALCULATEDFIELDSF_MAIN_FILE_PATH', __FILE__ );
20
  define( 'CP_CALCULATEDFIELDSF_BASE_PATH', dirname( CP_CALCULATEDFIELDSF_MAIN_FILE_PATH ) );
21
  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.124';
2
  $.fbuilder['controls'] = $.fbuilder['controls'] || {};
3
  $.fbuilder['forms'] = $.fbuilder['forms'] || {};
4
 
@@ -304,9 +304,14 @@
304
  errorPlacement: function(e, element)
305
  {
306
  var _parent = element.closest( '.dfield' ),
307
- _uh = _parent.find( 'span.uh:visible' );
308
-
309
- e.addClass( 'message' ).css( 'position', 'absolute' ).appendTo( (_uh.length) ? _uh : _parent );
 
 
 
 
 
310
  }
311
  }).messages = opt.messages;
312
 
@@ -830,5 +835,6 @@
830
  else v -= s;
831
  if(m) v = u ? MIN(v,m) : MAX(v,m);
832
  o.setVal(v);
 
833
  }
834
  });
1
+ $.fbuilder['version'] = '1.1.125';
2
  $.fbuilder['controls'] = $.fbuilder['controls'] || {};
3
  $.fbuilder['forms'] = $.fbuilder['forms'] || {};
4
 
304
  errorPlacement: function(e, element)
305
  {
306
  var _parent = element.closest( '.dfield' ),
307
+ _uh = _parent.find( 'span.uh:visible' ),
308
+ _arg = {'position' : 'absolute'},
309
+ _t = _parent.find('input[type="button"],input[type="reset"],input[type="text"],input[type="number"],input[type="email"],input[type="file"],input[type="color"],input[type="date"],input[type="password"],input[type="email"],select,textarea');
310
+
311
+ try{
312
+ if(_t.length) _arg['left'] = _t.first()[0].offsetLeft;
313
+ } catch (err) {}
314
+ e.addClass( 'message' ).css( _arg ).appendTo( ( _uh.length ) ? _uh : _parent );
315
  }
316
  }).messages = opt.messages;
317
 
835
  else v -= s;
836
  if(m) v = u ? MIN(v,m) : MAX(v,m);
837
  o.setVal(v);
838
+ e.valid();
839
  }
840
  });
js/fields-public/02_fbuilder.fslider.js CHANGED
@@ -179,7 +179,13 @@
179
  me._setFieldValue(me.logarithmic ? v : null);
180
  }, t);
181
  });
182
- return '<div class="slider-type-'+c+'-component"><input aria-label="'+cff_esc_attr(me.title)+'" id="'+me.name+'_component_'+c+'" class="large" type="text" value="'+cff_esc_attr(predefined)+'" '+((me.readonly) ? 'readonly' : '')+' /></div>';
 
 
 
 
 
 
183
  };
184
 
185
  var str = '';
179
  me._setFieldValue(me.logarithmic ? v : null);
180
  }, t);
181
  });
182
+ return '<div class="slider-type-'+c+'-component"><input aria-label="'+cff_esc_attr(me.title)+'" id="'+me.name+'_component_'+c+'" class="large" type="text" value="'+cff_esc_attr(
183
+ /fieldname/.test(predefined) &&
184
+ getField(predefined) &&
185
+ 'val' in getField(predefined)
186
+ ? getField(predefined).val()
187
+ : predefined
188
+ )+'" '+((me.readonly) ? 'readonly' : '')+' /></div>';
189
  };
190
 
191
  var str = '';
js/fields-public/06_fbuilder.fcheck.js CHANGED
@@ -52,7 +52,8 @@
52
  after_show:function()
53
  {
54
  var m = this;
55
- $(document).on('click','[id*="'+m.name+'"]', function(){m.enable_disable();});
 
56
  m.enable_disable();
57
  if(0 < m.max)
58
  $('[id*="'+m.name+'"]').rules('add',{maxlength:m.max, messages:{maxlength:m.maxError}});
52
  after_show:function()
53
  {
54
  var m = this;
55
+ $(document).off('click','[id*="'+m.name+'"]')
56
+ .on('click','[id*="'+m.name+'"]', function(){m.enable_disable();});
57
  m.enable_disable();
58
  if(0 < m.max)
59
  $('[id*="'+m.name+'"]').rules('add',{maxlength:m.max, messages:{maxlength:m.maxError}});