golden hour
/home/phakp/public_html/wp/wp-content/plugins/wpforms-lite/assets/js
⬆️ Go Up
Upload
File/Folder
Size
Actions
admin-builder-conditional-logic-core.js
20.9 KB
Del
OK
admin-builder-providers.js
13.89 KB
Del
OK
admin-builder.js
141.26 KB
Del
OK
admin-editor.js
1.44 KB
Del
OK
admin-notifications.js
3.79 KB
Del
OK
admin-notifications.min.js
1.98 KB
Del
OK
admin-utils.js
15.39 KB
Del
OK
admin.js
52.09 KB
Del
OK
admin.min.js
26.44 KB
Del
OK
chart.min.js
155.9 KB
Del
OK
choices.min.js
72.06 KB
Del
OK
components
-
Del
OK
flatpickr.min.js
47.38 KB
Del
OK
integrations
-
Del
OK
jquery.conditionals.min.js
2.9 KB
Del
OK
jquery.inputmask.bundle.min.js
112.74 KB
Del
OK
jquery.insert-at-caret.min.js
926 B
Del
OK
jquery.jquery-confirm.min.js
27.24 KB
Del
OK
jquery.matchHeight-min.js
3.3 KB
Del
OK
jquery.minicolors.min.js
15.05 KB
Del
OK
jquery.payment.min.js
8.26 KB
Del
OK
jquery.serialize-object.min.js
1.7 KB
Del
OK
jquery.timepicker.min.js
14.94 KB
Del
OK
jquery.tooltipster.min.js
38.96 KB
Del
OK
jquery.validate.js
49.5 KB
Del
OK
jquery.validate.min.js
23.8 KB
Del
OK
list.min.js
17.68 KB
Del
OK
lity.min.js
5.89 KB
Del
OK
mailcheck.min.js
3.92 KB
Del
OK
moment-with-locales.min.js
319 KB
Del
OK
moment.min.js
50.47 KB
Del
OK
purify.min.js
16.13 KB
Del
OK
text-limit.js
4.41 KB
Del
OK
text-limit.min.js
2.14 KB
Del
OK
wpforms-confirmation.js
616 B
Del
OK
wpforms.js
55.88 KB
Del
OK
Edit: admin-editor.js
;(function($){ $(function(){ // Close modal var wpformsModalClose = function() { if ( $('#wpforms-modal-select-form').length ) { $('#wpforms-modal-select-form').get(0).selectedIndex = 0; $('#wpforms-modal-checkbox-title, #wpforms-modal-checkbox-description').prop('checked', false); } $('#wpforms-modal-backdrop, #wpforms-modal-wrap').css('display','none'); $( document.body ).removeClass( 'modal-open' ); }; // Open modal when media button is clicked $(document).on('click', '.wpforms-insert-form-button', function(event) { event.preventDefault(); $('#wpforms-modal-backdrop, #wpforms-modal-wrap').css('display','block'); $( document.body ).addClass( 'modal-open' ); }); // Close modal on close or cancel links $(document).on('click', '#wpforms-modal-close, #wpforms-modal-cancel a', function(event) { event.preventDefault(); wpformsModalClose(); }); // Insert shortcode into TinyMCE $(document).on('click', '#wpforms-modal-submit', function(event) { event.preventDefault(); var shortcode; shortcode = '[wpforms id="' + $('#wpforms-modal-select-form').val() + '"'; if ( $('#wpforms-modal-checkbox-title').is(':checked') ) { shortcode = shortcode+' title="true"'; } if ( $('#wpforms-modal-checkbox-description').is(':checked') ) { shortcode = shortcode+' description="true"'; } shortcode = shortcode+']'; wp.media.editor.insert(shortcode); wpformsModalClose(); }); }); }(jQuery));
Save