File ManagerCurrent Directory: wp-content/plugins/wpforms/assets/pro/js/integrations/ai/form-generatorLinux appserver-0d5e4f1e-php-cc8da225320a42ba9b7d66cba40b1f03 6.6.123+ #1 SMP PREEMPT_DYNAMIC Wed Mar 11 09:04:28 UTC 2026 x86_64Edit File: form-templates-page.js /* global wpforms_ai_form_templates_page */ // noinspection ES6ConvertVarToLetConst /** * WPForms AI Form Templates Page. * * @since 1.9.3 */ // eslint-disable-next-line no-var var WPFormsAIFormTemplates = window.WPFormsAIFormTemplates || ( function( document, window, $ ) { /** * Public functions and properties. * * @since 1.9.3 * * @type {Object} */ const app = { /** * Start the engine. * * @since 1.9.3 */ init() { app.events(); if ( wpforms_ai_form_templates_page.isLicenseActive ) { return; } // Update the button if the license is not active. $( '#wpforms-template-generate .wpforms-template-generate' ) .removeClass( 'wpforms-template-generate' ) .addClass( 'education-modal' ) .data( 'action', 'license' ) .data( 'field-name', 'AI Forms' ); }, /** * Events. * * @since 1.9.3 */ events() { $( document ).on( 'click', '.wpforms-template-generate', app.openNewFormGenerator ); }, /** * Open the New Form Generator. * * @since 1.9.3 * * @param {Object} e Event object. */ openNewFormGenerator( e ) { e.preventDefault(); window.location = wpforms_ai_form_templates_page.newFormUrl; }, }; return app; }( document, window, jQuery ) ); // Initialize. WPFormsAIFormTemplates.init(); Upload File Directory Listing NameTypeSizeActions.. (Parent Directory)Dirform-generator.jsFile5.14 KB Rename | Delete | Editform-generator.min.jsFile2.45 KB Rename | Delete | Editform-templates-page.jsFile1.28 KB Rename | Delete | Editform-templates-page.min.jsFile574.00 B Rename | Delete | EditmodulesDirectory Rename | Delete