Version Description
- Modifies the forms builder design.
- Modifies the PREC operation to support an additional parameter to return the number without decimal if it is an integer.
- Modifies the WooCommerce add-on to support signatures in the WooCommerce carts and orders (Developer and Platinum versions).
- Registering the plugin becomes a MUST (Commercial plugin versions).
Download this release
Release Info
Developer | codepeople |
Plugin | Calculated Fields Form |
Version | 1.1.72 |
Comparing to | |
See all releases |
Code changes from version 1.1.71 to 1.1.72
- README.txt +9 -7
- changelog.txt +8 -9
- cp_calculatedfieldsf_free.php +2 -2
- css/flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2 +0 -0
- css/style.css +51 -2
- css/stylepublic.css +2 -1
- js/fbuilder-pro-admin.jquery.js +2 -0
- js/fbuilder-pro-public.jquery.js +1 -1
- js/fields-admin/fbuilder.fcalculated.js +2 -0
- js/modules/01_mathematical_logical/admin/module_admin.js +1 -1
- js/modules/01_mathematical_logical/public/module_public.js +13 -5
- languages/calculated-fields-form-en_US.mo +0 -0
- languages/calculated-fields-form-en_US.po +7 -7
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: 5.9
|
7 |
-
Stable tag: 1.1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -965,6 +965,13 @@ A: Please, follow the steps below:
|
|
965 |
|
966 |
== Changelog ==
|
967 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
968 |
= 1.1.71 =
|
969 |
|
970 |
* Fixes an issue with the CDATE operation.
|
@@ -1020,9 +1027,4 @@ A: Please, follow the steps below:
|
|
1020 |
* Fixes a minor issue in the checkbox fields.
|
1021 |
* Implements the NTHROOT operation to calculate the nth root of a number.
|
1022 |
* Modifies the AVERAGE operation for accepting numbers array as its argument.
|
1023 |
-
* Implements the DataTable DS control in the Developer and Platinum versions to insert tables with recordset records.
|
1024 |
-
|
1025 |
-
= 1.1.61 =
|
1026 |
-
|
1027 |
-
* Improves the integration with WP-Optimize plugin.
|
1028 |
-
* Removes deprecated functions.
|
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: 5.9
|
7 |
+
Stable tag: 1.1.72
|
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.72 =
|
969 |
+
|
970 |
+
* Modifies the forms builder design.
|
971 |
+
* Modifies the PREC operation to support an additional parameter to return the number without decimal if it is an integer.
|
972 |
+
* Modifies the WooCommerce add-on to support signatures in the WooCommerce carts and orders (Developer and Platinum versions).
|
973 |
+
* Registering the plugin becomes a MUST (Commercial plugin versions).
|
974 |
+
|
975 |
= 1.1.71 =
|
976 |
|
977 |
* Fixes an issue with the CDATE operation.
|
1027 |
* Fixes a minor issue in the checkbox fields.
|
1028 |
* Implements the NTHROOT operation to calculate the nth root of a number.
|
1029 |
* Modifies the AVERAGE operation for accepting numbers array as its argument.
|
1030 |
+
* Implements the DataTable DS control in the Developer and Platinum versions to insert tables with recordset records.
|
|
|
|
|
|
|
|
|
|
changelog.txt
CHANGED
@@ -1,5 +1,12 @@
|
|
1 |
== Changelog ==
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
= 1.1.71 =
|
4 |
|
5 |
* Fixes an issue with the CDATE operation.
|
@@ -522,12 +529,4 @@
|
|
522 |
= 1.0.442 =
|
523 |
|
524 |
* Modifies the validations on Date/Time fields.
|
525 |
-
* Fixes an issue in the forms previews.
|
526 |
-
|
527 |
-
= 1.0.441 =
|
528 |
-
|
529 |
-
* Fixes an issue in the Slider controls using another slider field as the default value of the attributes.
|
530 |
-
|
531 |
-
= 1.0.440 =
|
532 |
-
|
533 |
-
* Modifies the setChoices method in the Radio Buttons, Checkbox, and DropDown controls.
|
1 |
== Changelog ==
|
2 |
|
3 |
+
= 1.1.72 =
|
4 |
+
|
5 |
+
* Modifies the forms builder design.
|
6 |
+
* Modifies the PREC operation to support an additional parameter to return the number without decimal if it is an integer.
|
7 |
+
* Modifies the WooCommerce add-on to support signatures in the WooCommerce carts and orders (Developer and Platinum versions).
|
8 |
+
* Registering the plugin becomes a MUST (Commercial plugin versions).
|
9 |
+
|
10 |
= 1.1.71 =
|
11 |
|
12 |
* Fixes an issue with the CDATE operation.
|
529 |
= 1.0.442 =
|
530 |
|
531 |
* Modifies the validations on Date/Time fields.
|
532 |
+
* Fixes an issue in the forms previews.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.
|
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.
|
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.72
|
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.72' );
|
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/flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2
ADDED
Binary file
|
css/style.css
CHANGED
@@ -1,3 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
.cff-custom-table input{margin-left:5px; margin-right:5px;}
|
2 |
.form-builder{font-size:11px;width:100%;min-width:780px;}
|
3 |
.clearer{clear:both;}
|
@@ -167,7 +214,7 @@ textarea {resize: none}
|
|
167 |
.form-builder #sFieldList_chosen .chosen-single span{line-height:30px;}
|
168 |
|
169 |
.eq_btn{min-width:45px;}
|
170 |
-
#sEqButtonsContainer .eq_btn{max-width:135px;overflow:hidden;text-overflow:ellipsis;}
|
171 |
.form-builder #sFieldList,
|
172 |
.form-builder #sToolbarList{width: calc( 100% - 50px );width: -webkit-calc( 100% - 50px );width: -moz-calc( 100% - 50px );width: -o-calc( 100% - 50x );}
|
173 |
#sAdvancedEditor,
|
@@ -209,6 +256,8 @@ a.helpfbuilder{font-size:80%;text-decoration:underline;color:#00f;cursor:pointer
|
|
209 |
.cff-events-list th{white-space:nowrap;}
|
210 |
|
211 |
.cff-addon-item{padding-right:10px;padding-bottom:5px;box-sizing:border-box;width:50%;float:left;}
|
|
|
|
|
212 |
@media only screen and (max-width: 640px){
|
213 |
.cff-addon-item{padding-right:0;padding-bottom:20px;width:100%;float:none;}
|
214 |
.cff-custom-table,
|
@@ -258,7 +307,7 @@ a.helpfbuilder{font-size:80%;text-decoration:underline;color:#00f;cursor:pointer
|
|
258 |
.choice-ctrls{top:0px;}
|
259 |
}
|
260 |
@media only screen and (max-width: 480px){
|
261 |
-
.cff-custom-table input[type="button"]{margin:0 !important; width:100% !important;display:block !important;}
|
262 |
}
|
263 |
|
264 |
.metabox_disabled_section{cursor:pointer !important;}
|
1 |
+
@font-face {
|
2 |
+
font-family: 'Material Icons';
|
3 |
+
font-style: normal;
|
4 |
+
font-weight: 400;
|
5 |
+
src: url(flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2) format('woff2');
|
6 |
+
}
|
7 |
+
/** BTTN ICONS **/
|
8 |
+
.ctrlsColumn .itemForm::before{font-family:'Material Icons';font-weight: normal;float:left;margin-left:-5px;font-size:13px;}
|
9 |
+
|
10 |
+
#ftextds.itemForm::before,
|
11 |
+
#ftext.itemForm::before{content:"\e262";}
|
12 |
+
#femailds.itemForm::before,
|
13 |
+
#femail.itemForm::before{content:"\e159";}
|
14 |
+
#ftextareads.itemForm::before,
|
15 |
+
#ftextarea.itemForm::before{content:"\ef42";}
|
16 |
+
#fdropdownds.itemForm::before,
|
17 |
+
#fdropdown.itemForm::before{content:"\e0ee";}
|
18 |
+
#fnumberds.itemForm::before,
|
19 |
+
#fnumber.itemForm::before{content:"\eac7";}
|
20 |
+
#fcurrencyds.itemForm::before,
|
21 |
+
#fcurrency.itemForm::before{content:"\e227";}
|
22 |
+
#fcheckds.itemForm::before,
|
23 |
+
#fcheck.itemForm::before{content:"\e834";}
|
24 |
+
#fradiods.itemForm::before,
|
25 |
+
#fradio.itemForm::before{content:"\e837";}
|
26 |
+
#fPhoneds.itemForm::before,
|
27 |
+
#fPhone.itemForm::before{content:"\e0cd";}
|
28 |
+
#fhiddends.itemForm::before,
|
29 |
+
#fhidden.itemForm::before{content:"\f023";}
|
30 |
+
|
31 |
+
#frecordsetds.itemForm::before{content:"\ead3";}
|
32 |
+
#fdatatableds.itemForm::before{content:"\e3ec";}
|
33 |
+
#fdate.itemForm::before{content:"\e935";}
|
34 |
+
#fSectionBreak.itemForm::before{content:"\e22c";}
|
35 |
+
#fPageBreak.itemForm::before{content:"\eaca";}
|
36 |
+
#fsummary.itemForm::before{content:"\e949";}
|
37 |
+
#fButton.itemForm::before{content:"\f1c1";}
|
38 |
+
#fslider.itemForm::before{content:"\e260";}
|
39 |
+
#fcolor.itemForm::before{content:"\e3b8";}
|
40 |
+
#ffieldset.itemForm::before{content:"\eb73";}
|
41 |
+
#fdiv.itemForm::before{content:"\eb73";}
|
42 |
+
#fhtml.itemForm::before{content:"\e86f";}
|
43 |
+
#ffile.itemForm::before{content:"\e2c6";}
|
44 |
+
#fMedia.itemForm::before{content:"\e410";}
|
45 |
+
#fCommentArea.itemForm::before{content:"\e165";}
|
46 |
+
#fpassword.itemForm::before{content:"\f042";}
|
47 |
+
|
48 |
.cff-custom-table input{margin-left:5px; margin-right:5px;}
|
49 |
.form-builder{font-size:11px;width:100%;min-width:780px;}
|
50 |
.clearer{clear:both;}
|
214 |
.form-builder #sFieldList_chosen .chosen-single span{line-height:30px;}
|
215 |
|
216 |
.eq_btn{min-width:45px;}
|
217 |
+
#sEqButtonsContainer .eq_btn{max-width:135px;overflow:hidden;text-overflow:ellipsis;margin:2px;}
|
218 |
.form-builder #sFieldList,
|
219 |
.form-builder #sToolbarList{width: calc( 100% - 50px );width: -webkit-calc( 100% - 50px );width: -moz-calc( 100% - 50px );width: -o-calc( 100% - 50x );}
|
220 |
#sAdvancedEditor,
|
256 |
.cff-events-list th{white-space:nowrap;}
|
257 |
|
258 |
.cff-addon-item{padding-right:10px;padding-bottom:5px;box-sizing:border-box;width:50%;float:left;}
|
259 |
+
.cff-forms-list td:nth-child(2){width:100%;}
|
260 |
+
.cff-forms-list [type="text"]{width:100%;}
|
261 |
@media only screen and (max-width: 640px){
|
262 |
.cff-addon-item{padding-right:0;padding-bottom:20px;width:100%;float:none;}
|
263 |
.cff-custom-table,
|
307 |
.choice-ctrls{top:0px;}
|
308 |
}
|
309 |
@media only screen and (max-width: 480px){
|
310 |
+
.cff-custom-table input[type="button"]{margin:5px 0 !important; width:100% !important;display:block !important;max-width:100%;}
|
311 |
}
|
312 |
|
313 |
.metabox_disabled_section{cursor:pointer !important;}
|
css/stylepublic.css
CHANGED
@@ -369,7 +369,8 @@
|
|
369 |
#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;}
|
370 |
#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;}
|
371 |
|
372 |
-
.ui-datepicker{ z-index:9999 !important;}
|
|
|
373 |
|
374 |
#fbuilder .cff-file-field input[type="file"]{max-width: calc( 100% - 30px);}
|
375 |
#fbuilder span.files-list,
|
369 |
#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;}
|
370 |
#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;}
|
371 |
|
372 |
+
.ui-datepicker{ z-index:9999 !important;width:auto !important;min-width:280px;}
|
373 |
+
.ui-datepicker *{font-size:14px !important;}
|
374 |
|
375 |
#fbuilder .cff-file-field input[type="file"]{max-width: calc( 100% - 30px);}
|
376 |
#fbuilder span.files-list,
|
js/fbuilder-pro-admin.jquery.js
CHANGED
@@ -130,6 +130,8 @@
|
|
130 |
|
131 |
$("#tabs-1").append('<div class="clearer"></div>');
|
132 |
$( ".button").button();
|
|
|
|
|
133 |
|
134 |
// Create a items object
|
135 |
var items = [],
|
130 |
|
131 |
$("#tabs-1").append('<div class="clearer"></div>');
|
132 |
$( ".button").button();
|
133 |
+
$(document).on('mouseover', '.ctrlsColumn .itemForm', function(){$(this).addClass('button-primary');})
|
134 |
+
.on('mouseout', '.ctrlsColumn .itemForm', function(){$(this).removeClass('button-primary');});
|
135 |
|
136 |
// Create a items object
|
137 |
var items = [],
|
js/fbuilder-pro-public.jquery.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
$.fbuilder['version'] = '1.1.
|
2 |
$.fbuilder['controls'] = $.fbuilder['controls'] || {};
|
3 |
$.fbuilder['forms'] = $.fbuilder['forms'] || {};
|
4 |
|
1 |
+
$.fbuilder['version'] = '1.1.72';
|
2 |
$.fbuilder['controls'] = $.fbuilder['controls'] || {};
|
3 |
$.fbuilder['forms'] = $.fbuilder['forms'] || {};
|
4 |
|
js/fields-admin/fbuilder.fcalculated.js
CHANGED
@@ -1,3 +1,5 @@
|
|
|
|
|
|
1 |
$.fbuilder.typeList.push(
|
2 |
{
|
3 |
id:"fCalculated",
|
1 |
+
$(document).on('mouseover', '.eq_btn', function(){$(this).addClass('button-primary');})
|
2 |
+
.on('mouseout' , '.eq_btn', function(){$(this).removeClass('button-primary');});
|
3 |
$.fbuilder.typeList.push(
|
4 |
{
|
5 |
id:"fCalculated",
|
js/modules/01_mathematical_logical/admin/module_admin.js
CHANGED
@@ -22,7 +22,7 @@ fbuilderjQuery[ 'fbuilder' ][ 'modules' ][ 'default' ] = {
|
|
22 |
{ "value" : "CEIL", "code" : "CEIL(", "tip" : "Returns the next higher integer that is greater than or equal to the number passed as parameter. <strong>CEIL(number)</strong><br>The CEIL operation accepts a second parameter for rounding the number to the next multiple of this second parameter. <strong>CEIL(X,Y)</strong>" },
|
23 |
{ "value" : "FLOOR", "code" : "FLOOR(", "tip" : "Returns the next lower integer that is less than or equal to the number passed as parameter. <strong>FLOOR(number)</strong><br>The FLOOR operation accepts a second parameter for rounding the number to the previous multiple of this second parameter. <strong>FLOOR(X,Y)</strong>" },
|
24 |
{ "value" : "ROUND", "code" : "ROUND(", "tip" : "Returns an integer that follows rounding rules. If the value of the passed parameter is greater than or equal to x.5, the returned value is x+1; otherwise the returned value is x. <strong>ROUND(number)</strong><br>The ROUND operation accepts a second parameter for rounding the number to the nearest multiple of this second parameter. <strong>ROUND(X,Y)</strong>" },
|
25 |
-
{ "value" : "PREC", "code" : "PREC(", "tip" : "Returns the value of the number passed in the first parameter with so many decimal digits as the number passed in the second parameter. <strong>PREC(number1, number2)</strong>" },
|
26 |
{ "value" : "AVERAGE", "code" : "AVERAGE(", "tip" : "Returns the average of values passed by parameter. <strong>AVERAGE(3,10,11)</strong> returns <strong>8</strong>" },
|
27 |
{ "value" : "CDATE", "code" : "CDATE(", "tip" : "Returns the number formatted like a Date. <strong>CDATE(number,format)</strong>. The second parameter defines the format of the output date: "mm/dd.yyyy", "dd/mm/yyyy"" },
|
28 |
{ "value" : "LOG", "code" : "LOG(", "tip" : "Returns the natural logarithm (base e) of the number passed as parameter. <strong>LOG(number)</strong>" },
|
22 |
{ "value" : "CEIL", "code" : "CEIL(", "tip" : "Returns the next higher integer that is greater than or equal to the number passed as parameter. <strong>CEIL(number)</strong><br>The CEIL operation accepts a second parameter for rounding the number to the next multiple of this second parameter. <strong>CEIL(X,Y)</strong>" },
|
23 |
{ "value" : "FLOOR", "code" : "FLOOR(", "tip" : "Returns the next lower integer that is less than or equal to the number passed as parameter. <strong>FLOOR(number)</strong><br>The FLOOR operation accepts a second parameter for rounding the number to the previous multiple of this second parameter. <strong>FLOOR(X,Y)</strong>" },
|
24 |
{ "value" : "ROUND", "code" : "ROUND(", "tip" : "Returns an integer that follows rounding rules. If the value of the passed parameter is greater than or equal to x.5, the returned value is x+1; otherwise the returned value is x. <strong>ROUND(number)</strong><br>The ROUND operation accepts a second parameter for rounding the number to the nearest multiple of this second parameter. <strong>ROUND(X,Y)</strong>" },
|
25 |
+
{ "value" : "PREC", "code" : "PREC(", "tip" : "Returns the value of the number passed in the first parameter with so many decimal digits as the number passed in the second parameter. <strong>PREC(number1, number2)</strong><br>PREC operation supports a third parameter to return the first parameter without decimal places if it is an integer:<br>PREC(3,2)=3.00<br>PREC(3,2,true)=3" },
|
26 |
{ "value" : "AVERAGE", "code" : "AVERAGE(", "tip" : "Returns the average of values passed by parameter. <strong>AVERAGE(3,10,11)</strong> returns <strong>8</strong>" },
|
27 |
{ "value" : "CDATE", "code" : "CDATE(", "tip" : "Returns the number formatted like a Date. <strong>CDATE(number,format)</strong>. The second parameter defines the format of the output date: "mm/dd.yyyy", "dd/mm/yyyy"" },
|
28 |
{ "value" : "LOG", "code" : "LOG(", "tip" : "Returns the natural logarithm (base e) of the number passed as parameter. <strong>LOG(number)</strong>" },
|
js/modules/01_mathematical_logical/public/module_public.js
CHANGED
@@ -70,14 +70,22 @@ fbuilderjQuery[ 'fbuilder' ][ 'modules' ][ 'default' ] = {
|
|
70 |
|
71 |
if(window.PREC == undefined)
|
72 |
{
|
73 |
-
window.PREC = window.prec = function (num, pr)
|
74 |
{
|
75 |
-
|
|
|
|
|
76 |
if(/^\d+$/.test(pr) && $.isNumeric(num))
|
77 |
{
|
78 |
-
|
79 |
-
|
80 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
81 |
}
|
82 |
return num;
|
83 |
};
|
70 |
|
71 |
if(window.PREC == undefined)
|
72 |
{
|
73 |
+
window.PREC = window.prec = function (num, pr, if_not_integer)
|
74 |
{
|
75 |
+
pr = pr || 0;
|
76 |
+
if_not_integer = if_not_integer || 0;
|
77 |
+
|
78 |
if(/^\d+$/.test(pr) && $.isNumeric(num))
|
79 |
{
|
80 |
+
if(
|
81 |
+
Math.floor(num) != num ||
|
82 |
+
!if_not_integer
|
83 |
+
)
|
84 |
+
{
|
85 |
+
var f = Math.pow(10,pr);
|
86 |
+
num = Math.round(num*f)/f;
|
87 |
+
return num.toFixed(pr);
|
88 |
+
}
|
89 |
}
|
90 |
return num;
|
91 |
};
|
languages/calculated-fields-form-en_US.mo
CHANGED
Binary file
|
languages/calculated-fields-form-en_US.po
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: \n"
|
4 |
-
"POT-Creation-Date: 2022-03-01
|
5 |
-
"PO-Revision-Date: 2022-03-01
|
6 |
"Last-Translator: CodePeople\n"
|
7 |
"Language-Team: \n"
|
8 |
"Language: en_US\n"
|
@@ -42,7 +42,7 @@ msgid "Settings saved"
|
|
42 |
msgstr ""
|
43 |
|
44 |
#: inc/cpcff_admin_int.inc.php:50 inc/cpcff_admin_int_list.inc.php:144
|
45 |
-
#: inc/cpcff_page_builders.inc.php:
|
46 |
#: pagebuilders/beaverbuilder/cff/cff/cff.php:9
|
47 |
#: pagebuilders/beaverbuilder/cff/cff/cff.php:11
|
48 |
#: pagebuilders/beaverbuilder/cff/cff/cff.php:12
|
@@ -838,22 +838,22 @@ msgstr ""
|
|
838 |
msgid "Create a JavaScript var from POST, GET, SESSION, or COOKIE var"
|
839 |
msgstr ""
|
840 |
|
841 |
-
#: inc/cpcff_page_builders.inc.php:
|
842 |
#: pagebuilders/elementor/elementor.pb.php:59
|
843 |
msgid "Select a form"
|
844 |
msgstr ""
|
845 |
|
846 |
-
#: inc/cpcff_page_builders.inc.php:
|
847 |
msgid "Forms"
|
848 |
msgstr ""
|
849 |
|
850 |
-
#: inc/cpcff_page_builders.inc.php:
|
851 |
#: pagebuilders/beaverbuilder/cff/cff.inc.php:38
|
852 |
#: pagebuilders/elementor/elementor.pb.php:70
|
853 |
msgid "Additional attributes"
|
854 |
msgstr ""
|
855 |
|
856 |
-
#: inc/cpcff_page_builders.inc.php:
|
857 |
#: pagebuilders/beaverbuilder/cff/cff.inc.php:43
|
858 |
#: pagebuilders/elementor/elementor.pb.php:85
|
859 |
#: pagebuilders/siteorigin/siteorigin-cpcff/fields/cff-button.class.php:12
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: \n"
|
4 |
+
"POT-Creation-Date: 2022-03-15 01:42+0100\n"
|
5 |
+
"PO-Revision-Date: 2022-03-15 01:42+0100\n"
|
6 |
"Last-Translator: CodePeople\n"
|
7 |
"Language-Team: \n"
|
8 |
"Language: en_US\n"
|
42 |
msgstr ""
|
43 |
|
44 |
#: inc/cpcff_admin_int.inc.php:50 inc/cpcff_admin_int_list.inc.php:144
|
45 |
+
#: inc/cpcff_page_builders.inc.php:185
|
46 |
#: pagebuilders/beaverbuilder/cff/cff/cff.php:9
|
47 |
#: pagebuilders/beaverbuilder/cff/cff/cff.php:11
|
48 |
#: pagebuilders/beaverbuilder/cff/cff/cff.php:12
|
838 |
msgid "Create a JavaScript var from POST, GET, SESSION, or COOKIE var"
|
839 |
msgstr ""
|
840 |
|
841 |
+
#: inc/cpcff_page_builders.inc.php:99
|
842 |
#: pagebuilders/elementor/elementor.pb.php:59
|
843 |
msgid "Select a form"
|
844 |
msgstr ""
|
845 |
|
846 |
+
#: inc/cpcff_page_builders.inc.php:100
|
847 |
msgid "Forms"
|
848 |
msgstr ""
|
849 |
|
850 |
+
#: inc/cpcff_page_builders.inc.php:101
|
851 |
#: pagebuilders/beaverbuilder/cff/cff.inc.php:38
|
852 |
#: pagebuilders/elementor/elementor.pb.php:70
|
853 |
msgid "Additional attributes"
|
854 |
msgstr ""
|
855 |
|
856 |
+
#: inc/cpcff_page_builders.inc.php:102
|
857 |
#: pagebuilders/beaverbuilder/cff/cff.inc.php:43
|
858 |
#: pagebuilders/elementor/elementor.pb.php:85
|
859 |
#: pagebuilders/siteorigin/siteorigin-cpcff/fields/cff-button.class.php:12
|