403Webshell
Server IP : 66.29.132.124  /  Your IP : 18.220.255.227
Web Server : LiteSpeed
System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : wavevlvu ( 1524)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/wavevlvu/./blog.diixadigital.com/wp-content/plugins/wpforms-lite/assets/js/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/wavevlvu/./blog.diixadigital.com/wp-content/plugins/wpforms-lite/assets/js/admin/notices.js
/* 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();

Youez - 2016 - github.com/yon3zu
LinuXploit