summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2018-06-08 10:09:24 -0400
committerAnthony G. Basile <blueness@gentoo.org>2018-06-08 10:09:24 -0400
commita6b006c0f1ef757f23375f7906193370337d8bd7 (patch)
tree4467c6423b2c54e6ef8c3e79241a833fb17833a5 /plugins/jetpack/modules/contact-form/js
parentUpdate akismet 4.0.7 (diff)
downloadblogs-gentoo-a6b006c0f1ef757f23375f7906193370337d8bd7.tar.gz
blogs-gentoo-a6b006c0f1ef757f23375f7906193370337d8bd7.tar.bz2
blogs-gentoo-a6b006c0f1ef757f23375f7906193370337d8bd7.zip
Update jetpack 6.2
Diffstat (limited to 'plugins/jetpack/modules/contact-form/js')
-rw-r--r--plugins/jetpack/modules/contact-form/js/editor-view.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/jetpack/modules/contact-form/js/editor-view.js b/plugins/jetpack/modules/contact-form/js/editor-view.js
index 7cc0674c..951a0d88 100644
--- a/plugins/jetpack/modules/contact-form/js/editor-view.js
+++ b/plugins/jetpack/modules/contact-form/js/editor-view.js
@@ -115,6 +115,11 @@
$editframe.trigger( 'checkheight' );
}, 250 );
+ // Add a second timeout for super long forms racing, and to not slow it down for shorter forms unnecessarily.
+ setTimeout( function(){
+ $editframe.trigger( 'checkheight' );
+ }, 500 );
+
var $editfields = $editframe.contents().find( '.grunion-fields' ),
$buttons = $editframe.contents().find( '.grunion-controls' );