Form builder to get in touch with visitors, grow your email list and collect payments — Happyforms - Version 1.6.19

Version Description

  • Bugfix: Phone country dropdown was not opening after other dropdown part was focused.
Download this release

Release Info

Developer thethemefoundry
Plugin Icon 128x128 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 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.18
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.18' );
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.toggleCountryDropdown.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
- toggleCountryDropdown: function(e) {
162
  if ( 'undefined' !== typeof e ) {
163
  e.preventDefault();
164
  e.stopPropagation();
165
  }
166
 
167
- this.$currentCountry.toggleClass('open');
 
 
 
 
 
 
 
168
  this.$countryDropdown.scrollTop(0);
169
- this.$countryDropdown.toggleClass('active');
170
-
171
- // clear search input val and show all items on dropdown close
172
- if ( ! this.$countryDropdown.hasClass('active') ) {
173
- this.$countrySearchField.val('');
174
- $( 'li', this.$countryDropdown ).show();
175
- }
176
  },
177
 
178
  maybeCloseCountryDropdown: function (e) {
179
- if ( this.$countryDropdown.hasClass('active') && -1 >= e.target.className.indexOf('happyforms-custom-select') ) {
180
- this.toggleCountryDropdown();
181
  }
182
  },
183
 
@@ -216,7 +220,7 @@
216
  this.inputObject.destroyCleave();
217
  this.inputObject.initCleave();
218
 
219
- this.toggleCountryDropdown();
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 messages 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 messages', '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;"<% } %>>
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.18\n"
6
  "Report-Msgid-Bugs-To: https://thethemefoundry.com/support/\n"
7
- "POT-Creation-Date: 2019-01-18 13:01:42+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,11 +2857,11 @@ msgid "ReCaptcha secret key"
2857
  msgstr ""
2858
 
2859
  #: inc/core/templates/customize-form-setup.php:86
2860
- msgid "Save messages for this form"
2861
  msgstr ""
2862
 
2863
  #: inc/core/templates/customize-form-setup.php:92
2864
- msgid "Add identifying number to messages"
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.18
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