????JFIF??x?x????'
Server IP : 104.21.112.1 / Your IP : 216.73.216.145 Web Server : LiteSpeed System : Linux premium151.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : tempvsty ( 647) PHP Version : 8.0.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/self/cwd/wp-content/plugins/wpforms-lite/assets/lite/js/admin/entries/ |
Upload File : |
/** * View single entry page. * * @since 1.8.9 */ const WPFormsViewEntry = window.WPFormsViewEntry || ( function( document, window, $ ) { /** * Elements holder. * * @since 1.8.9 * * @type {Object} */ let el = {}; /** * Public functions and properties. * * @since 1.8.9 * * @type {Object} */ const app = { /** * Initialize the engine. * * @since 1.8.9 */ init() { $( app.ready ); }, /** * Document ready. * * @since 1.8.9 */ ready() { app.setup(); app.events(); }, /** * Setup. Prepare some variables. * * @since 1.8.9 */ setup() { // Cache DOM elements. el = { menuClass: '.wpforms-entries-settings-menu', }; }, /** * Events. * * @since 1.8.9 */ events() { $( '#wpforms-entries-settings-button' ).on( 'click', app.menuToggle ); $( '#wpcontent' ).on( 'click', app.menuHide ); }, /** * Handler for the menu toggle behavior. * * @since 1.8.9 * * @param {Object} event Event object. */ menuToggle( event ) { event.preventDefault(); event.stopPropagation(); // Toggle the visibility of the matched element. $( el.menuClass ).toggle( 0, function() { const $menu = $( this ); // When the menu is open, aria-expended="true". $menu.attr( 'aria-expanded', $menu.is( ':visible' ) ); } ); }, /** * Handler for hiding the menu when a click is outside of it. * * @since 1.8.9 * * @param {Object} event Event object. */ menuHide( event ) { // Check if the clicked element is not the menu container or a child of it. if ( ! $( event.target ).closest( `${ el.menuClass }:visible` ).length ) { $( el.menuClass ).attr( 'aria-expanded', 'false' ).hide(); } }, }; return app; }( document, window, jQuery ) ); // Initialize the engine. WPFormsViewEntry.init();