Version Description
- Improvement: Removed jQuery deprecations.
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.12.0 |
Comparing to | |
See all releases |
Code changes from version 1.11.1 to 1.12.0
- core/assets/js/admin/dashboard.js +2 -2
- core/assets/js/lib/happyforms-select.js +6 -6
- core/assets/js/parts/part-checkbox.js +7 -7
- core/assets/js/parts/part-radio.js +7 -7
- core/assets/js/parts/part-select.js +7 -7
- core/assets/js/parts/part-single-line-text.js +1 -1
- core/assets/js/welcome.js +4 -4
- happyforms.php +2 -2
- inc/assets/js/admin/dashboard.js +2 -2
- inc/assets/js/customize.js +8 -8
- inc/assets/js/frontend.js +6 -6
- inc/assets/js/preview.js +1 -1
- languages/happyforms.pot +2 -2
- readme.txt +8 -2
core/assets/js/admin/dashboard.js
CHANGED
@@ -44,7 +44,7 @@
|
|
44 |
$( '#happyforms-dialog-select' ).val( '' );
|
45 |
|
46 |
if ( editor = this.getCurrentEditor() ) {
|
47 |
-
editor.focus
|
48 |
}
|
49 |
},
|
50 |
|
@@ -84,7 +84,7 @@
|
|
84 |
},
|
85 |
};
|
86 |
|
87 |
-
$(
|
88 |
happyForms.dashboard.init();
|
89 |
} );
|
90 |
|
44 |
$( '#happyforms-dialog-select' ).val( '' );
|
45 |
|
46 |
if ( editor = this.getCurrentEditor() ) {
|
47 |
+
editor.trigger( 'focus' );
|
48 |
}
|
49 |
},
|
50 |
|
84 |
},
|
85 |
};
|
86 |
|
87 |
+
$( function() {
|
88 |
happyForms.dashboard.init();
|
89 |
} );
|
90 |
|
core/assets/js/lib/happyforms-select.js
CHANGED
@@ -33,10 +33,10 @@
|
|
33 |
}
|
34 |
|
35 |
HappyFormsSelect.prototype.init = function() {
|
36 |
-
this.$el.
|
37 |
|
38 |
if ( this.searchable && 'false' !== this.searchable ) {
|
39 |
-
this.$el.
|
40 |
}
|
41 |
|
42 |
this.defaultValue = this.$input.val();
|
@@ -62,7 +62,7 @@
|
|
62 |
HappyFormsSelect.prototype.handleClick = function( e ) {
|
63 |
e.stopPropagation();
|
64 |
|
65 |
-
this.$el.focus
|
66 |
this.toggleDropdown();
|
67 |
}
|
68 |
|
@@ -89,7 +89,7 @@
|
|
89 |
if ( ! this.$select.is( ':visible' ) ) {
|
90 |
this.hideAllInstances();
|
91 |
|
92 |
-
this.$input.focus
|
93 |
this.$select.show();
|
94 |
|
95 |
this.keepFocus = true;
|
@@ -360,14 +360,14 @@
|
|
360 |
if ( $nextItem.length ) {
|
361 |
this.$select.show();
|
362 |
$currentItem.removeClass( 'active' );
|
363 |
-
$nextItem.focus
|
364 |
}
|
365 |
}
|
366 |
|
367 |
if ( 'up' === direction && $prevItem.length ) {
|
368 |
this.$select.show();
|
369 |
$currentItem.removeClass( 'active' );
|
370 |
-
$prevItem.focus
|
371 |
}
|
372 |
}
|
373 |
|
33 |
}
|
34 |
|
35 |
HappyFormsSelect.prototype.init = function() {
|
36 |
+
this.$el.prop( 'readonly', true );
|
37 |
|
38 |
if ( this.searchable && 'false' !== this.searchable ) {
|
39 |
+
this.$el.prop( 'readonly', false );
|
40 |
}
|
41 |
|
42 |
this.defaultValue = this.$input.val();
|
62 |
HappyFormsSelect.prototype.handleClick = function( e ) {
|
63 |
e.stopPropagation();
|
64 |
|
65 |
+
this.$el.trigger( 'focus' );
|
66 |
this.toggleDropdown();
|
67 |
}
|
68 |
|
89 |
if ( ! this.$select.is( ':visible' ) ) {
|
90 |
this.hideAllInstances();
|
91 |
|
92 |
+
this.$input.trigger( 'focus' );
|
93 |
this.$select.show();
|
94 |
|
95 |
this.keepFocus = true;
|
360 |
if ( $nextItem.length ) {
|
361 |
this.$select.show();
|
362 |
$currentItem.removeClass( 'active' );
|
363 |
+
$nextItem.trigger( 'focus' ).addClass( 'active' );
|
364 |
}
|
365 |
}
|
366 |
|
367 |
if ( 'up' === direction && $prevItem.length ) {
|
368 |
this.$select.show();
|
369 |
$currentItem.removeClass( 'active' );
|
370 |
+
$prevItem.trigger( 'focus' ).addClass( 'active' );
|
371 |
}
|
372 |
}
|
373 |
|
core/assets/js/parts/part-checkbox.js
CHANGED
@@ -60,7 +60,7 @@
|
|
60 |
},
|
61 |
|
62 |
onReady: function() {
|
63 |
-
$( '[name=label]', this.$el ).focus
|
64 |
},
|
65 |
|
66 |
onAdvancedOptionClick: function( e ) {
|
@@ -114,11 +114,11 @@
|
|
114 |
item.set( 'is_default', 0 );
|
115 |
} );
|
116 |
|
117 |
-
$( '[name=option_is_default]', this.$el.siblings() ).
|
118 |
|
119 |
if ( isChecked ) {
|
120 |
this.model.set( 'is_default', 1 );
|
121 |
-
$( e.target ).
|
122 |
}
|
123 |
|
124 |
var data = {
|
@@ -324,7 +324,7 @@
|
|
324 |
var $supportedOptions = $( '.part-options-width-setting select option.display-type--' + value, this.$el );
|
325 |
$supportedOptions.show();
|
326 |
|
327 |
-
$( '.part-options-width-setting select' ).val( 'auto' ).change
|
328 |
|
329 |
var data = {
|
330 |
id: this.model.get( 'id' ),
|
@@ -347,7 +347,7 @@
|
|
347 |
e.preventDefault();
|
348 |
|
349 |
if ( 'Enter' === e.key ) {
|
350 |
-
$( '.add-option', this.$el ).click
|
351 |
return;
|
352 |
}
|
353 |
},
|
@@ -359,7 +359,7 @@
|
|
359 |
$( '.options-import', this.$el ).show();
|
360 |
$( '.links.mode-manual', this.$el ).hide();
|
361 |
$( '.links.mode-import', this.$el ).show();
|
362 |
-
$( '.option-import-area', this.$el ).focus
|
363 |
},
|
364 |
|
365 |
onAddOptionsClick: function( e ) {
|
@@ -400,7 +400,7 @@
|
|
400 |
} );
|
401 |
|
402 |
$textarea.val( '' );
|
403 |
-
$( '.add-options', this.$el ).click
|
404 |
},
|
405 |
|
406 |
onSelectAllChange: function( model, value ) {
|
60 |
},
|
61 |
|
62 |
onReady: function() {
|
63 |
+
$( '[name=label]', this.$el ).trigger( 'focus' );
|
64 |
},
|
65 |
|
66 |
onAdvancedOptionClick: function( e ) {
|
114 |
item.set( 'is_default', 0 );
|
115 |
} );
|
116 |
|
117 |
+
$( '[name=option_is_default]', this.$el.siblings() ).prop( 'checked', false );
|
118 |
|
119 |
if ( isChecked ) {
|
120 |
this.model.set( 'is_default', 1 );
|
121 |
+
$( e.target ).prop( 'checked', true );
|
122 |
}
|
123 |
|
124 |
var data = {
|
324 |
var $supportedOptions = $( '.part-options-width-setting select option.display-type--' + value, this.$el );
|
325 |
$supportedOptions.show();
|
326 |
|
327 |
+
$( '.part-options-width-setting select' ).val( 'auto' ).trigger( 'change' );
|
328 |
|
329 |
var data = {
|
330 |
id: this.model.get( 'id' ),
|
347 |
e.preventDefault();
|
348 |
|
349 |
if ( 'Enter' === e.key ) {
|
350 |
+
$( '.add-option', this.$el ).trigger( 'click' );
|
351 |
return;
|
352 |
}
|
353 |
},
|
359 |
$( '.options-import', this.$el ).show();
|
360 |
$( '.links.mode-manual', this.$el ).hide();
|
361 |
$( '.links.mode-import', this.$el ).show();
|
362 |
+
$( '.option-import-area', this.$el ).trigger( 'focus' );
|
363 |
},
|
364 |
|
365 |
onAddOptionsClick: function( e ) {
|
400 |
} );
|
401 |
|
402 |
$textarea.val( '' );
|
403 |
+
$( '.add-options', this.$el ).trigger( 'click' );
|
404 |
},
|
405 |
|
406 |
onSelectAllChange: function( model, value ) {
|
core/assets/js/parts/part-radio.js
CHANGED
@@ -60,7 +60,7 @@
|
|
60 |
},
|
61 |
|
62 |
onReady: function() {
|
63 |
-
$( '[name=label]', this.$el ).focus
|
64 |
},
|
65 |
|
66 |
onAdvancedOptionClick: function( e ) {
|
@@ -113,11 +113,11 @@
|
|
113 |
item.set( 'is_default', 0 );
|
114 |
} );
|
115 |
|
116 |
-
$( '[name=is_default]', this.$el.siblings() ).
|
117 |
|
118 |
if ( isChecked ) {
|
119 |
this.model.set( 'is_default', 1 );
|
120 |
-
$( e.target ).
|
121 |
}
|
122 |
|
123 |
var data = {
|
@@ -316,7 +316,7 @@
|
|
316 |
var $supportedOptions = $( '.part-options-width-setting select option.display-type--' + value, this.$el );
|
317 |
$supportedOptions.show();
|
318 |
|
319 |
-
$( '.part-options-width-setting select' ).val( 'auto' ).change
|
320 |
|
321 |
var data = {
|
322 |
id: this.model.get( 'id' ),
|
@@ -339,7 +339,7 @@
|
|
339 |
e.preventDefault();
|
340 |
|
341 |
if ( 'Enter' === e.key ) {
|
342 |
-
$( '.add-option', this.$el ).click
|
343 |
return;
|
344 |
}
|
345 |
},
|
@@ -351,7 +351,7 @@
|
|
351 |
$( '.options-import', this.$el ).show();
|
352 |
$( '.links.mode-manual', this.$el ).hide();
|
353 |
$( '.links.mode-import', this.$el ).show();
|
354 |
-
$( '.option-import-area', this.$el ).focus
|
355 |
},
|
356 |
|
357 |
onAddOptionsClick: function( e ) {
|
@@ -392,7 +392,7 @@
|
|
392 |
} );
|
393 |
|
394 |
$textarea.val( '' );
|
395 |
-
$( '.add-options', this.$el ).click
|
396 |
},
|
397 |
} );
|
398 |
|
60 |
},
|
61 |
|
62 |
onReady: function() {
|
63 |
+
$( '[name=label]', this.$el ).trigger( 'focus' );
|
64 |
},
|
65 |
|
66 |
onAdvancedOptionClick: function( e ) {
|
113 |
item.set( 'is_default', 0 );
|
114 |
} );
|
115 |
|
116 |
+
$( '[name=is_default]', this.$el.siblings() ).prop( 'checked', false );
|
117 |
|
118 |
if ( isChecked ) {
|
119 |
this.model.set( 'is_default', 1 );
|
120 |
+
$( e.target ).prop( 'checked', true );
|
121 |
}
|
122 |
|
123 |
var data = {
|
316 |
var $supportedOptions = $( '.part-options-width-setting select option.display-type--' + value, this.$el );
|
317 |
$supportedOptions.show();
|
318 |
|
319 |
+
$( '.part-options-width-setting select' ).val( 'auto' ).trigger( 'change' );
|
320 |
|
321 |
var data = {
|
322 |
id: this.model.get( 'id' ),
|
339 |
e.preventDefault();
|
340 |
|
341 |
if ( 'Enter' === e.key ) {
|
342 |
+
$( '.add-option', this.$el ).trigger( 'click' );
|
343 |
return;
|
344 |
}
|
345 |
},
|
351 |
$( '.options-import', this.$el ).show();
|
352 |
$( '.links.mode-manual', this.$el ).hide();
|
353 |
$( '.links.mode-import', this.$el ).show();
|
354 |
+
$( '.option-import-area', this.$el ).trigger( 'focus' );
|
355 |
},
|
356 |
|
357 |
onAddOptionsClick: function( e ) {
|
392 |
} );
|
393 |
|
394 |
$textarea.val( '' );
|
395 |
+
$( '.add-options', this.$el ).trigger( 'click' );
|
396 |
},
|
397 |
} );
|
398 |
|
core/assets/js/parts/part-select.js
CHANGED
@@ -58,7 +58,7 @@
|
|
58 |
},
|
59 |
|
60 |
onReady: function() {
|
61 |
-
$( '[name=label]', this.$el ).focus
|
62 |
},
|
63 |
|
64 |
onAdvancedOptionClick: function( e ) {
|
@@ -76,7 +76,7 @@
|
|
76 |
|
77 |
onItemLabelKeyup: function( e ) {
|
78 |
if ( 'Enter' === e.key ) {
|
79 |
-
$( '.add-option', this.$el ).click
|
80 |
return;
|
81 |
}
|
82 |
|
@@ -104,11 +104,11 @@
|
|
104 |
item.set( 'is_default', 0 );
|
105 |
} );
|
106 |
|
107 |
-
$( '[name=is_default]', this.$el.siblings() ).
|
108 |
|
109 |
if ( isChecked ) {
|
110 |
this.model.set( 'is_default', 1 );
|
111 |
-
$( e.target ).
|
112 |
}
|
113 |
|
114 |
var data = {
|
@@ -357,7 +357,7 @@
|
|
357 |
e.preventDefault();
|
358 |
|
359 |
if ( 'Enter' === e.key ) {
|
360 |
-
$( '.add-option', this.$el ).click
|
361 |
return;
|
362 |
}
|
363 |
},
|
@@ -369,7 +369,7 @@
|
|
369 |
$( '.options-import', this.$el ).show();
|
370 |
$( '.links.mode-manual', this.$el ).hide();
|
371 |
$( '.links.mode-import', this.$el ).show();
|
372 |
-
$( '.option-import-area', this.$el ).focus
|
373 |
},
|
374 |
|
375 |
onAddOptionsClick: function( e ) {
|
@@ -410,7 +410,7 @@
|
|
410 |
} );
|
411 |
|
412 |
$textarea.val( '' );
|
413 |
-
$( '.add-options', this.$el ).click
|
414 |
},
|
415 |
|
416 |
} );
|
58 |
},
|
59 |
|
60 |
onReady: function() {
|
61 |
+
$( '[name=label]', this.$el ).trigger( 'focus' );
|
62 |
},
|
63 |
|
64 |
onAdvancedOptionClick: function( e ) {
|
76 |
|
77 |
onItemLabelKeyup: function( e ) {
|
78 |
if ( 'Enter' === e.key ) {
|
79 |
+
$( '.add-option', this.$el ).trigger( 'click' );
|
80 |
return;
|
81 |
}
|
82 |
|
104 |
item.set( 'is_default', 0 );
|
105 |
} );
|
106 |
|
107 |
+
$( '[name=is_default]', this.$el.siblings() ).prop( 'checked', false );
|
108 |
|
109 |
if ( isChecked ) {
|
110 |
this.model.set( 'is_default', 1 );
|
111 |
+
$( e.target ).prop( 'checked', true );
|
112 |
}
|
113 |
|
114 |
var data = {
|
357 |
e.preventDefault();
|
358 |
|
359 |
if ( 'Enter' === e.key ) {
|
360 |
+
$( '.add-option', this.$el ).trigger( 'click' );
|
361 |
return;
|
362 |
}
|
363 |
},
|
369 |
$( '.options-import', this.$el ).show();
|
370 |
$( '.links.mode-manual', this.$el ).hide();
|
371 |
$( '.links.mode-import', this.$el ).show();
|
372 |
+
$( '.option-import-area', this.$el ).trigger( 'focus' );
|
373 |
},
|
374 |
|
375 |
onAddOptionsClick: function( e ) {
|
410 |
} );
|
411 |
|
412 |
$textarea.val( '' );
|
413 |
+
$( '.add-options', this.$el ).trigger( 'click' );
|
414 |
},
|
415 |
|
416 |
} );
|
core/assets/js/parts/part-single-line-text.js
CHANGED
@@ -29,7 +29,7 @@
|
|
29 |
}
|
30 |
});
|
31 |
} else {
|
32 |
-
$( '[data-bind=use_as_subject]', this.$el ).
|
33 |
}
|
34 |
}
|
35 |
} );
|
29 |
}
|
30 |
});
|
31 |
} else {
|
32 |
+
$( '[data-bind=use_as_subject]', this.$el ).prop( 'checked', false );
|
33 |
}
|
34 |
}
|
35 |
} );
|
core/assets/js/welcome.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
( function( $ ) {
|
2 |
-
$(
|
3 |
$successTemplate = $( '#happyforms-tracking-success' );
|
4 |
$errorTemplate = $( '#happyforms-tracking-error' );
|
5 |
$content = $( '.happyforms-welcome-panel .welcome-panel-content' );
|
@@ -8,9 +8,9 @@
|
|
8 |
$skipLink = $( '#happyforms-tracking-skip' );
|
9 |
$email = $( 'input[type="email"]' );
|
10 |
|
11 |
-
$email.focus
|
12 |
|
13 |
-
$( '#happyforms-tracking' ).
|
14 |
e.preventDefault();
|
15 |
|
16 |
var $this = $( this );
|
@@ -50,7 +50,7 @@
|
|
50 |
|
51 |
$proceedLink.click( proceed );
|
52 |
$skipLink.click( proceed );
|
53 |
-
$email.focus
|
54 |
|
55 |
} );
|
56 |
} )( jQuery );
|
1 |
( function( $ ) {
|
2 |
+
$( function() {
|
3 |
$successTemplate = $( '#happyforms-tracking-success' );
|
4 |
$errorTemplate = $( '#happyforms-tracking-error' );
|
5 |
$content = $( '.happyforms-welcome-panel .welcome-panel-content' );
|
8 |
$skipLink = $( '#happyforms-tracking-skip' );
|
9 |
$email = $( 'input[type="email"]' );
|
10 |
|
11 |
+
$email.trigger( 'focus' );
|
12 |
|
13 |
+
$( '#happyforms-tracking' ).on( 'submit', function( e ) {
|
14 |
e.preventDefault();
|
15 |
|
16 |
var $this = $( this );
|
50 |
|
51 |
$proceedLink.click( proceed );
|
52 |
$skipLink.click( proceed );
|
53 |
+
$email.trigger( 'focus' );
|
54 |
|
55 |
} );
|
56 |
} )( jQuery );
|
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.
|
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.
|
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.12.0
|
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.12.0' );
|
17 |
|
18 |
if ( ! function_exists( 'happyforms_plugin_file' ) ):
|
19 |
/**
|
inc/assets/js/admin/dashboard.js
CHANGED
@@ -24,7 +24,7 @@
|
|
24 |
$( '#TB_window' ).addClass( 'happyforms-admin-modal' ).addClass( modalId );
|
25 |
$( '#TB_ajaxContent' ).height( 'auto' );
|
26 |
$( '#TB_title' ).width( $( '#TB_ajaxContent' ).width() );
|
27 |
-
$( '#TB_closeWindowButton' ).blur
|
28 |
},
|
29 |
|
30 |
closeModal: function() {
|
@@ -51,7 +51,7 @@
|
|
51 |
}
|
52 |
};
|
53 |
|
54 |
-
$(
|
55 |
happyForms.freeDashboard.init();
|
56 |
} );
|
57 |
|
24 |
$( '#TB_window' ).addClass( 'happyforms-admin-modal' ).addClass( modalId );
|
25 |
$( '#TB_ajaxContent' ).height( 'auto' );
|
26 |
$( '#TB_title' ).width( $( '#TB_ajaxContent' ).width() );
|
27 |
+
$( '#TB_closeWindowButton' ).trigger( 'blur' );
|
28 |
},
|
29 |
|
30 |
closeModal: function() {
|
51 |
}
|
52 |
};
|
53 |
|
54 |
+
$( function() {
|
55 |
happyForms.freeDashboard.init();
|
56 |
} );
|
57 |
|
inc/assets/js/customize.js
CHANGED
@@ -458,7 +458,7 @@
|
|
458 |
enableSave: function() {
|
459 |
var $saveButton = $( '#happyforms-save-button', this.$el );
|
460 |
|
461 |
-
$saveButton.
|
462 |
},
|
463 |
|
464 |
disableSave: function() {
|
@@ -657,14 +657,14 @@
|
|
657 |
$( '.wp-full-overlay' ).append( this.drawer.render().$el );
|
658 |
|
659 |
if ( -1 === happyForms.savedStates.build.activePartIndex ) {
|
660 |
-
$( '#happyforms-form-name', this.$el ).focus
|
661 |
}
|
662 |
},
|
663 |
|
664 |
onNameInputClick: function( e ) {
|
665 |
var $input = $(e.target);
|
666 |
|
667 |
-
$input.select
|
668 |
},
|
669 |
|
670 |
onNameChange: function( e ) {
|
@@ -972,7 +972,7 @@
|
|
972 |
$( 'body' ).toggleClass( 'adding-happyforms-parts' );
|
973 |
|
974 |
if ( this.$el.hasClass( 'expanded') ) {
|
975 |
-
$( '#part-search' ).focus
|
976 |
}
|
977 |
},
|
978 |
|
@@ -1130,7 +1130,7 @@
|
|
1130 |
$el.toggleClass( 'happyforms-widget-expanded' );
|
1131 |
|
1132 |
if( $el.hasClass( 'happyforms-widget-expanded' ) ) {
|
1133 |
-
$( 'input[data-bind=label]', $el ).focus
|
1134 |
}
|
1135 |
|
1136 |
} );
|
@@ -2417,16 +2417,16 @@
|
|
2417 |
var $partWidget = $( '[data-part-id="' + id + '"]' );
|
2418 |
|
2419 |
if ( ! $partWidget.hasClass( 'happyforms-widget-expanded' ) ) {
|
2420 |
-
$partWidget.find( '.toggle-indicator' ).click
|
2421 |
}
|
2422 |
|
2423 |
-
$( 'input', $partWidget ).first().focus
|
2424 |
},
|
2425 |
|
2426 |
onPreviewPencilClickTitle: function( id ) {
|
2427 |
happyForms.navigate( 'build', { trigger: true } );
|
2428 |
|
2429 |
-
$( 'input[name="post_title"]' ).focus
|
2430 |
},
|
2431 |
|
2432 |
onOptionalPartLabelChangeCallback: function( $form ) {
|
458 |
enableSave: function() {
|
459 |
var $saveButton = $( '#happyforms-save-button', this.$el );
|
460 |
|
461 |
+
$saveButton.prop( 'disabled', false ).text( $saveButton.data( 'text-default' ) );
|
462 |
},
|
463 |
|
464 |
disableSave: function() {
|
657 |
$( '.wp-full-overlay' ).append( this.drawer.render().$el );
|
658 |
|
659 |
if ( -1 === happyForms.savedStates.build.activePartIndex ) {
|
660 |
+
$( '#happyforms-form-name', this.$el ).trigger( 'focus' ).trigger( 'select' );
|
661 |
}
|
662 |
},
|
663 |
|
664 |
onNameInputClick: function( e ) {
|
665 |
var $input = $(e.target);
|
666 |
|
667 |
+
$input.trigger( 'select' );
|
668 |
},
|
669 |
|
670 |
onNameChange: function( e ) {
|
972 |
$( 'body' ).toggleClass( 'adding-happyforms-parts' );
|
973 |
|
974 |
if ( this.$el.hasClass( 'expanded') ) {
|
975 |
+
$( '#part-search' ).trigger( 'focus' );
|
976 |
}
|
977 |
},
|
978 |
|
1130 |
$el.toggleClass( 'happyforms-widget-expanded' );
|
1131 |
|
1132 |
if( $el.hasClass( 'happyforms-widget-expanded' ) ) {
|
1133 |
+
$( 'input[data-bind=label]', $el ).trigger( 'focus' );
|
1134 |
}
|
1135 |
|
1136 |
} );
|
2417 |
var $partWidget = $( '[data-part-id="' + id + '"]' );
|
2418 |
|
2419 |
if ( ! $partWidget.hasClass( 'happyforms-widget-expanded' ) ) {
|
2420 |
+
$partWidget.find( '.toggle-indicator' ).trigger( 'click' );
|
2421 |
}
|
2422 |
|
2423 |
+
$( 'input', $partWidget ).first().trigger( 'focus' );
|
2424 |
},
|
2425 |
|
2426 |
onPreviewPencilClickTitle: function( id ) {
|
2427 |
happyForms.navigate( 'build', { trigger: true } );
|
2428 |
|
2429 |
+
$( 'input[name="post_title"]' ).trigger( 'focus' );
|
2430 |
},
|
2431 |
|
2432 |
onOptionalPartLabelChangeCallback: function( $form ) {
|
inc/assets/js/frontend.js
CHANGED
@@ -142,7 +142,7 @@
|
|
142 |
'letter-spacing',
|
143 |
];
|
144 |
|
145 |
-
$( '.happyforms-tooltip__trigger', this.$el ).
|
146 |
e.preventDefault();
|
147 |
} );
|
148 |
|
@@ -233,9 +233,9 @@
|
|
233 |
this.$submit.off( 'click' );
|
234 |
this.$submitLinks.off( 'click' );
|
235 |
|
236 |
-
this.$form.
|
237 |
-
this.$submit.
|
238 |
-
this.$submitLinks.
|
239 |
this.$el.on( 'happyforms-scrolltop', this.onScrollTop.bind( this ) );
|
240 |
},
|
241 |
|
@@ -295,7 +295,7 @@
|
|
295 |
this.$step.val( e.target.getAttribute( 'data-step' ) );
|
296 |
}
|
297 |
|
298 |
-
this.$form.submit
|
299 |
},
|
300 |
|
301 |
submit: function( e ) {
|
@@ -409,7 +409,7 @@
|
|
409 |
} );
|
410 |
}
|
411 |
|
412 |
-
$(
|
413 |
$( '.happyforms-form' ).happyForm();
|
414 |
} );
|
415 |
|
142 |
'letter-spacing',
|
143 |
];
|
144 |
|
145 |
+
$( '.happyforms-tooltip__trigger', this.$el ).on( 'click', function( e ) {
|
146 |
e.preventDefault();
|
147 |
} );
|
148 |
|
233 |
this.$submit.off( 'click' );
|
234 |
this.$submitLinks.off( 'click' );
|
235 |
|
236 |
+
this.$form.on( 'submit', this.submit.bind( this ) );
|
237 |
+
this.$submit.on( 'click', this.buttonSubmit.bind( this ) );
|
238 |
+
this.$submitLinks.on( 'click', this.linkSubmit.bind( this ) );
|
239 |
this.$el.on( 'happyforms-scrolltop', this.onScrollTop.bind( this ) );
|
240 |
},
|
241 |
|
295 |
this.$step.val( e.target.getAttribute( 'data-step' ) );
|
296 |
}
|
297 |
|
298 |
+
this.$form.trigger( 'submit' );
|
299 |
},
|
300 |
|
301 |
submit: function( e ) {
|
409 |
} );
|
410 |
}
|
411 |
|
412 |
+
$( function() {
|
413 |
$( '.happyforms-form' ).happyForm();
|
414 |
} );
|
415 |
|
inc/assets/js/preview.js
CHANGED
@@ -303,7 +303,7 @@
|
|
303 |
$( '.happyforms-form' ).on( 'submit', handlers.silenceEvent );
|
304 |
}
|
305 |
|
306 |
-
$(
|
307 |
handlers.init();
|
308 |
handlers.bind();
|
309 |
api.preview.send( 'happyforms-preview-ready' );
|
303 |
$( '.happyforms-form' ).on( 'submit', handlers.silenceEvent );
|
304 |
}
|
305 |
|
306 |
+
$( function() {
|
307 |
handlers.init();
|
308 |
handlers.bind();
|
309 |
api.preview.send( 'happyforms-preview-ready' );
|
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.
|
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.12.0\n"
|
6 |
"Report-Msgid-Bugs-To: https://thethemefoundry.com/support/\n"
|
7 |
+
"POT-Creation-Date: 2021-03-09 08:46:14+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
@@ -3,9 +3,9 @@
|
|
3 |
Contributors: happyforms
|
4 |
Tags: contact form, contact form plugin, forms, form builder, custom form, intake form, registration form, survey form, quiz form, payment form, newsletter form, giveaway form, fundraising form, donation form, nomination form, order form, questionnaire form, onboarding form, contract form, estimate form, research form, qualitative form, quantitative form, membership form, mobile form, feedback form, release form, inquiry form, request form, evaluation form, RSVP form, reservation form, sales lead form, popup form, quote form, event form, booking form, application form, agreement form, safety form, compliance form, assessment form, sponsorship form, report form, file upload form, satisfaction form
|
5 |
Requires at least: 4.8
|
6 |
-
Tested up to: 5.
|
7 |
Requires PHP: 5.3
|
8 |
-
Stable tag: 1.
|
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.1 =
|
148 |
* Bugfix: Form title "Display" control wasn't working.
|
149 |
|
@@ -760,6 +763,9 @@ Note: you'll need to upgrade to our paid contact form builder plugin to get some
|
|
760 |
|
761 |
== Upgrade Notice ==
|
762 |
|
|
|
|
|
|
|
763 |
= 1.11.1 =
|
764 |
* Form title "Display" control fixes.
|
765 |
|
3 |
Contributors: happyforms
|
4 |
Tags: contact form, contact form plugin, forms, form builder, custom form, intake form, registration form, survey form, quiz form, payment form, newsletter form, giveaway form, fundraising form, donation form, nomination form, order form, questionnaire form, onboarding form, contract form, estimate form, research form, qualitative form, quantitative form, membership form, mobile form, feedback form, release form, inquiry form, request form, evaluation form, RSVP form, reservation form, sales lead form, popup form, quote form, event form, booking form, application form, agreement form, safety form, compliance form, assessment form, sponsorship form, report form, file upload form, satisfaction form
|
5 |
Requires at least: 4.8
|
6 |
+
Tested up to: 5.7
|
7 |
Requires PHP: 5.3
|
8 |
+
Stable tag: 1.12.0
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
144 |
|
145 |
== Changelog ==
|
146 |
|
147 |
+
= 1.12.0 =
|
148 |
+
* Improvement: Removed jQuery deprecations.
|
149 |
+
|
150 |
= 1.11.1 =
|
151 |
* Bugfix: Form title "Display" control wasn't working.
|
152 |
|
763 |
|
764 |
== Upgrade Notice ==
|
765 |
|
766 |
+
= 1.12.0 =
|
767 |
+
* jQuery deprecation updates.
|
768 |
+
|
769 |
= 1.11.1 =
|
770 |
* Form title "Display" control fixes.
|
771 |
|