Version Description
- Bugfix: Phone country dropdown was not opening after other dropdown part was focused.
Download this release
Release Info
Developer | thethemefoundry |
Plugin | Form builder to get in touch with visitors, grow your email list and collect payments — Happyforms |
Version | 1.6.19 |
Comparing to | |
See all releases |
Code changes from version 1.6.18 to 1.6.19
- happyforms.php +2 -2
- inc/core/assets/css/frontend.css +1 -0
- inc/core/assets/js/frontend/phone.js +17 -13
- inc/core/templates/customize-form-setup.php +2 -2
- languages/happyforms.pot +4 -4
- readme.txt +7 -1
happyforms.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Plugin URI: https://happyforms.me
|
6 |
* Description: Your friendly drag and drop contact form builder for creating contact forms, lead generation forms, feedback forms, quote forms, survey forms and more!
|
7 |
* Author: The Theme Foundry
|
8 |
-
* Version: 1.6.
|
9 |
* Author URI: https://thethemefoundry.com
|
10 |
* Upgrade URI: https://thethemefoundry.com
|
11 |
*/
|
@@ -13,7 +13,7 @@
|
|
13 |
/**
|
14 |
* The current version of the plugin.
|
15 |
*/
|
16 |
-
define( 'HAPPYFORMS_VERSION', '1.6.
|
17 |
|
18 |
if ( ! function_exists( 'happyforms_plugin_file' ) ):
|
19 |
/**
|
5 |
* Plugin URI: https://happyforms.me
|
6 |
* Description: Your friendly drag and drop contact form builder for creating contact forms, lead generation forms, feedback forms, quote forms, survey forms and more!
|
7 |
* Author: The Theme Foundry
|
8 |
+
* Version: 1.6.19
|
9 |
* Author URI: https://thethemefoundry.com
|
10 |
* Upgrade URI: https://thethemefoundry.com
|
11 |
*/
|
13 |
/**
|
14 |
* The current version of the plugin.
|
15 |
*/
|
16 |
+
define( 'HAPPYFORMS_VERSION', '1.6.19' );
|
17 |
|
18 |
if ( ! function_exists( 'happyforms_plugin_file' ) ):
|
19 |
/**
|
inc/core/assets/css/frontend.css
CHANGED
@@ -2580,6 +2580,7 @@ form .happyforms-flex > .happyforms-message-notices .error {
|
|
2580 |
white-space: nowrap;
|
2581 |
width: 100%;
|
2582 |
max-height: 250px;
|
|
|
2583 |
overflow-y: scroll;
|
2584 |
box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2)
|
2585 |
}
|
2580 |
white-space: nowrap;
|
2581 |
width: 100%;
|
2582 |
max-height: 250px;
|
2583 |
+
overflow-x: hidden;
|
2584 |
overflow-y: scroll;
|
2585 |
box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2)
|
2586 |
}
|
inc/core/assets/js/frontend/phone.js
CHANGED
@@ -151,33 +151,37 @@
|
|
151 |
this.$countryDropdown = $( '.happyforms-custom-select-dropdown', this.$el );
|
152 |
this.$countrySearchField = $( '.happyforms-custom-select-dropdown__search', this.$el );
|
153 |
|
154 |
-
this.$countryTrigger.on( 'click', this.
|
155 |
this.$countrySearchField.on( 'keyup', this.searchCountries.bind(this) );
|
156 |
|
157 |
$( '.happyforms-custom-select-dropdown__item', this.$countryDropdown ).on( 'click keyup', this.onCountrySelect.bind(this) );
|
158 |
$( window ).on( 'click', this.maybeCloseCountryDropdown.bind(this) );
|
159 |
},
|
160 |
|
161 |
-
|
162 |
if ( 'undefined' !== typeof e ) {
|
163 |
e.preventDefault();
|
164 |
e.stopPropagation();
|
165 |
}
|
166 |
|
167 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
168 |
this.$countryDropdown.scrollTop(0);
|
169 |
-
this.$countryDropdown.
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
this.$countrySearchField.val('');
|
174 |
-
$( 'li', this.$countryDropdown ).show();
|
175 |
-
}
|
176 |
},
|
177 |
|
178 |
maybeCloseCountryDropdown: function (e) {
|
179 |
-
if ( this.$countryDropdown.
|
180 |
-
this.
|
181 |
}
|
182 |
},
|
183 |
|
@@ -216,7 +220,7 @@
|
|
216 |
this.inputObject.destroyCleave();
|
217 |
this.inputObject.initCleave();
|
218 |
|
219 |
-
this.
|
220 |
},
|
221 |
|
222 |
searchCountries: function(e) {
|
151 |
this.$countryDropdown = $( '.happyforms-custom-select-dropdown', this.$el );
|
152 |
this.$countrySearchField = $( '.happyforms-custom-select-dropdown__search', this.$el );
|
153 |
|
154 |
+
this.$countryTrigger.on( 'click', this.showCountryDropdown.bind(this) );
|
155 |
this.$countrySearchField.on( 'keyup', this.searchCountries.bind(this) );
|
156 |
|
157 |
$( '.happyforms-custom-select-dropdown__item', this.$countryDropdown ).on( 'click keyup', this.onCountrySelect.bind(this) );
|
158 |
$( window ).on( 'click', this.maybeCloseCountryDropdown.bind(this) );
|
159 |
},
|
160 |
|
161 |
+
showCountryDropdown: function(e) {
|
162 |
if ( 'undefined' !== typeof e ) {
|
163 |
e.preventDefault();
|
164 |
e.stopPropagation();
|
165 |
}
|
166 |
|
167 |
+
$( '.happyforms-custom-select-dropdown' ).hide();
|
168 |
+
$( '.happyforms-country-select__selected-country' ).removeClass( 'open' );
|
169 |
+
this.$currentCountry.addClass( 'open' );
|
170 |
+
this.$countryDropdown.show();
|
171 |
+
},
|
172 |
+
|
173 |
+
hideCountryDropdown: function() {
|
174 |
+
this.$currentCountry.removeClass('open');
|
175 |
this.$countryDropdown.scrollTop(0);
|
176 |
+
this.$countryDropdown.hide();
|
177 |
+
|
178 |
+
this.$countrySearchField.val('');
|
179 |
+
$( 'li', this.$countryDropdown ).show();
|
|
|
|
|
|
|
180 |
},
|
181 |
|
182 |
maybeCloseCountryDropdown: function (e) {
|
183 |
+
if ( this.$countryDropdown.is(':visible') && -1 >= e.target.className.indexOf('happyforms-custom-select') ) {
|
184 |
+
this.hideCountryDropdown();
|
185 |
}
|
186 |
},
|
187 |
|
220 |
this.inputObject.destroyCleave();
|
221 |
this.inputObject.initCleave();
|
222 |
|
223 |
+
this.hideCountryDropdown();
|
224 |
},
|
225 |
|
226 |
searchCountries: function(e) {
|
inc/core/templates/customize-form-setup.php
CHANGED
@@ -83,13 +83,13 @@
|
|
83 |
<div class="customize-control customize-control-checkbox">
|
84 |
<div class="customize-inside-control-row" data-pointer-target>
|
85 |
<input type="checkbox" value="1" id="happyforms-save-entries" <% if ( save_entries ) { %>checked="checked"<% } %> data-attribute="save_entries" />
|
86 |
-
<label for="happyforms-save-entries"><?php _e( 'Save
|
87 |
</div>
|
88 |
</div>
|
89 |
<div class="customize-control customize-control-checkbox">
|
90 |
<div class="customize-inside-control-row" data-pointer-target>
|
91 |
<input type="checkbox" value="1" id="happyforms-unique-id" <% if ( unique_id ) { %>checked="checked"<% } %> data-attribute="unique_id" />
|
92 |
-
<label for="happyforms-unique-id"><?php _e( 'Add identifying number to
|
93 |
</div>
|
94 |
</div>
|
95 |
<div id="happyforms-unique-id-settings" <% if ( unique_id ) { %>style="display: block;"<% } %>>
|
83 |
<div class="customize-control customize-control-checkbox">
|
84 |
<div class="customize-inside-control-row" data-pointer-target>
|
85 |
<input type="checkbox" value="1" id="happyforms-save-entries" <% if ( save_entries ) { %>checked="checked"<% } %> data-attribute="save_entries" />
|
86 |
+
<label for="happyforms-save-entries"><?php _e( 'Save responses for this form', 'happyforms' ); ?> <i class="fa fa-question-circle" aria-hidden="true" data-pointer="save_entries"></i></label>
|
87 |
</div>
|
88 |
</div>
|
89 |
<div class="customize-control customize-control-checkbox">
|
90 |
<div class="customize-inside-control-row" data-pointer-target>
|
91 |
<input type="checkbox" value="1" id="happyforms-unique-id" <% if ( unique_id ) { %>checked="checked"<% } %> data-attribute="unique_id" />
|
92 |
+
<label for="happyforms-unique-id"><?php _e( 'Add identifying number to responses', 'happyforms' ); ?> <i class="fa fa-question-circle" aria-hidden="true" data-pointer="unique_id"></i></label>
|
93 |
</div>
|
94 |
</div>
|
95 |
<div id="happyforms-unique-id-settings" <% if ( unique_id ) { %>style="display: block;"<% } %>>
|
languages/happyforms.pot
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
# This file is distributed under the same license as the HappyForms package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: HappyForms 1.6.
|
6 |
"Report-Msgid-Bugs-To: https://thethemefoundry.com/support/\n"
|
7 |
-
"POT-Creation-Date: 2019-01-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -2857,11 +2857,11 @@ msgid "ReCaptcha secret key"
|
|
2857 |
msgstr ""
|
2858 |
|
2859 |
#: inc/core/templates/customize-form-setup.php:86
|
2860 |
-
msgid "Save
|
2861 |
msgstr ""
|
2862 |
|
2863 |
#: inc/core/templates/customize-form-setup.php:92
|
2864 |
-
msgid "Add identifying number to
|
2865 |
msgstr ""
|
2866 |
|
2867 |
#: inc/core/templates/customize-form-setup.php:97
|
2 |
# This file is distributed under the same license as the HappyForms package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: HappyForms 1.6.19\n"
|
6 |
"Report-Msgid-Bugs-To: https://thethemefoundry.com/support/\n"
|
7 |
+
"POT-Creation-Date: 2019-01-25 08:09:48+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
2857 |
msgstr ""
|
2858 |
|
2859 |
#: inc/core/templates/customize-form-setup.php:86
|
2860 |
+
msgid "Save responses for this form"
|
2861 |
msgstr ""
|
2862 |
|
2863 |
#: inc/core/templates/customize-form-setup.php:92
|
2864 |
+
msgid "Add identifying number to responses"
|
2865 |
msgstr ""
|
2866 |
|
2867 |
#: inc/core/templates/customize-form-setup.php:97
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: contact, contact form, email, feedback form, form, form builder, custom fo
|
|
5 |
Requires at least: 4.8
|
6 |
Tested up to: 5.0
|
7 |
Requires PHP: 5.3
|
8 |
-
Stable tag: 1.6.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -80,6 +80,9 @@ Absolutely! HappyForms gets out of the way and is designed to work with any them
|
|
80 |
|
81 |
== Changelog ==
|
82 |
|
|
|
|
|
|
|
83 |
= 1.6.18 =
|
84 |
* Improvement: Various CSS tweaks to improve responsive behavior, and colors set in HappyForms style step.
|
85 |
* Bugfix: Number spinners in font size controls were not updating value in preview pane.
|
@@ -364,6 +367,9 @@ Absolutely! HappyForms gets out of the way and is designed to work with any them
|
|
364 |
|
365 |
== Upgrade Notice ==
|
366 |
|
|
|
|
|
|
|
367 |
= 1.6.18 =
|
368 |
* Bugfixes and CSS improvements.
|
369 |
|
5 |
Requires at least: 4.8
|
6 |
Tested up to: 5.0
|
7 |
Requires PHP: 5.3
|
8 |
+
Stable tag: 1.6.19
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
80 |
|
81 |
== Changelog ==
|
82 |
|
83 |
+
= 1.6.19 =
|
84 |
+
* Bugfix: Phone country dropdown was not opening after other dropdown part was focused.
|
85 |
+
|
86 |
= 1.6.18 =
|
87 |
* Improvement: Various CSS tweaks to improve responsive behavior, and colors set in HappyForms style step.
|
88 |
* Bugfix: Number spinners in font size controls were not updating value in preview pane.
|
367 |
|
368 |
== Upgrade Notice ==
|
369 |
|
370 |
+
= 1.6.19 =
|
371 |
+
* Fix Phone country dropdown not opening after other dropdown parts were focused.
|
372 |
+
|
373 |
= 1.6.18 =
|
374 |
* Bugfixes and CSS improvements.
|
375 |
|