Version Description
- Fix: Update the minified JS to match the non-minified version. This fixes issues with calculations.
- Fix: Allow the first form action label to be clickable
Download this release
Release Info
Developer | sswells |
Plugin | Formidable Forms – Form Builder for WordPress |
Version | 2.03.03 |
Comparing to | |
See all releases |
Code changes from version 2.03.02 to 2.03.03
- classes/helpers/FrmAppHelper.php +1 -1
- classes/models/FrmFormAction.php +2 -0
- classes/views/frm-form-actions/form_action.php +0 -6
- css/frm_admin.css +10 -0
- formidable.php +1 -1
- js/formidable.min.js +28 -28
- languages/formidable-da_DK.mo +0 -0
- languages/formidable-da_DK.po +7926 -0
- languages/formidable-fr_FR.mo +0 -0
- languages/formidable-fr_FR.po +8095 -0
- languages/formidable-sv_SE.mo +0 -0
- languages/formidable-sv_SE.po +8038 -0
- readme.txt +5 -1
classes/helpers/FrmAppHelper.php
CHANGED
@@ -10,7 +10,7 @@ class FrmAppHelper {
|
|
10 |
/**
|
11 |
* @since 2.0
|
12 |
*/
|
13 |
-
public static $plug_version = '2.03.
|
14 |
|
15 |
/**
|
16 |
* @since 1.07.02
|
10 |
/**
|
11 |
* @since 2.0
|
12 |
*/
|
13 |
+
public static $plug_version = '2.03.03';
|
14 |
|
15 |
/**
|
16 |
* @since 1.07.02
|
classes/models/FrmFormAction.php
CHANGED
@@ -361,6 +361,8 @@ class FrmFormAction {
|
|
361 |
return array();
|
362 |
}
|
363 |
|
|
|
|
|
364 |
if ( 'all' != $type ) {
|
365 |
return $action_controls->get_all( $form_id, $limit );
|
366 |
}
|
361 |
return array();
|
362 |
}
|
363 |
|
364 |
+
$limit = apply_filters( 'frm_form_action_limit', $limit, compact( 'type', 'form_id' ) );
|
365 |
+
|
366 |
if ( 'all' != $type ) {
|
367 |
return $action_controls->get_all( $form_id, $limit );
|
368 |
}
|
classes/views/frm-form-actions/form_action.php
CHANGED
@@ -31,10 +31,4 @@ $form_action = apply_filters( 'frm_form_' . $form_action->post_excerpt . '_actio
|
|
31 |
<?php
|
32 |
} ?>
|
33 |
</div>
|
34 |
-
<style type="text/css">
|
35 |
-
.frm_no_actions{
|
36 |
-
opacity:0;
|
37 |
-
*visibility:hidden;
|
38 |
-
}
|
39 |
-
</style>
|
40 |
</div>
|
31 |
<?php
|
32 |
} ?>
|
33 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
</div>
|
css/frm_admin.css
CHANGED
@@ -1761,7 +1761,17 @@ tr.frm_options_heading td{
|
|
1761 |
-moz-transition: opacity .15s ease-in-out;
|
1762 |
-webkit-transition: opacity .15s ease-in-out;
|
1763 |
transition: opacity .15s ease-in-out;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1764 |
}
|
|
|
1765 |
.frm_no_actions .inner_actions{
|
1766 |
margin-left: 195px;
|
1767 |
}
|
1761 |
-moz-transition: opacity .15s ease-in-out;
|
1762 |
-webkit-transition: opacity .15s ease-in-out;
|
1763 |
transition: opacity .15s ease-in-out;
|
1764 |
+
opacity:0;
|
1765 |
+
*visibility:hidden;
|
1766 |
+
z-index:-1;
|
1767 |
+
}
|
1768 |
+
|
1769 |
+
.frm_no_actions:last-child{
|
1770 |
+
opacity:100;
|
1771 |
+
*visibility:visible;
|
1772 |
+
z-index:0;
|
1773 |
}
|
1774 |
+
|
1775 |
.frm_no_actions .inner_actions{
|
1776 |
margin-left: 195px;
|
1777 |
}
|
formidable.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/*
|
3 |
Plugin Name: Formidable Forms
|
4 |
Description: Quickly and easily create drag-and-drop forms
|
5 |
-
Version: 2.03.
|
6 |
Plugin URI: https://formidableforms.com/
|
7 |
Author URI: https://formidableforms.com/
|
8 |
Author: Strategy11
|
2 |
/*
|
3 |
Plugin Name: Formidable Forms
|
4 |
Description: Quickly and easily create drag-and-drop forms
|
5 |
+
Version: 2.03.03
|
6 |
Plugin URI: https://formidableforms.com/
|
7 |
Author URI: https://formidableforms.com/
|
8 |
Author: Strategy11
|
js/formidable.min.js
CHANGED
@@ -29,8 +29,8 @@ b);null!==d&&(d.value=c)}}function E(a){var b=[];a=document.getElementById("frm_
|
|
29 |
document.getElementById("frm_hide_fields_"+b).value=c)}function ka(a,b,c){if(!("undefined"===typeof __FRMLOOKUP||"undefined"===typeof __FRMLOOKUP[a]||1>__FRMLOOKUP[a].dependents.length||null===b||"undefined"===typeof b)){a=__FRMLOOKUP[a];b=H(b[0].name);for(var d=0,e=a.dependents.length;d<e;d++)ca(a.dependents[d],b,c)}}function ca(a,b,c){a=Y(a);if(!(!1===a||1>a.parents.length))if("lookup"==a.fieldType){if(""!==b.repeatRow){c=[];var d="frm_field_"+a.fieldId+"-",d=d+(b.repeatingSection+"-"+b.repeatRow+
|
30 |
"_container");b=document.getElementById(d);null!==b&&c.push(b);b=c}else b=[],a.isRepeating?b=document.querySelectorAll(".frm_field_"+a.fieldId+"_container"):(c=document.getElementById("frm_field_"+a.fieldId+"_container"),null!==c&&b.push(c));c=0;for(d=b.length;c<d;c++){pa(a,b[c].id);var e=a,f=b[c];e.parentVals=Z(e);if("select"==e.inputType)bb(e,f);else if("radio"==e.inputType||"checkbox"==e.inputType)if(!1===e.parentVals){var h=f.getElementsByTagName("input");Ba(e,f);ba(h)}else cb(e,f)}}else if("value changed"===
|
31 |
c)for(c="field_"+a.fieldKey,c=a.isRepeating?""!==b.repeatingSection?'[id="'+c+"-"+b.repeatRow+'"]':'[id^="'+c+'-"]':'[id="'+c+'"]',b=document.querySelectorAll(c),c=0,d=b.length;c<d;c++)e=a,f=H(b[c].name),e.repeatRow=""!==f.repeatRow?f.repeatRow:"",e=a,f=b[c],e.parentVals=Z(e),za(e,f)}function Y(a){return"undefined"===typeof __FRMLOOKUP||"undefined"===typeof __FRMLOOKUP[a]?!1:__FRMLOOKUP[a]}function Z(a){for(var b=[],c=a.parents,d,e=0,f=c.length;e<f;e++){d=Y(c[e]);d=va(d,a);if(""===d||!1===d){b=!1;
|
32 |
-
break}b[e]=d}return b}function V(a){for(var b=!1,c=a.length,d=0;d<c;d++)if("hidden"==a[d].type||a[d].checked){b=a[d].value;break}return b}function bb(a,b){var c=b.getElementsByTagName("SELECT")[0];if(null!==c){var d=c.value;!1===a.parentVals?(c.options.length=1,""!==d&&(c.value="",L(c),t(jQuery(c),a.fieldKey))):(
|
33 |
-
|
34 |
function db(a){a.className+=" frm_loading_lookup";a.disabled=!0;L(a)}function da(a){M++;1>=M&&(a=Ca(a),null!==a&&P(jQuery(a)))}function ea(a){M--;0>=M&&(a=Ca(a),null!==a&&G(jQuery(a),"enable"))}function Ca(a){return document.querySelector("#frm_form_"+a+"_container form")}function cb(a,b){var c=b.getElementsByClassName("frm_opt_container")[0],d=c.getElementsByTagName("input");eb(b,c);var e="",e="radio"==a.inputType?V(d):K(d),f=jQuery(d[0]).data("frmval");da(a.formId);jQuery.ajax({type:"POST",url:frm_js.ajax_url,
|
35 |
data:{action:"frm_replace_cb_radio_lookup_options",parent_fields:a.parents,parent_vals:a.parentVals,field_id:a.fieldId,container_field_id:J(a),row_index:a.repeatRow,current_value:e,default_value:f,nonce:frm_js.nonce},success:function(e){c.innerHTML=e;e=b.getElementsByClassName("frm-loading-img")[0];null!==e&&void 0!==e&&e.parentNode.removeChild(e);c.style.display="block";1==d.length&&""===d[0].value?Ba(a,b):(!1!==B(b.id,a.formId)&&(e=S(a.fieldId),!1===e||1>e.conditions.length?(D(b.id,a.formId),jQuery("#"+
|
36 |
b.id).show()):(e.containerId=b.id,e.repeatRow=a.repeatRow,qa(e))),void 0!==f&&(!1!==("radio"==a.inputType?V(d):K(d))||1>d.length||ya(d[0].name,f)));t(jQuery(d[0]),a.fieldKey);ea(a.formId)}})}function Ba(a,b){B(b.id,a.formId)||(jQuery("#"+b.id).hide(),Aa(b.id,a.formId))}function za(a,b){if(!X(b,a.formId))if(!1===a.parentVals){var c=b.getAttribute("data-frmval");null===c&&(c="");Da(a,b,c)}else da(a.formId),jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:{action:"frm_get_lookup_text_value",parent_fields:a.parents,
|
@@ -42,10 +42,10 @@ function eb(a,b){if(!(-1<a.innerHTML.indexOf("frm-loading-img"))){b.style.displa
|
|
42 |
"0"!==g.inEmbedForm&&(n=N(g.inEmbedForm,m))));g=n;!1===g&&aa(c,d[f],e,b)}}}function N(a,b){return-1<b.indexOf("frm_field_"+a+"_container")}function Ia(a,b,c){var d=!1;b.repeatingSection&&(a="frm_field_"+a+"-"+b.repeatingSection,a+="-"+b.repeatRow+"_container",d=-1<c.indexOf(a));return d}function aa(a,b,c,d){var e=a.calc[b],f=e.calc,h=jQuery(document.getElementById("field_"+b)),g={triggerField:d,inSection:!1,thisFieldCall:'input[id^="field_'+b+'-"]'};1>h.length&&"undefined"!==typeof d&&(g.inSection=
|
43 |
!0,g.thisFieldId=fb(a.fieldsWithCalc,b),h=Ja(g));if(!(null===h||1>h.length)){f=gb(e,f,a,c,g);if("text"!=e.calc_type){a=e.calc_dec;-1<f.indexOf(").toFixed(")&&(c=f.split(").toFixed("),Ka(c[1])&&(a=c[1],f=f.replace(").toFixed("+a,"")));f=hb(f);f=parseFloat(eval(f));if("undefined"===typeof f||isNaN(f))f=0;Ka(a)&&(f=f.toFixed(a))}h.val()!=f&&(h.val(f),t(h,b))}}function gb(a,b,c,d,e){for(var f=0,h=a.fields.length;f<h;f++){var g={triggerField:e.triggerField,thisFieldId:a.fields[f],inSection:e.inSection,
|
44 |
valKey:e.inSection+""+a.fields[f],thisField:c.fields[a.fields[f]],thisFieldCall:"input"+c.fieldKeys[a.fields[f]]},k=c;"checkbox"==g.thisField.type||"radio"==g.thisField.type||"scale"==g.thisField.type?g.thisFieldCall=g.thisFieldCall+":checked,"+g.thisFieldCall+"[type=hidden]":"select"==g.thisField.type||"time"==g.thisField.type?g.thisFieldCall="select"+k.fieldKeys[g.thisFieldId]+" option:selected,"+g.thisFieldCall+"[type=hidden]":"textarea"==g.thisField.type&&(g.thisFieldCall=g.thisFieldCall+",textarea"+
|
45 |
-
k.fieldKeys[g.thisFieldId]);if("text"==a.calc_type)g.valKey="text"+g.valKey,d=ib(g,d),"undefined"===typeof d[g.valKey]&&(d[g.valKey]="");else{g.valKey="num"+g.valKey;d=jb(g,c,d);if("undefined"===typeof d[g.valKey]||isNaN(d[g.valKey]))d[g.valKey]=0;"date"==g.thisField.type&&0===d[g.valKey]&&(b="")}k="["+g.thisFieldId+"]";k=k.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1");b=b.replace(new RegExp(k,"g"),d[g.valKey])}return b}function hb(a){
|
46 |
-
function jb(a,b,c){if("undefined"!==typeof c[a.valKey]&&0!==c[a.valKey])return c;c[a.valKey]=0;var d=La(a);if(!1===d)return c;d.each(function(){var d=Ma(a.thisField,this);if("date"==a.thisField.type){var f;f=b.date;var h=0;if(d)if("undefined"===typeof jQuery.datepicker){h="-";-1<f.indexOf("/")&&(h="/");f=f.split(h);var d=d.split(h),g,k;g=h=k="";for(var n=0;n<f.length;n++)if("y"==f[n])g=((new Date).getFullYear()+15).toString().substr(2,2),g=d[n]>g?"19"+d[n]:"20"+d[n];else if("yy"==f[n])g=
|
47 |
-
f[n]||"mm"==f[n])h=d[n],2>h.length&&(h="0"+h);else if("d"==f[n]||"dd"==f[n])k=d[n],2>k.length&&(k="0"+k);h=Date.parse(g+"-"+h+"-"+k)}else h=jQuery.datepicker.parseDate(f,d);f=h;null!==f&&(c[a.valKey]=Math.ceil(f/864E5))}else{f=d;""!==f&&0!==f&&(f=f.trim(),f=parseFloat(f.replace(/,/g,"").match(/-?[\d\.]+$/)));if("undefined"===typeof f||isNaN(f)||""===f)f=0;c[a.valKey]+=f}});return c}function ib(a,b){if("undefined"!==typeof b[a.valKey]&&""!==b[a.valKey])return b;b[a.valKey]="";var c=
|
48 |
-
var d=0,e="";c.each(function(){var c=Ma(a.thisField,this),c=c.trim();0<d&&("time"==a.thisField.type?1==d?e=":":2==d&&(e=" "):e=", ");""!==c&&(b[a.valKey]+=e+c,d++)});return b}function La(a){var b;if(!1===a.inSection)b=jQuery(a.thisFieldCall);else if(b=Ja(a),null===b||"undefined"===typeof b)b=jQuery(a.thisFieldCall);if(null===b||"undefined"===typeof b||1>b.length)b=!1;return b}function Ja(a){if("undefined"===typeof a.triggerField)return null;var b=a.triggerField.closest(".frm_repeat_sec, .frm_repeat_inline, .frm_repeat_grid");
|
49 |
return b.length?(a=a.thisFieldCall.replace("[id=","[id^="),b.find(a)):null}function Ma(a,b){var c;c=!1;if("hidden"==b.type)""!==ga(b)&&(c=!0);else if("select"==a.type){var d=b.className;d&&-1<d.indexOf("frm_other_trigger")&&(c=!0)}else("checkbox"==a.type||"radio"==a.type)&&-1<b.id.indexOf("-other_")&&0>b.id.indexOf("-otext")&&(c=!0);c?(c=0,"select"==a.type?"hidden"==b.type?(d=!1,2<b.name.split("[").length&&(d=!0),d||(c=ga(b))):c=jQuery(b).closest(".frm_other_container").find(".frm_other_input").val():
|
50 |
"checkbox"!=a.type&&"radio"!=a.type||"hidden"==b.type||(c=ga(b))):c="checkbox"!==b.type&&"radio"!==b.type||!b.checked?jQuery(b).val():b.value;"undefined"===typeof c&&(c="");return c}function ga(a){var b="";a=document.getElementById(a.id+"-otext");null!==a&&""!==a.value&&(b=a.value);return b}function Na(a){var b=!1;a=jQuery(a).find(".frm_saving_draft");a.length&&(b=a.val());return b}function Oa(a){var b=!1,c=jQuery(a).find(".frm_next_page");if(c.length&&c.val()){var d=jQuery(a).find('input[name="form_id"]').val();
|
51 |
a=jQuery(a).find('input[name="frm_page_order_'+d+'"]');a=a.length?a.val():0;if(!a||c.val()<a)b=!0}return b}function la(a,b){var c=a.getAttribute("data-frmfile");if("hidden"==a.type&&null===c)return b;var d="",e="";if("checkbox"==a.type||"radio"==a.type)c=jQuery('input[name="'+a.name+'"]').closest(".frm_required_field").find("input:checked"),jQuery(c).each(function(){d=this.value});else if("file"==a.type||c)"undefined"===typeof c&&(c=p(a,!0),c=c.replace("file","")),"undefined"===typeof b[c]&&(d=kb(c)),
|
@@ -67,28 +67,28 @@ d&&(d+="Chart");(new google.visualization[d](c)).draw(b,a.options)}}})}function
|
|
67 |
d.fadeOut("slow",function(){d.remove();e.each(function(){var c=p(this,!1);"file"!=this.type&&Q(c,jQuery(this));D("frm_field_"+c+"-"+b+"-"+a+"_container",f)});"function"==typeof frmThemeOverride_frmRemoveRow&&frmThemeOverride_frmRemoveRow(c,d)});return!1}function tb(){if(!0===O)return!1;O=!0;var a=jQuery(this).data("parent"),b=0;if(0<jQuery(".frm_repeat_"+a).length)var c=jQuery(".frm_repeat_"+a+":last").attr("id").replace("frm_section_"+a+"-",""),b=-1<c.indexOf("i")?1:1+parseInt(c);jQuery.ajax({type:"POST",
|
68 |
url:frm_js.ajax_url,dataType:"json",data:{action:"frm_add_form_row",field_id:a,i:b,nonce:frm_js.nonce},success:function(c){var d=c.html,f=jQuery(d).hide().fadeIn("slow");jQuery(".frm_repeat_"+a+":last").after(f);var h=["other"],g,k,l={repeatingSection:a.toString(),repeatRow:b.toString()};jQuery(d).find("input, select, textarea").each(function(){if("file"!=this.type){if(""===this.name)return!0;g=this.name.replace("item_meta[","").split("]")[2].replace("[","");-1==jQuery.inArray(g,h)&&!1!==this.id&&
|
69 |
""!==this.id&&(k=jQuery("#"+this.id),h.push(g),I(g,l),ca(g,l,"value changed"),ja(g,k),ka(g,k,"value changed"),Q(g,k))}});r(l.repeatRow);Ua();fa();"function"==typeof frmThemeOverride_frmAddRow&&frmThemeOverride_frmAddRow(a,c);O=!1},error:function(){O=!1}});return!1}function ub(){var a=jQuery(this),b=a.data("entryid"),c=a.data("prefix"),d=a.data("pageid"),e=a.data("formid"),f=a.data("cancel"),h=a.data("fields"),g=a.data("excludefields"),k=jQuery(document.getElementById(c+b)),l=k.html();k.html('<span class="frm-loading-img" id="'+
|
70 |
-
c+b+'"></span><div class="frm_orig_content" style="display:none">'+l+"</div>");jQuery.ajax({type:"POST",url:frm_js.ajax_url,dataType:"html",data:{action:"frm_entries_edit_entry_ajax",post_id:d,entry_id:b,id:e,nonce:frm_js.nonce,fields:h,exclude_fields:g},success:function(
|
71 |
-
z);ia()}});return!1}function vb(){var a=jQuery(this),b=a.data("entryid"),c=a.data("prefix"),d=a.data("edit");a.hasClass("frm_ajax_edited")||(b=jQuery(document.getElementById(c+b)),b.children(".frm_forms").replaceWith(""),b.children(".frm_orig_content").fadeIn("slow").removeClass("frm_orig_content"));a.removeClass("frm_cancel_edit").addClass("frm_inplace_edit");a.html(d);return!1}function wb(){var a=jQuery(this),b=a.data("deleteconfirm");if(confirm(b)){var c=a.data("entryid"),d=a.data("prefix");
|
72 |
-
c+'"></span>');jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:{action:"frm_entries_destroy",entry:c,nonce:frm_js.nonce},success:function(a){if("success"==a.replace(/^\s+|\s+$/g,"")){var b=jQuery(document.getElementById(d+c));b.fadeOut("slow",function(){b.remove()});jQuery(document.getElementById("frm_delete_"+c)).fadeOut("slow")}else jQuery(document.getElementById("frm_delete_"+c)).replaceWith(a)}})}return!1}function ia(){"undefined"!==
|
73 |
-
jQuery(document).on("focusin",".frm_date",q);if("undefined"!==typeof __frmMasks)for(var
|
74 |
-
|
75 |
-
a):Va()}function Va(){jQuery(".frm_pro_form").fadeIn("slow")}function t(a,b){"undefined"===typeof b&&(b="dependent");1<a.length&&(a=a.eq(0));a.trigger({type:"change",selfTriggered:!0,frmTriggered:b})}function H(a){var b={repeatingSection:"",repeatRow:""};"undefined"!==typeof a&&3<=a.split("][").length&&(a=a.split("]["),b.repeatingSection=a[0].replace("item_meta[",
|
76 |
-
return confirm(a)}function yb(){var a=jQuery(this).data("frmtoggle");jQuery(a).is(":visible")?jQuery(a).slideUp("fast"):jQuery(a).slideDown("fast");return!1}function fb(a,b){for(var c in a)if(a.hasOwnProperty(c)&&a[c]===b)return c;return null}function Ka(a){return!jQuery.isArray(a)&&0<=a-parseFloat(a)+1}function zb(){Array.prototype.indexOf||(Array.prototype.indexOf=
|
77 |
-
a)return d;return-1})}function Ab(){"function"!==typeof String.prototype.trim&&(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")})}function Bb(){Array.prototype.filter||(Array.prototype.filter=function(a,b){if(void 0===this||null===this)throw new TypeError;var c=Object(this),d=c.length>>>0;if("function"!==typeof a)throw new TypeError;for(var e=[],
|
78 |
-
c;for(c in a)a.hasOwnProperty(c)&&b.push(c);return b})}var O=!1,C="",w=[],M=0;return{init:function(){jQuery(document).off("submit.formidable",".frm-show-form");jQuery(document).on("submit.formidable",".frm-show-form",frmFrontForm.submitForm);jQuery(document).on("click",".frm_trigger",m);var a=jQuery(".frm_blank_field");a.length&&a.closest(".frm_toggle_container").prev(".frm_trigger").click();
|
79 |
-
jQuery(".frm-show-form input[onblur], .frm-show-form textarea[onblur]").each(function(){""===jQuery(this).val()&&jQuery(this).blur()});jQuery(document).on("focus",".frm_toggle_default",nb);jQuery(document).on("blur",".frm_toggle_default",ob);jQuery(".frm_toggle_default").blur();jQuery(document.getElementById("frm_resend_email")).click(pb);jQuery(document).on("click",".frm_remove_link",A);
|
80 |
-
jQuery(document).on("change",'.frm-show-form input[name^="item_meta"], .frm-show-form select[name^="item_meta"], .frm-show-form textarea[name^="item_meta"]',z);jQuery(document).on("click",'.frm-show-form input[type="submit"], .frm-show-form input[name="frm_prev_page"], .frm_page_back, .frm_page_skip, .frm-show-form .frm_save_draft, .frm_prev_page, .frm_button_submit',l);jQuery(document).on("change",
|
81 |
-
v);jQuery(document).on("click",".frm_remove_form_row",sb);jQuery(document).on("click",".frm_add_form_row",tb);jQuery(document).on("click","a[data-frmconfirm]",xb);jQuery("a[data-frmtoggle]").click(yb);jQuery(".frm_edit_link_container").on("click","a.frm_inplace_edit",ub);jQuery(".frm_edit_link_container").on("click","a.frm_cancel_edit",vb);jQuery(document).on("click",".frm_ajax_delete",
|
82 |
-
a.hasClass("ui-icon-triangle-1-e")?(a.addClass("ui-icon-triangle-1-s").removeClass("ui-icon-triangle-1-e"),jQuery(this).next(".frm_toggle_container").fadeIn("slow")):(a.addClass("ui-icon-triangle-1-e").removeClass("ui-icon-triangle-1-s"),jQuery(this).next(".frm_toggle_container").hide())});ha("pageLoad");ia();zb();Ab();Bb();Cb()},submitForm:function(a){frmFrontForm.submitFormManual(a,
|
83 |
-
!jQuery("body").hasClass("wp-admin")){a.preventDefault();var d=frmFrontForm.validateFormSubmit(b);0===Object.keys(d).length&&(P(jQuery(b)),-1<c.indexOf("frm_ajax_submit")?1>jQuery(b).find('input[type="file"]').filter(function(){return!!this.value}).length?(C=jQuery(b).find('input[name="frm_action"]').val(),frmFrontForm.checkFormErrors(b,C)):b.submit():b.submit())}},validateFormSubmit:function(a){"undefined"!=
|
84 |
-
jQuery(a).hasClass("frm_js_validate");b&&(Na(a)||Oa(a))&&(b=!1);b&&(frmFrontForm.getAjaxFormErrors(a),Object.keys(w).length&&frmFrontForm.addAjaxFormErrors(a));return w},getAjaxFormErrors:function(a){var b=[],c=jQuery(a).find(".frm_required_field:visible input, .frm_required_field:visible select, .frm_required_field:visible textarea").filter(":not(.frm_optional)");if(c.length)for(var d=0,e=c.length;d<e;d++)b=
|
85 |
-
if(d.length)for(var e=0,f=d.length;e<f;e++){var h=d[e];""!==h.value&&"hidden"!=h.type&&("number"==h.type?b=na(h,b):"email"==h.type?b=ma(h,b,c):null!==h.pattern&&(b=oa(h,b)))}c=jQuery(a).find(".frm-g-recaptcha");c.length&&(d=c.data("rid"),0===grecaptcha.getResponse(d).length&&(c=c.closest(".frm_form_field").attr("id").replace("frm_field_","").replace("_container",""),b[c]=""));w=b;if("function"==
|
86 |
-
a),Object.keys(a).length))for(var g in a)w[g]=a[g];return w},addAjaxFormErrors:function(a){Pa();for(var b in w){var c=jQuery(a).find("#frm_field_"+b+"_container");c.length?R(c,b,w):delete w[b]}Qa(a)},checkFormErrors:function(a,b){lb(a,b)},scrollToID:function(a){a=jQuery(document.getElementById(a));frmFrontForm.scrollMsg(a,!1)},scrollMsg:function(a,b,c){if("undefined"==typeof b){if(a=
|
87 |
-
a+"_container"):a;if(a=a.offset().top){a-=frm_js.offset;b=jQuery("html").css("margin-top");var d=jQuery("body").css("margin-top");if(b||d)a=a-parseInt(b)-parseInt(d);if(a&&window.innerHeight&&(b=document.documentElement.scrollTop||document.body.scrollTop,a>b+window.innerHeight||a<b))return"undefined"===typeof c?jQuery(window).scrollTop(a):jQuery("html,body").animate({scrollTop:a},
|
88 |
-
b){if("pageLoad"===b){var c=document.querySelectorAll('[id^="frm_hide_fields_"]');ba(c)}for(var c={repeatingSection:"",repeatRow:""},d=0,e=a.length;d<e;d++)I(a[d],c),d==e-1&&Va()},hidePreviouslyHiddenFields:function(){var a;a=[];for(var b=document.querySelectorAll('*[id^="frm_hide_fields_"]'),c=b.length,d,e=0;e<c;e++)d=b[e].id.replace("frm_hide_fields_",""),a=a.concat(E(d));b=
|
89 |
-
{repeatingSection:"",repeatRow:""},c=0,d=a.length;c<d;c++)I(a[c],b)},checkDependentLookupFields:function(a){for(var b,c={repeatingSection:"",repeatRow:""},d=0,e=a.length;d<e;d++)b=a[d],ca(b,c,"value changed")},loadGoogle:function(){if("undefined"!==typeof google&&google&&google.load)for(var a=__FRMTABLES,b=Object.keys(a),c=0;c<b.length;c++)if("graphs"===b[c])for(var d=
|
90 |
-
30)},removeUsedTimes:function(a,b){console.warn("DEPRECATED: function frmFrontForm.removeUsedTimes v2.03")},escapeHtml:function(a){return a.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},invisible:function(a){jQuery(a).css("visibility","hidden")},visible:function(a){jQuery(a).css("visibility","visible")}}}
|
91 |
-
function frmRecaptcha(){for(var l=jQuery(".frm-g-recaptcha"),m=0,q=l.length;m<q;m++){var r=grecaptcha.render(l[m].id,{sitekey:l[m].getAttribute("data-sitekey"),size:l[m].getAttribute("data-size"),theme:l[m].getAttribute("data-theme")});l[m].setAttribute("data-rid",r)}}
|
92 |
function frmUpdateField(l,m,q,r,x){jQuery(document.getElementById("frm_update_field_"+l+"_"+m)).html('<span class="frm-loading-img"></span>');jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:{action:"frm_entries_update_field_ajax",entry_id:l,field_id:m,value:q,nonce:frm_js.nonce},success:function(){""===r.replace(/^\s+|\s+$/g,"")?jQuery(document.getElementById("frm_update_field_"+l+"_"+m+"_"+x)).fadeOut("slow"):jQuery(document.getElementById("frm_update_field_"+l+"_"+m+"_"+x)).replaceWith(r)}})}
|
93 |
function frmEditEntry(l,m,q,r,x,y){console.warn("DEPRECATED: function frmEditEntry in v2.0.13 use frmFrontForm.editEntry");var A=jQuery(document.getElementById("frm_edit_"+l)),v=A.html(),z=jQuery(document.getElementById(m+l)),p=z.html();z.html('<span class="frm-loading-img" id="'+m+l+'"></span><div class="frm_orig_content" style="display:none">'+p+"</div>");jQuery.ajax({type:"POST",url:frm_js.ajax_url,dataType:"html",data:{action:"frm_entries_edit_entry_ajax",post_id:q,entry_id:l,id:r,nonce:frm_js.nonce},
|
94 |
success:function(p){z.children(".frm-loading-img").replaceWith(p);A.replaceWith('<span id="frm_edit_'+l+'"><a onclick="frmCancelEdit('+l+",'"+m+"','"+frmFrontForm.escapeHtml(v)+"',"+q+","+r+",'"+y+'\')" class="'+y+'">'+x+"</a></span>")}})}
|
29 |
document.getElementById("frm_hide_fields_"+b).value=c)}function ka(a,b,c){if(!("undefined"===typeof __FRMLOOKUP||"undefined"===typeof __FRMLOOKUP[a]||1>__FRMLOOKUP[a].dependents.length||null===b||"undefined"===typeof b)){a=__FRMLOOKUP[a];b=H(b[0].name);for(var d=0,e=a.dependents.length;d<e;d++)ca(a.dependents[d],b,c)}}function ca(a,b,c){a=Y(a);if(!(!1===a||1>a.parents.length))if("lookup"==a.fieldType){if(""!==b.repeatRow){c=[];var d="frm_field_"+a.fieldId+"-",d=d+(b.repeatingSection+"-"+b.repeatRow+
|
30 |
"_container");b=document.getElementById(d);null!==b&&c.push(b);b=c}else b=[],a.isRepeating?b=document.querySelectorAll(".frm_field_"+a.fieldId+"_container"):(c=document.getElementById("frm_field_"+a.fieldId+"_container"),null!==c&&b.push(c));c=0;for(d=b.length;c<d;c++){pa(a,b[c].id);var e=a,f=b[c];e.parentVals=Z(e);if("select"==e.inputType)bb(e,f);else if("radio"==e.inputType||"checkbox"==e.inputType)if(!1===e.parentVals){var h=f.getElementsByTagName("input");Ba(e,f);ba(h)}else cb(e,f)}}else if("value changed"===
|
31 |
c)for(c="field_"+a.fieldKey,c=a.isRepeating?""!==b.repeatingSection?'[id="'+c+"-"+b.repeatRow+'"]':'[id^="'+c+'-"]':'[id="'+c+'"]',b=document.querySelectorAll(c),c=0,d=b.length;c<d;c++)e=a,f=H(b[c].name),e.repeatRow=""!==f.repeatRow?f.repeatRow:"",e=a,f=b[c],e.parentVals=Z(e),za(e,f)}function Y(a){return"undefined"===typeof __FRMLOOKUP||"undefined"===typeof __FRMLOOKUP[a]?!1:__FRMLOOKUP[a]}function Z(a){for(var b=[],c=a.parents,d,e=0,f=c.length;e<f;e++){d=Y(c[e]);d=va(d,a);if(""===d||!1===d){b=!1;
|
32 |
+
break}b[e]=d}return b}function V(a){for(var b=!1,c=a.length,d=0;d<c;d++)if("hidden"==a[d].type||a[d].checked){b=a[d].value;break}return b}function bb(a,b){var c=b.getElementsByTagName("SELECT")[0];if(null!==c){var d=c.value;!1===a.parentVals?(c.options.length=1,""!==d&&(c.value="",L(c),t(jQuery(c),a.fieldKey))):(db(c),da(a.formId),jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:{action:"frm_replace_lookup_field_options",parent_fields:a.parents,parent_vals:a.parentVals,field_id:a.fieldId,nonce:frm_js.nonce},
|
33 |
+
success:function(b){var d=c.value;b=JSON.parse(b);for(var e=c.options.length;0<e;e--)c.remove(e);for(var g=b.length,e=0;e<g;e++)c.options[e+1]=new Option(b[e],b[e],!1,!1);c.value=d;""===c.value&&(b=c.getAttribute("data-frmval"),null!==b&&(c.value=b));!1===a.isReadOnly&&(c.disabled=!1);c.className=c.className.replace(" frm_loading_lookup","");L(c);c.value!=d&&t(jQuery(c),a.fieldKey);ea(a.formId)}}))}}function L(a){-1<a.className.indexOf("frm_chzn")&&jQuery().chosen&&jQuery(a).trigger("chosen:updated")}
|
34 |
function db(a){a.className+=" frm_loading_lookup";a.disabled=!0;L(a)}function da(a){M++;1>=M&&(a=Ca(a),null!==a&&P(jQuery(a)))}function ea(a){M--;0>=M&&(a=Ca(a),null!==a&&G(jQuery(a),"enable"))}function Ca(a){return document.querySelector("#frm_form_"+a+"_container form")}function cb(a,b){var c=b.getElementsByClassName("frm_opt_container")[0],d=c.getElementsByTagName("input");eb(b,c);var e="",e="radio"==a.inputType?V(d):K(d),f=jQuery(d[0]).data("frmval");da(a.formId);jQuery.ajax({type:"POST",url:frm_js.ajax_url,
|
35 |
data:{action:"frm_replace_cb_radio_lookup_options",parent_fields:a.parents,parent_vals:a.parentVals,field_id:a.fieldId,container_field_id:J(a),row_index:a.repeatRow,current_value:e,default_value:f,nonce:frm_js.nonce},success:function(e){c.innerHTML=e;e=b.getElementsByClassName("frm-loading-img")[0];null!==e&&void 0!==e&&e.parentNode.removeChild(e);c.style.display="block";1==d.length&&""===d[0].value?Ba(a,b):(!1!==B(b.id,a.formId)&&(e=S(a.fieldId),!1===e||1>e.conditions.length?(D(b.id,a.formId),jQuery("#"+
|
36 |
b.id).show()):(e.containerId=b.id,e.repeatRow=a.repeatRow,qa(e))),void 0!==f&&(!1!==("radio"==a.inputType?V(d):K(d))||1>d.length||ya(d[0].name,f)));t(jQuery(d[0]),a.fieldKey);ea(a.formId)}})}function Ba(a,b){B(b.id,a.formId)||(jQuery("#"+b.id).hide(),Aa(b.id,a.formId))}function za(a,b){if(!X(b,a.formId))if(!1===a.parentVals){var c=b.getAttribute("data-frmval");null===c&&(c="");Da(a,b,c)}else da(a.formId),jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:{action:"frm_get_lookup_text_value",parent_fields:a.parents,
|
42 |
"0"!==g.inEmbedForm&&(n=N(g.inEmbedForm,m))));g=n;!1===g&&aa(c,d[f],e,b)}}}function N(a,b){return-1<b.indexOf("frm_field_"+a+"_container")}function Ia(a,b,c){var d=!1;b.repeatingSection&&(a="frm_field_"+a+"-"+b.repeatingSection,a+="-"+b.repeatRow+"_container",d=-1<c.indexOf(a));return d}function aa(a,b,c,d){var e=a.calc[b],f=e.calc,h=jQuery(document.getElementById("field_"+b)),g={triggerField:d,inSection:!1,thisFieldCall:'input[id^="field_'+b+'-"]'};1>h.length&&"undefined"!==typeof d&&(g.inSection=
|
43 |
!0,g.thisFieldId=fb(a.fieldsWithCalc,b),h=Ja(g));if(!(null===h||1>h.length)){f=gb(e,f,a,c,g);if("text"!=e.calc_type){a=e.calc_dec;-1<f.indexOf(").toFixed(")&&(c=f.split(").toFixed("),Ka(c[1])&&(a=c[1],f=f.replace(").toFixed("+a,"")));f=hb(f);f=parseFloat(eval(f));if("undefined"===typeof f||isNaN(f))f=0;Ka(a)&&(f=f.toFixed(a))}h.val()!=f&&(h.val(f),t(h,b))}}function gb(a,b,c,d,e){for(var f=0,h=a.fields.length;f<h;f++){var g={triggerField:e.triggerField,thisFieldId:a.fields[f],inSection:e.inSection,
|
44 |
valKey:e.inSection+""+a.fields[f],thisField:c.fields[a.fields[f]],thisFieldCall:"input"+c.fieldKeys[a.fields[f]]},k=c;"checkbox"==g.thisField.type||"radio"==g.thisField.type||"scale"==g.thisField.type?g.thisFieldCall=g.thisFieldCall+":checked,"+g.thisFieldCall+"[type=hidden]":"select"==g.thisField.type||"time"==g.thisField.type?g.thisFieldCall="select"+k.fieldKeys[g.thisFieldId]+" option:selected,"+g.thisFieldCall+"[type=hidden]":"textarea"==g.thisField.type&&(g.thisFieldCall=g.thisFieldCall+",textarea"+
|
45 |
+
k.fieldKeys[g.thisFieldId]);if("text"==a.calc_type)g.valKey="text"+g.valKey,d=ib(g,d),"undefined"===typeof d[g.valKey]&&(d[g.valKey]="");else{g.valKey="num"+g.valKey;d=jb(g,c,d);if("undefined"===typeof d[g.valKey]||isNaN(d[g.valKey]))d[g.valKey]=0;"date"==g.thisField.type&&0===d[g.valKey]&&(b="")}k="["+g.thisFieldId+"]";k=k.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1");b=b.replace(new RegExp(k,"g"),d[g.valKey])}return b}function hb(a){var b=a.charAt(a.length-1);if("+"===b||"-"===b)a=a.substr(0,a.length-
|
46 |
+
1);return a}function jb(a,b,c){if("undefined"!==typeof c[a.valKey]&&0!==c[a.valKey])return c;c[a.valKey]=0;var d=La(a);if(!1===d)return c;d.each(function(){var d=Ma(a.thisField,this);if("date"==a.thisField.type){var f;f=b.date;var h=0;if(d)if("undefined"===typeof jQuery.datepicker){h="-";-1<f.indexOf("/")&&(h="/");f=f.split(h);var d=d.split(h),g,k;g=h=k="";for(var n=0;n<f.length;n++)if("y"==f[n])g=((new Date).getFullYear()+15).toString().substr(2,2),g=d[n]>g?"19"+d[n]:"20"+d[n];else if("yy"==f[n])g=
|
47 |
+
d[n];else if("m"==f[n]||"mm"==f[n])h=d[n],2>h.length&&(h="0"+h);else if("d"==f[n]||"dd"==f[n])k=d[n],2>k.length&&(k="0"+k);h=Date.parse(g+"-"+h+"-"+k)}else h=jQuery.datepicker.parseDate(f,d);f=h;null!==f&&(c[a.valKey]=Math.ceil(f/864E5))}else{f=d;""!==f&&0!==f&&(f=f.trim(),f=parseFloat(f.replace(/,/g,"").match(/-?[\d\.]+$/)));if("undefined"===typeof f||isNaN(f)||""===f)f=0;c[a.valKey]+=f}});return c}function ib(a,b){if("undefined"!==typeof b[a.valKey]&&""!==b[a.valKey])return b;b[a.valKey]="";var c=
|
48 |
+
La(a);if(!1===c)return b;var d=0,e="";c.each(function(){var c=Ma(a.thisField,this),c=c.trim();0<d&&("time"==a.thisField.type?1==d?e=":":2==d&&(e=" "):e=", ");""!==c&&(b[a.valKey]+=e+c,d++)});return b}function La(a){var b;if(!1===a.inSection)b=jQuery(a.thisFieldCall);else if(b=Ja(a),null===b||"undefined"===typeof b)b=jQuery(a.thisFieldCall);if(null===b||"undefined"===typeof b||1>b.length)b=!1;return b}function Ja(a){if("undefined"===typeof a.triggerField)return null;var b=a.triggerField.closest(".frm_repeat_sec, .frm_repeat_inline, .frm_repeat_grid");
|
49 |
return b.length?(a=a.thisFieldCall.replace("[id=","[id^="),b.find(a)):null}function Ma(a,b){var c;c=!1;if("hidden"==b.type)""!==ga(b)&&(c=!0);else if("select"==a.type){var d=b.className;d&&-1<d.indexOf("frm_other_trigger")&&(c=!0)}else("checkbox"==a.type||"radio"==a.type)&&-1<b.id.indexOf("-other_")&&0>b.id.indexOf("-otext")&&(c=!0);c?(c=0,"select"==a.type?"hidden"==b.type?(d=!1,2<b.name.split("[").length&&(d=!0),d||(c=ga(b))):c=jQuery(b).closest(".frm_other_container").find(".frm_other_input").val():
|
50 |
"checkbox"!=a.type&&"radio"!=a.type||"hidden"==b.type||(c=ga(b))):c="checkbox"!==b.type&&"radio"!==b.type||!b.checked?jQuery(b).val():b.value;"undefined"===typeof c&&(c="");return c}function ga(a){var b="";a=document.getElementById(a.id+"-otext");null!==a&&""!==a.value&&(b=a.value);return b}function Na(a){var b=!1;a=jQuery(a).find(".frm_saving_draft");a.length&&(b=a.val());return b}function Oa(a){var b=!1,c=jQuery(a).find(".frm_next_page");if(c.length&&c.val()){var d=jQuery(a).find('input[name="form_id"]').val();
|
51 |
a=jQuery(a).find('input[name="frm_page_order_'+d+'"]');a=a.length?a.val():0;if(!a||c.val()<a)b=!0}return b}function la(a,b){var c=a.getAttribute("data-frmfile");if("hidden"==a.type&&null===c)return b;var d="",e="";if("checkbox"==a.type||"radio"==a.type)c=jQuery('input[name="'+a.name+'"]').closest(".frm_required_field").find("input:checked"),jQuery(c).each(function(){d=this.value});else if("file"==a.type||c)"undefined"===typeof c&&(c=p(a,!0),c=c.replace("file","")),"undefined"===typeof b[c]&&(d=kb(c)),
|
67 |
d.fadeOut("slow",function(){d.remove();e.each(function(){var c=p(this,!1);"file"!=this.type&&Q(c,jQuery(this));D("frm_field_"+c+"-"+b+"-"+a+"_container",f)});"function"==typeof frmThemeOverride_frmRemoveRow&&frmThemeOverride_frmRemoveRow(c,d)});return!1}function tb(){if(!0===O)return!1;O=!0;var a=jQuery(this).data("parent"),b=0;if(0<jQuery(".frm_repeat_"+a).length)var c=jQuery(".frm_repeat_"+a+":last").attr("id").replace("frm_section_"+a+"-",""),b=-1<c.indexOf("i")?1:1+parseInt(c);jQuery.ajax({type:"POST",
|
68 |
url:frm_js.ajax_url,dataType:"json",data:{action:"frm_add_form_row",field_id:a,i:b,nonce:frm_js.nonce},success:function(c){var d=c.html,f=jQuery(d).hide().fadeIn("slow");jQuery(".frm_repeat_"+a+":last").after(f);var h=["other"],g,k,l={repeatingSection:a.toString(),repeatRow:b.toString()};jQuery(d).find("input, select, textarea").each(function(){if("file"!=this.type){if(""===this.name)return!0;g=this.name.replace("item_meta[","").split("]")[2].replace("[","");-1==jQuery.inArray(g,h)&&!1!==this.id&&
|
69 |
""!==this.id&&(k=jQuery("#"+this.id),h.push(g),I(g,l),ca(g,l,"value changed"),ja(g,k),ka(g,k,"value changed"),Q(g,k))}});r(l.repeatRow);Ua();fa();"function"==typeof frmThemeOverride_frmAddRow&&frmThemeOverride_frmAddRow(a,c);O=!1},error:function(){O=!1}});return!1}function ub(){var a=jQuery(this),b=a.data("entryid"),c=a.data("prefix"),d=a.data("pageid"),e=a.data("formid"),f=a.data("cancel"),h=a.data("fields"),g=a.data("excludefields"),k=jQuery(document.getElementById(c+b)),l=k.html();k.html('<span class="frm-loading-img" id="'+
|
70 |
+
c+b+'"></span><div class="frm_orig_content" style="display:none">'+l+"</div>");jQuery.ajax({type:"POST",url:frm_js.ajax_url,dataType:"html",data:{action:"frm_entries_edit_entry_ajax",post_id:d,entry_id:b,id:e,nonce:frm_js.nonce,fields:h,exclude_fields:g},success:function(d){k.children(".frm-loading-img").replaceWith(d);a.removeClass("frm_inplace_edit").addClass("frm_cancel_edit");a.html(f);ha("editInPlace");jQuery(document).on("change",'.frm-show-form input[name^="item_meta"], .frm-show-form select[name^="item_meta"], .frm-show-form textarea[name^="item_meta"]',
|
71 |
+
z);ia(c+b)}});return!1}function vb(){var a=jQuery(this),b=a.data("entryid"),c=a.data("prefix"),d=a.data("edit");a.hasClass("frm_ajax_edited")||(b=jQuery(document.getElementById(c+b)),b.children(".frm_forms").replaceWith(""),b.children(".frm_orig_content").fadeIn("slow").removeClass("frm_orig_content"));a.removeClass("frm_cancel_edit").addClass("frm_inplace_edit");a.html(d);return!1}function wb(){var a=jQuery(this),b=a.data("deleteconfirm");if(confirm(b)){var c=a.data("entryid"),d=a.data("prefix");
|
72 |
+
a.replaceWith('<span class="frm-loading-img" id="frm_delete_'+c+'"></span>');jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:{action:"frm_entries_destroy",entry:c,nonce:frm_js.nonce},success:function(a){if("success"==a.replace(/^\s+|\s+$/g,"")){var b=jQuery(document.getElementById(d+c));b.fadeOut("slow",function(){b.remove()});jQuery(document.getElementById("frm_delete_"+c)).fadeOut("slow")}else jQuery(document.getElementById("frm_delete_"+c)).replaceWith(a)}})}return!1}function ia(a){"undefined"!==
|
73 |
+
typeof __frmHideFields&&frmFrontForm.hidePreviouslyHiddenFields();jQuery(document).on("focusin",".frm_date",q);if("undefined"!==typeof __frmMasks)for(var b=__frmMasks,c=0;c<b.length;c++)jQuery(b[c].trigger).attr("data-frmmask",b[c].mask);Ua();fa(a);"undefined"!==typeof __frmDepDynamicFields&&frmFrontForm.checkDependentDynamicFields(__frmDepDynamicFields);"undefined"!==typeof __frmDepLookupFields&&frmFrontForm.checkDependentLookupFields(__frmDepLookupFields);if("undefined"!==typeof __FRMCALC){(a=__FRMCALC.triggers)&&
|
74 |
+
jQuery(a.join()).trigger({type:"change",selfTriggered:!0});a=__FRMCALC.calc;var b=[],d;for(d in a)1>a[d].fields.length&&(c=document.getElementById("field_"+d),null===c||X(c,a[d].form_id)||aa(__FRMCALC,d,b))}r()}function fa(a){if(jQuery().chosen){var b={allow_single_deselect:!0,no_results_text:frm_js.no_results};"undefined"!==typeof __frmChosen&&(b="{"+__frmChosen+"}");"undefined"!==typeof a?jQuery("#"+a).find(".frm_chzn").chosen(b):jQuery(".frm_chzn").chosen(b)}}function Ua(){if(jQuery().rating){var a=
|
75 |
+
jQuery(".star");a.length&&a.rating()}}function ha(a){"undefined"!==typeof __frmHideOrShowFields?frmFrontForm.hideOrShowFields(__frmHideOrShowFields,a):Va()}function Va(){jQuery(".frm_pro_form").fadeIn("slow")}function t(a,b){"undefined"===typeof b&&(b="dependent");1<a.length&&(a=a.eq(0));a.trigger({type:"change",selfTriggered:!0,frmTriggered:b})}function H(a){var b={repeatingSection:"",repeatRow:""};"undefined"!==typeof a&&3<=a.split("][").length&&(a=a.split("]["),b.repeatingSection=a[0].replace("item_meta[",
|
76 |
+
""),b.repeatRow=a[1]);return b}function Wa(a){a.fadeOut("slow",function(){a.remove()})}function xb(){var a=jQuery(this).data("frmconfirm");return confirm(a)}function yb(){var a=jQuery(this).data("frmtoggle");jQuery(a).is(":visible")?jQuery(a).slideUp("fast"):jQuery(a).slideDown("fast");return!1}function fb(a,b){for(var c in a)if(a.hasOwnProperty(c)&&a[c]===b)return c;return null}function Ka(a){return!jQuery.isArray(a)&&0<=a-parseFloat(a)+1}function zb(){Array.prototype.indexOf||(Array.prototype.indexOf=
|
77 |
+
function(a,b){var c=this.length>>>0,d=Number(b)||0,d=0>d?Math.ceil(d):Math.floor(d);for(0>d&&(d+=c);d<c;d++)if(d in this&&this[d]===a)return d;return-1})}function Ab(){"function"!==typeof String.prototype.trim&&(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")})}function Bb(){Array.prototype.filter||(Array.prototype.filter=function(a,b){if(void 0===this||null===this)throw new TypeError;var c=Object(this),d=c.length>>>0;if("function"!==typeof a)throw new TypeError;for(var e=[],
|
78 |
+
f=0;f<d;f++)if(f in c){var h=c[f];a.call(b,h,f,c)&&e.push(h)}return e})}function Cb(){Object.keys||(Object.keys=function(a){var b=[],c;for(c in a)a.hasOwnProperty(c)&&b.push(c);return b})}var O=!1,C="",w=[],M=0;return{init:function(){jQuery(document).off("submit.formidable",".frm-show-form");jQuery(document).on("submit.formidable",".frm-show-form",frmFrontForm.submitForm);jQuery(document).on("click",".frm_trigger",m);var a=jQuery(".frm_blank_field");a.length&&a.closest(".frm_toggle_container").prev(".frm_trigger").click();
|
79 |
+
jQuery.isFunction(jQuery.fn.placeholder)?jQuery(".frm-show-form input, .frm-show-form textarea").placeholder():jQuery(".frm-show-form input[onblur], .frm-show-form textarea[onblur]").each(function(){""===jQuery(this).val()&&jQuery(this).blur()});jQuery(document).on("focus",".frm_toggle_default",nb);jQuery(document).on("blur",".frm_toggle_default",ob);jQuery(".frm_toggle_default").blur();jQuery(document.getElementById("frm_resend_email")).click(pb);jQuery(document).on("click",".frm_remove_link",A);
|
80 |
+
jQuery(document).on("focusin","input[data-frmmask]",function(){jQuery(this).mask(jQuery(this).data("frmmask").toString())});jQuery(document).on("change",'.frm-show-form input[name^="item_meta"], .frm-show-form select[name^="item_meta"], .frm-show-form textarea[name^="item_meta"]',z);jQuery(document).on("click",'.frm-show-form input[type="submit"], .frm-show-form input[name="frm_prev_page"], .frm_page_back, .frm_page_skip, .frm-show-form .frm_save_draft, .frm_prev_page, .frm_button_submit',l);jQuery(document).on("change",
|
81 |
+
'.frm_other_container input[type="checkbox"], .frm_other_container input[type="radio"], .frm_other_container select',v);jQuery(document).on("click",".frm_remove_form_row",sb);jQuery(document).on("click",".frm_add_form_row",tb);jQuery(document).on("click","a[data-frmconfirm]",xb);jQuery("a[data-frmtoggle]").click(yb);jQuery(".frm_edit_link_container").on("click","a.frm_inplace_edit",ub);jQuery(".frm_edit_link_container").on("click","a.frm_cancel_edit",vb);jQuery(document).on("click",".frm_ajax_delete",
|
82 |
+
wb);jQuery(".frm_month_heading, .frm_year_heading").click(function(){var a=jQuery(this).children(".ui-icon-triangle-1-e, .ui-icon-triangle-1-s");a.hasClass("ui-icon-triangle-1-e")?(a.addClass("ui-icon-triangle-1-s").removeClass("ui-icon-triangle-1-e"),jQuery(this).next(".frm_toggle_container").fadeIn("slow")):(a.addClass("ui-icon-triangle-1-e").removeClass("ui-icon-triangle-1-s"),jQuery(this).next(".frm_toggle_container").hide())});ha("pageLoad");ia();zb();Ab();Bb();Cb()},submitForm:function(a){frmFrontForm.submitFormManual(a,
|
83 |
+
this)},submitFormManual:function(a,b){var c=b.className.trim().split(/\s+/gi);if((!c||-1<c.indexOf("frm_pro_form"))&&!jQuery("body").hasClass("wp-admin")){a.preventDefault();var d=frmFrontForm.validateFormSubmit(b);0===Object.keys(d).length&&(P(jQuery(b)),-1<c.indexOf("frm_ajax_submit")?1>jQuery(b).find('input[type="file"]').filter(function(){return!!this.value}).length?(C=jQuery(b).find('input[name="frm_action"]').val(),frmFrontForm.checkFormErrors(b,C)):b.submit():b.submit())}},validateFormSubmit:function(a){"undefined"!=
|
84 |
+
typeof tinyMCE&&jQuery(a).find(".wp-editor-wrap").length&&tinyMCE.triggerSave();w=[];var b=jQuery(a).hasClass("frm_js_validate");b&&(Na(a)||Oa(a))&&(b=!1);b&&(frmFrontForm.getAjaxFormErrors(a),Object.keys(w).length&&frmFrontForm.addAjaxFormErrors(a));return w},getAjaxFormErrors:function(a){var b=[],c=jQuery(a).find(".frm_required_field:visible input, .frm_required_field:visible select, .frm_required_field:visible textarea").filter(":not(.frm_optional)");if(c.length)for(var d=0,e=c.length;d<e;d++)b=
|
85 |
+
la(c[d],b);c=jQuery(a).find("input[type=email]").filter(":visible");d=jQuery(a).find("input,select,textarea");if(d.length)for(var e=0,f=d.length;e<f;e++){var h=d[e];""!==h.value&&"hidden"!=h.type&&("number"==h.type?b=na(h,b):"email"==h.type?b=ma(h,b,c):null!==h.pattern&&(b=oa(h,b)))}c=jQuery(a).find(".frm-g-recaptcha");c.length&&(d=c.data("rid"),0===grecaptcha.getResponse(d).length&&(c=c.closest(".frm_form_field").attr("id").replace("frm_field_","").replace("_container",""),b[c]=""));w=b;if("function"==
|
86 |
+
typeof frmThemeOverride_jsErrors&&(C=jQuery(a).find('input[name="frm_action"]').val(),a=frmThemeOverride_jsErrors(C,a),Object.keys(a).length))for(var g in a)w[g]=a[g];return w},addAjaxFormErrors:function(a){Pa();for(var b in w){var c=jQuery(a).find("#frm_field_"+b+"_container");c.length?R(c,b,w):delete w[b]}Qa(a)},checkFormErrors:function(a,b){lb(a,b)},scrollToID:function(a){a=jQuery(document.getElementById(a));frmFrontForm.scrollMsg(a,!1)},scrollMsg:function(a,b,c){if("undefined"==typeof b){if(a=
|
87 |
+
jQuery(document.getElementById("frm_form_"+a+"_container")),1>a.length)return}else a="string"==typeof a?jQuery(b).find("#frm_field_"+a+"_container"):a;if(a=a.offset().top){a-=frm_js.offset;b=jQuery("html").css("margin-top");var d=jQuery("body").css("margin-top");if(b||d)a=a-parseInt(b)-parseInt(d);if(a&&window.innerHeight&&(b=document.documentElement.scrollTop||document.body.scrollTop,a>b+window.innerHeight||a<b))return"undefined"===typeof c?jQuery(window).scrollTop(a):jQuery("html,body").animate({scrollTop:a},
|
88 |
+
500),!1}},savingDraft:function(a){return Na(a)},goingToPreviousPage:function(a){return Oa(a)},hideOrShowFields:function(a,b){if("pageLoad"===b){var c=document.querySelectorAll('[id^="frm_hide_fields_"]');ba(c)}for(var c={repeatingSection:"",repeatRow:""},d=0,e=a.length;d<e;d++)I(a[d],c),d==e-1&&Va()},hidePreviouslyHiddenFields:function(){var a;a=[];for(var b=document.querySelectorAll('*[id^="frm_hide_fields_"]'),c=b.length,d,e=0;e<c;e++)d=b[e].id.replace("frm_hide_fields_",""),a=a.concat(E(d));b=
|
89 |
+
0;for(c=a.length;b<c;b++)d=document.getElementById(a[b]),null!==d&&(d.style.display="none")},checkDependentDynamicFields:function(a){for(var b={repeatingSection:"",repeatRow:""},c=0,d=a.length;c<d;c++)I(a[c],b)},checkDependentLookupFields:function(a){for(var b,c={repeatingSection:"",repeatRow:""},d=0,e=a.length;d<e;d++)b=a[d],ca(b,c,"value changed")},loadGoogle:function(){if("undefined"!==typeof google&&google&&google.load)for(var a=__FRMTABLES,b=Object.keys(a),c=0;c<b.length;c++)if("graphs"===b[c])for(var d=
|
90 |
+
a[b[c]],e=0,f=d.length;e<f;e++)rb(d[e]);else for(d=a[b[c]],e=b[c],f=0;f<d.length;f++)qb(d[f],e);else setTimeout(frmFrontForm.loadGoogle,30)},removeUsedTimes:function(a,b){console.warn("DEPRECATED: function frmFrontForm.removeUsedTimes v2.03")},escapeHtml:function(a){return a.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},invisible:function(a){jQuery(a).css("visibility","hidden")},visible:function(a){jQuery(a).css("visibility","visible")}}}
|
91 |
+
var frmFrontForm=frmFrontFormJS();jQuery(document).ready(function(l){frmFrontForm.init()});function frmRecaptcha(){for(var l=jQuery(".frm-g-recaptcha"),m=0,q=l.length;m<q;m++){var r=grecaptcha.render(l[m].id,{sitekey:l[m].getAttribute("data-sitekey"),size:l[m].getAttribute("data-size"),theme:l[m].getAttribute("data-theme")});l[m].setAttribute("data-rid",r)}}
|
92 |
function frmUpdateField(l,m,q,r,x){jQuery(document.getElementById("frm_update_field_"+l+"_"+m)).html('<span class="frm-loading-img"></span>');jQuery.ajax({type:"POST",url:frm_js.ajax_url,data:{action:"frm_entries_update_field_ajax",entry_id:l,field_id:m,value:q,nonce:frm_js.nonce},success:function(){""===r.replace(/^\s+|\s+$/g,"")?jQuery(document.getElementById("frm_update_field_"+l+"_"+m+"_"+x)).fadeOut("slow"):jQuery(document.getElementById("frm_update_field_"+l+"_"+m+"_"+x)).replaceWith(r)}})}
|
93 |
function frmEditEntry(l,m,q,r,x,y){console.warn("DEPRECATED: function frmEditEntry in v2.0.13 use frmFrontForm.editEntry");var A=jQuery(document.getElementById("frm_edit_"+l)),v=A.html(),z=jQuery(document.getElementById(m+l)),p=z.html();z.html('<span class="frm-loading-img" id="'+m+l+'"></span><div class="frm_orig_content" style="display:none">'+p+"</div>");jQuery.ajax({type:"POST",url:frm_js.ajax_url,dataType:"html",data:{action:"frm_entries_edit_entry_ajax",post_id:q,entry_id:l,id:r,nonce:frm_js.nonce},
|
94 |
success:function(p){z.children(".frm-loading-img").replaceWith(p);A.replaceWith('<span id="frm_edit_'+l+'"><a onclick="frmCancelEdit('+l+",'"+m+"','"+frmFrontForm.escapeHtml(v)+"',"+q+","+r+",'"+y+'\')" class="'+y+'">'+x+"</a></span>")}})}
|
languages/formidable-da_DK.mo
ADDED
Binary file
|
languages/formidable-da_DK.po
ADDED
@@ -0,0 +1,7926 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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