| 1 |
// moved to separate file so we could enqueue it and make sure jquery was loaded |
| 2 |
|
| 3 |
(function() { |
| 4 |
jQuery( document ).ready( function() { |
| 5 |
var frameEl = window.frameElement; |
| 6 |
|
| 7 |
// get the form element |
| 8 |
var $form = jQuery('.wpuf-form-add'); |
| 9 |
// get the height of the form |
| 10 |
var height = $form.find( '.wpuf-form' ).outerHeight(true); |
| 11 |
|
| 12 |
if (frameEl) { |
| 13 |
frameEl.height = height + 125; |
| 14 |
} |
| 15 |
}); |
| 16 |
|
| 17 |
})(); |