| Server IP : 82.64.35.208 / Your IP : 192.168.65.1 Web Server : Apache/2.4.68 (Debian) System : Linux 079bc81edf51 6.12.76-linuxkit #1 SMP Tue Jul 21 14:38:37 UTC 2026 aarch64 User : root ( 0) PHP Version : 8.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/html/wp-content/plugins/wpforms-lite/assets/js/admin/ |
Upload File : |
/* global wpforms_admin_notices */
/**
* WPForms Dismissible Notices.
*
* @since 1.6.7.1
*/
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() {
$( app.ready );
},
/**
* Document ready.
*
* @since 1.6.7.1
*/
ready() {
app.events();
},
/**
* Dismissible notices events.
*
* @since 1.6.7.1
*/
events() {
$( 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( 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();