Server IP : 104.21.38.3 / Your IP : 172.70.147.109 Web Server : Apache System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /www/wwwroot/coircraft.com/wp-content/plugins/wpforms-lite/assets/js/components/admin/ |
Upload File : |
/* global wpforms_admin_notices */ /** * WPForms Dismissible Notices. * * @since 1.6.7.1 */ 'use strict'; var WPFormsAdminNotices = window.WPFormsAdminNotices || ( function( document, window, $ ) { /** * Public functions and properties. * * @since 1.6.7.1 * * @type {object} */ var app = { /** * Start the engine. * * @since 1.6.7.1 */ init: function() { $( app.ready ); }, /** * Document ready. * * @since 1.6.7.1 */ ready: function() { app.events(); }, /** * Dismissible notices events. * * @since 1.6.7.1 */ events: function() { $( document ).on( 'click', '.wpforms-notice .notice-dismiss, .wpforms-notice .wpforms-notice-dismiss', app.dismissNotice ); }, /** * Dismiss notice event handler. * * @since 1.6.7.1 * * @param {object} e Event object. * */ dismissNotice: function( e ) { const $element = $( e.target ); if ( ! $element.hasClass( 'wpforms-review-out' ) ) { e.preventDefault(); } $element.closest( '.wpforms-notice' ).remove(); $.post( wpforms_admin_notices.ajax_url, { action: 'wpforms_notice_dismiss', nonce: wpforms_admin_notices.nonce, id: ( $element.closest( '.wpforms-notice' ).attr( 'id' ) || '' ).replace( 'wpforms-notice-', '' ), } ); }, }; return app; }( document, window, jQuery ) ); // Initialize. WPFormsAdminNotices.init();