admin
2 years ago
chunks
2 years ago
editor
2 years ago
frontend
2 years ago
action-localize-helper.js
2 years ago
file-upload.js
2 years ago
import-form.js
2 years ago
map-field.js
2 years ago
import-form.js
22 lines
| 1 | ( |
| 2 | function ( $ ) { |
| 3 | const onLoad = () => { |
| 4 | |
| 5 | const { template = '', id = '' } = window.JetFormBuilderImportForm; |
| 6 | |
| 7 | const $newFormButton = $( '.page-title-action' ); |
| 8 | |
| 9 | if ( $newFormButton.length ) { |
| 10 | $newFormButton.after( template ); |
| 11 | } |
| 12 | |
| 13 | $( document ).on( 'click', '#' + id + '-trigger', function () { |
| 14 | $( '#' + id ).css( 'display', 'inline-flex' ); |
| 15 | } ); |
| 16 | }; |
| 17 | |
| 18 | |
| 19 | $( onLoad ); |
| 20 | |
| 21 | } |
| 22 | )( jQuery ); |