Version Description
- Bugfix: Form title "Display" control wasn't working.
Download this release
Release Info
Developer | happyforms |
Plugin | Form builder to get in touch with visitors, grow your email list and collect payments — Happyforms |
Version | 1.11.1 |
Comparing to | |
See all releases |
Code changes from version 1.11.0 to 1.11.1
- happyforms.php +2 -2
- inc/assets/js/customize.js +22 -51
- languages/happyforms.pot +2 -2
- readme.txt +7 -1
happyforms.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Plugin URI: https://happyforms.io
|
6 |
* Description: We're changin' WordPress forms.
|
7 |
* Author: Happyforms
|
8 |
-
* Version: 1.11.
|
9 |
* Author URI: https://happyforms.io
|
10 |
* Upgrade URI: https://happyforms.io/upgrade
|
11 |
*/
|
@@ -13,7 +13,7 @@
|
|
13 |
/**
|
14 |
* The current version of the plugin.
|
15 |
*/
|
16 |
-
define( 'HAPPYFORMS_VERSION', '1.11.
|
17 |
|
18 |
if ( ! function_exists( 'happyforms_plugin_file' ) ):
|
19 |
/**
|
5 |
* Plugin URI: https://happyforms.io
|
6 |
* Description: We're changin' WordPress forms.
|
7 |
* Author: Happyforms
|
8 |
+
* Version: 1.11.1
|
9 |
* Author URI: https://happyforms.io
|
10 |
* Upgrade URI: https://happyforms.io/upgrade
|
11 |
*/
|
13 |
/**
|
14 |
* The current version of the plugin.
|
15 |
*/
|
16 |
+
define( 'HAPPYFORMS_VERSION', '1.11.1' );
|
17 |
|
18 |
if ( ! function_exists( 'happyforms_plugin_file' ) ):
|
19 |
/**
|
inc/assets/js/customize.js
CHANGED
@@ -1938,15 +1938,11 @@
|
|
1938 |
template: '#happyforms-form-style-template',
|
1939 |
|
1940 |
events: _.extend( {}, classes.views.Base.prototype.events, {
|
|
|
1941 |
'click h3.accordion-section-title': 'onGroupClick',
|
1942 |
'click .customize-panel-back': 'onGroupBackClick',
|
1943 |
-
'change [data-target="form_class"]
|
1944 |
-
'change [data-target="form_class"] select': 'onFormClassChange',
|
1945 |
-
'change [data-target="form_class"] input[type="checkbox"]': 'onFormClassCheckboxChange',
|
1946 |
'change [data-target="css_var"] input[type=radio]': 'onRadioChange',
|
1947 |
-
'keyup [data-target="attribute"] input[type=text]': 'onAttributeChange',
|
1948 |
-
'change [data-attribute="part_description_mode"]': 'onChangeGlobalControls',
|
1949 |
-
'change [data-attribute="part_title_label_placement"]': 'onChangeGlobalControls',
|
1950 |
'navigate-to-group': 'navigateToGroup',
|
1951 |
} ),
|
1952 |
|
@@ -1955,6 +1951,10 @@
|
|
1955 |
initialize: function() {
|
1956 |
classes.views.Base.prototype.initialize.apply( this, arguments );
|
1957 |
|
|
|
|
|
|
|
|
|
1958 |
this.styles = new Backbone.Collection();
|
1959 |
},
|
1960 |
|
@@ -2014,43 +2014,24 @@
|
|
2014 |
onFormClassChange: function( e ) {
|
2015 |
e.preventDefault();
|
2016 |
|
2017 |
-
var $target = $( e.target );
|
2018 |
-
var attribute = $target.data( 'attribute' );
|
2019 |
-
var value = $target.val();
|
2020 |
-
|
2021 |
-
happyForms.form.set( attribute, value );
|
2022 |
-
|
2023 |
var data = {
|
2024 |
-
attribute: attribute,
|
2025 |
callback: 'onFormClassChangeCallback',
|
2026 |
};
|
2027 |
|
2028 |
happyForms.previewSend( 'happyforms-form-class-update', data );
|
2029 |
},
|
2030 |
|
2031 |
-
|
2032 |
-
|
2033 |
-
|
2034 |
-
var $target = $( e.target );
|
2035 |
-
var attribute = $target.data( 'attribute' );
|
2036 |
-
var value = $target.val();
|
2037 |
-
|
2038 |
-
happyForms.form.set( attribute, value );
|
2039 |
-
|
2040 |
-
var partAttribute = '';
|
2041 |
|
2042 |
-
|
2043 |
-
|
2044 |
-
|
2045 |
-
break;
|
2046 |
-
case 'part_title_label_placement':
|
2047 |
-
partAttribute = 'label_placement';
|
2048 |
-
break;
|
2049 |
-
default:
|
2050 |
-
break;
|
2051 |
-
}
|
2052 |
|
2053 |
-
|
|
|
2054 |
$partModel.set( partAttribute, value );
|
2055 |
} );
|
2056 |
|
@@ -2059,22 +2040,10 @@
|
|
2059 |
} );
|
2060 |
},
|
2061 |
|
2062 |
-
|
2063 |
-
e.preventDefault();
|
2064 |
-
|
2065 |
-
var $target = $( e.target );
|
2066 |
-
var attribute = $target.data( 'attribute' );
|
2067 |
-
var value = $target.val();
|
2068 |
-
|
2069 |
-
if ( $target.is(':checked') ) {
|
2070 |
-
happyForms.form.set( attribute, value );
|
2071 |
-
} else {
|
2072 |
-
happyForms.form.set( attribute, '' );
|
2073 |
-
}
|
2074 |
-
|
2075 |
var data = {
|
2076 |
-
attribute:
|
2077 |
-
callback: '
|
2078 |
};
|
2079 |
|
2080 |
happyForms.previewSend( 'happyforms-form-class-update', data );
|
@@ -2089,8 +2058,6 @@
|
|
2089 |
|
2090 |
var value = $target.val();
|
2091 |
|
2092 |
-
happyForms.form.set( attribute, value );
|
2093 |
-
|
2094 |
var data = {
|
2095 |
variable: variable,
|
2096 |
value: value,
|
@@ -2106,6 +2073,10 @@
|
|
2106 |
var attribute = $target.data( 'attribute' );
|
2107 |
var value = $target.val();
|
2108 |
|
|
|
|
|
|
|
|
|
2109 |
happyForms.form.set( attribute, value );
|
2110 |
},
|
2111 |
|
1938 |
template: '#happyforms-form-style-template',
|
1939 |
|
1940 |
events: _.extend( {}, classes.views.Base.prototype.events, {
|
1941 |
+
'change [data-attribute]': 'onAttributeChange',
|
1942 |
'click h3.accordion-section-title': 'onGroupClick',
|
1943 |
'click .customize-panel-back': 'onGroupBackClick',
|
1944 |
+
'change [data-target="form_class"]': 'onFormClassChange',
|
|
|
|
|
1945 |
'change [data-target="css_var"] input[type=radio]': 'onRadioChange',
|
|
|
|
|
|
|
1946 |
'navigate-to-group': 'navigateToGroup',
|
1947 |
} ),
|
1948 |
|
1951 |
initialize: function() {
|
1952 |
classes.views.Base.prototype.initialize.apply( this, arguments );
|
1953 |
|
1954 |
+
this.listenTo( this.model, 'change:form_title', this.onChangeTitleDisplay );
|
1955 |
+
this.listenTo( this.model, 'change:part_title_label_placement', this.onChangeGlobalLabelPosition );
|
1956 |
+
this.listenTo( this.model, 'change:part_description_mode', this.onChangeGlobalDescriptionMode );
|
1957 |
+
|
1958 |
this.styles = new Backbone.Collection();
|
1959 |
},
|
1960 |
|
2014 |
onFormClassChange: function( e ) {
|
2015 |
e.preventDefault();
|
2016 |
|
|
|
|
|
|
|
|
|
|
|
|
|
2017 |
var data = {
|
2018 |
+
attribute: $( e.target ).data( 'attribute' ),
|
2019 |
callback: 'onFormClassChangeCallback',
|
2020 |
};
|
2021 |
|
2022 |
happyForms.previewSend( 'happyforms-form-class-update', data );
|
2023 |
},
|
2024 |
|
2025 |
+
onChangeGlobalLabelPosition: function( model, value ) {
|
2026 |
+
this.refreshFormParts( 'label_placement', value );
|
2027 |
+
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2028 |
|
2029 |
+
onChangeGlobalDescriptionMode: function( model, value ) {
|
2030 |
+
this.refreshFormParts( 'description_mode', value );
|
2031 |
+
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2032 |
|
2033 |
+
refreshFormParts: function( partAttribute, value ) {
|
2034 |
+
happyForms.form.get( 'parts' ).forEach( function( $partModel ) {
|
2035 |
$partModel.set( partAttribute, value );
|
2036 |
} );
|
2037 |
|
2040 |
} );
|
2041 |
},
|
2042 |
|
2043 |
+
onChangeTitleDisplay: function() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2044 |
var data = {
|
2045 |
+
attribute: 'form_title',
|
2046 |
+
callback: 'onFormClassChangeCallback',
|
2047 |
};
|
2048 |
|
2049 |
happyForms.previewSend( 'happyforms-form-class-update', data );
|
2058 |
|
2059 |
var value = $target.val();
|
2060 |
|
|
|
|
|
2061 |
var data = {
|
2062 |
variable: variable,
|
2063 |
value: value,
|
2073 |
var attribute = $target.data( 'attribute' );
|
2074 |
var value = $target.val();
|
2075 |
|
2076 |
+
if ( $target.is( ':checkbox' ) ) {
|
2077 |
+
value = $target.is( ':checked' ) ? value : '';
|
2078 |
+
}
|
2079 |
+
|
2080 |
happyForms.form.set( attribute, value );
|
2081 |
},
|
2082 |
|
languages/happyforms.pot
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
# This file is distributed under the same license as the Happyforms (free) package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Happyforms (free) 1.11.
|
6 |
"Report-Msgid-Bugs-To: https://thethemefoundry.com/support/\n"
|
7 |
-
"POT-Creation-Date: 2021-03-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
2 |
# This file is distributed under the same license as the Happyforms (free) package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Happyforms (free) 1.11.1\n"
|
6 |
"Report-Msgid-Bugs-To: https://thethemefoundry.com/support/\n"
|
7 |
+
"POT-Creation-Date: 2021-03-04 06:28:33+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: contact form, contact form plugin, forms, form builder, custom form, intak
|
|
5 |
Requires at least: 4.8
|
6 |
Tested up to: 5.6
|
7 |
Requires PHP: 5.3
|
8 |
-
Stable tag: 1.11.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -144,6 +144,9 @@ Note: you'll need to upgrade to our paid contact form builder plugin to get some
|
|
144 |
|
145 |
== Changelog ==
|
146 |
|
|
|
|
|
|
|
147 |
= 1.11.0 =
|
148 |
* Improvement: Better support for 3rd party popup plugins.
|
149 |
* Improvement: Better support for tab navigation in Dropdown field.
|
@@ -757,6 +760,9 @@ Note: you'll need to upgrade to our paid contact form builder plugin to get some
|
|
757 |
|
758 |
== Upgrade Notice ==
|
759 |
|
|
|
|
|
|
|
760 |
= 1.11.0 =
|
761 |
* Better support for 3rd party popup plugins, miscellaneous improvements and bugfixes.
|
762 |
|
5 |
Requires at least: 4.8
|
6 |
Tested up to: 5.6
|
7 |
Requires PHP: 5.3
|
8 |
+
Stable tag: 1.11.1
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
144 |
|
145 |
== Changelog ==
|
146 |
|
147 |
+
= 1.11.1 =
|
148 |
+
* Bugfix: Form title "Display" control wasn't working.
|
149 |
+
|
150 |
= 1.11.0 =
|
151 |
* Improvement: Better support for 3rd party popup plugins.
|
152 |
* Improvement: Better support for tab navigation in Dropdown field.
|
760 |
|
761 |
== Upgrade Notice ==
|
762 |
|
763 |
+
= 1.11.1 =
|
764 |
+
* Form title "Display" control fixes.
|
765 |
+
|
766 |
= 1.11.0 =
|
767 |
* Better support for 3rd party popup plugins, miscellaneous improvements and bugfixes.
|
768 |
|