Calculated Fields Form - Version 1.1.94

Version Description

  • Fixes a minor issue in the checkbox control.
  • Modifies the MONTH, DAY, and WEEKDAY to accept an additional parameter for leading zeros.
  • Modifies the CSS rules to hide empty validation messages.
Download this release

Release Info

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

Code changes from version 1.1.93 to 1.1.94

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.93
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -965,6 +965,12 @@ A: Please, follow the steps below:
965
 
966
  == Changelog ==
967
 
 
 
 
 
 
 
968
  = 1.1.93 =
969
 
970
  * Modifies the summary control.
@@ -1018,11 +1024,4 @@ A: Please, follow the steps below:
1018
  * Modifies the val method in all components.
1019
  * Fixes a style conflict between the forms builder and some themes.
1020
  * Includes the thank_you_page tag to include the link to the thank you page in the notification emails and thank you pages (Professional, Developer, and Platinum versions).
1021
- * Modifies the PDF Generator add-on to allow generating the PDF files after payment or generate the files even if they are not attached to any email (Platinum version)
1022
-
1023
- = 1.1.84 =
1024
-
1025
- * Modifies the Phone fields to include the country code component.
1026
- * Modifies the module that generates the database structure.
1027
- * Modifies the WooCommerce add-on to allow the buyers to access the products with the form fields pre-filled from the order's history (Developer and Platinum versions)
1028
- * Modifies the CSV Generator add-on to allow selecting the fields to export to the CSV file (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.94
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.94 =
969
+
970
+ * Fixes a minor issue in the checkbox control.
971
+ * Modifies the MONTH, DAY, and WEEKDAY to accept an additional parameter for leading zeros.
972
+ * Modifies the CSS rules to hide empty validation messages.
973
+
974
  = 1.1.93 =
975
 
976
  * Modifies the summary control.
1024
  * Modifies the val method in all components.
1025
  * Fixes a style conflict between the forms builder and some themes.
1026
  * Includes the thank_you_page tag to include the link to the thank you page in the notification emails and thank you pages (Professional, Developer, and Platinum versions).
1027
+ * Modifies the PDF Generator add-on to allow generating the PDF files after payment or generate the files even if they are not attached to any email (Platinum version)
 
 
 
 
 
 
 
changelog.txt CHANGED
@@ -1,5 +1,11 @@
1
  == Changelog ==
2
 
 
 
 
 
 
 
3
  = 1.1.93 =
4
 
5
  * Modifies the summary control.
1
  == Changelog ==
2
 
3
+ = 1.1.94 =
4
+
5
+ * Fixes a minor issue in the checkbox control.
6
+ * Modifies the MONTH, DAY, and WEEKDAY to accept an additional parameter for leading zeros.
7
+ * Modifies the CSS rules to hide empty validation messages.
8
+
9
  = 1.1.93 =
10
 
11
  * Modifies the summary control.
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.93
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.93' );
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.94
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.94' );
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 ) );
css/stylepublic.css CHANGED
@@ -383,6 +383,8 @@
383
  #fbuilder div.cpefb_error{background: #dc3545 !important;color:white !important;padding:5px 10px;border-radius:5px;margin-top:15px;z-index:1000;font-size:12px;font-style:normal;text-shadow:none;}
384
  #fbuilder div.cpefb_error:after{width: 0;height: 0;border-left: 10px solid transparent;border-right: 10px solid transparent;border-bottom: 10px solid #dc3545 !important;content:"";position:absolute;top:-8px;left:10px;z-index:1000;}
385
 
 
 
386
  .ui-datepicker{ z-index:9999 !important;min-width:280px;max-width:320px;}
387
  .ui-datepicker *{font-size:14px !important;}
388
 
383
  #fbuilder div.cpefb_error{background: #dc3545 !important;color:white !important;padding:5px 10px;border-radius:5px;margin-top:15px;z-index:1000;font-size:12px;font-style:normal;text-shadow:none;}
384
  #fbuilder div.cpefb_error:after{width: 0;height: 0;border-left: 10px solid transparent;border-right: 10px solid transparent;border-bottom: 10px solid #dc3545 !important;content:"";position:absolute;top:-8px;left:10px;z-index:1000;}
385
 
386
+ #fbuilder .cpefb_error.message:empty{display:none !important;}
387
+
388
  .ui-datepicker{ z-index:9999 !important;min-width:280px;max-width:320px;}
389
  .ui-datepicker *{font-size:14px !important;}
390
 
js/fbuilder-pro-public.jquery.js CHANGED
@@ -1,4 +1,4 @@
1
- $.fbuilder['version'] = '1.1.93';
2
  $.fbuilder['controls'] = $.fbuilder['controls'] || {};
3
  $.fbuilder['forms'] = $.fbuilder['forms'] || {};
4
 
1
+ $.fbuilder['version'] = '1.1.94';
2
  $.fbuilder['controls'] = $.fbuilder['controls'] || {};
3
  $.fbuilder['forms'] = $.fbuilder['forms'] || {};
4
 
js/fields-public/06_fbuilder.fcheck.js CHANGED
@@ -142,10 +142,10 @@
142
  for(var i in v)
143
  {
144
  t = (new String(v[i])).replace(/(['"])/g, "\\$1");
145
- if(0 < this.max && c+1 == this.max) break;
146
  if(_default) e = $('[id*="'+n+'"][vt="'+t+'"]');
147
  if(!_default || !e.length) e = $('[id*="'+n+'"][value="'+t+'"]');
148
- if(e.length) e.prop('checked', true);
149
  }
150
  this.enable_disable();
151
  if(!nochange) $('[id*="'+n+'"]').change();
142
  for(var i in v)
143
  {
144
  t = (new String(v[i])).replace(/(['"])/g, "\\$1");
145
+ if(0 < this.max && this.max < c+1) break;
146
  if(_default) e = $('[id*="'+n+'"][vt="'+t+'"]');
147
  if(!_default || !e.length) e = $('[id*="'+n+'"][value="'+t+'"]');
148
+ if(e.length){ e.prop('checked', true);c++;}
149
  }
150
  this.enable_disable();
151
  if(!nochange) $('[id*="'+n+'"]').change();
js/modules/02_datetime/public/01_datetime.js CHANGED
@@ -93,24 +93,55 @@
93
  };
94
 
95
  // MONTH( date_string, date_format_string )
96
- lib.MONTH = function( date, format ){
97
- var d = _getDateObj( date, format );
98
- if( d.valid() ) return d.getMonth()+1;
99
- return false;
 
 
 
 
 
 
 
 
 
 
100
  };
101
 
102
  // DAY( date_string, date_format_string )
103
- lib.DAY = function( date, format ){
104
- var d = _getDateObj( date, format );
105
- if( d.valid() ) return d.getDate();
106
- return false;
 
 
 
 
 
 
 
 
 
 
 
107
  };
108
 
109
  // WEEKDAY( date_string, date_format_string )
110
- lib.WEEKDAY = function( date, format ){
111
- var d = _getDateObj( date, format );
112
- if( d.valid() ) return d.getDay()+1;
113
- return false;
 
 
 
 
 
 
 
 
 
 
114
  };
115
 
116
  // WEEKDAY( date_string, date_format_string )
93
  };
94
 
95
  // MONTH( date_string, date_format_string )
96
+ lib.MONTH = function( date, format, leading_zeros ){
97
+ leading_zeros = leading_zeros || 0;
98
+ if(arguments.length == 1 && (typeof date == 'boolean' || date == 0 || date == 1))
99
+ {
100
+ leading_zeros = date;
101
+ date = undefined;
102
+ format = undefined;
103
+ }
104
+ var d = _getDateObj( date, format ), r = false;
105
+ if( d.valid() ){
106
+ r = d.getMonth()+1;
107
+ if(r < 10 && leading_zeros) r = 0+''+r;
108
+ }
109
+ return r;
110
  };
111
 
112
  // DAY( date_string, date_format_string )
113
+ lib.DAY = function( date, format, leading_zeros ){
114
+ leading_zeros = leading_zeros || 0;
115
+ if(arguments.length == 1 && (typeof date == 'boolean' || date == 0 || date == 1))
116
+ {
117
+ leading_zeros = date;
118
+ date = undefined;
119
+ format = undefined;
120
+ }
121
+ var d = _getDateObj( date, format ), r = false;
122
+ if( d.valid() )
123
+ {
124
+ r = d.getDate();
125
+ if(r < 10 && leading_zeros) r = 0+''+r;
126
+ }
127
+ return r;
128
  };
129
 
130
  // WEEKDAY( date_string, date_format_string )
131
+ lib.WEEKDAY = function( date, format, leading_zeros ){
132
+ leading_zeros = leading_zeros || 0;
133
+ if(arguments.length == 1 && (typeof date == 'boolean' || date == 0 || date == 1))
134
+ {
135
+ leading_zeros = date;
136
+ date = undefined;
137
+ format = undefined;
138
+ }
139
+ var d = _getDateObj( date, format ), r = false;
140
+ if( d.valid() ){
141
+ r = d.getDay()+1;
142
+ if(r < 10 && leading_zeros) r = 0+''+r;
143
+ }
144
+ return r;
145
  };
146
 
147
  // WEEKDAY( date_string, date_format_string )