. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
| Server IP : 87.98.249.37 / Your IP : 216.73.216.208 [ Web Server : Microsoft-IIS/10.0 System : Windows NT NS3076740 10.0 build 17763 (Windows Server 2019) AMD64 User : IWPD_292(growel19p) ( 0) PHP Version : 8.3.12 Disable Function : NONE Domains : 0 Domains MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Inetpub/vhosts/growel.com/httpdocs/blog/wp-content/plugins/wpforms/assets/js/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();