GRAYBYTE WORDPRESS FILE MANAGER9989

Server IP : 198.54.121.189 / Your IP : 216.73.216.224
System : Linux premium69.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
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /home/giriqfky/swamivivekananda.co.in/wp-content/plugins/wpforms/assets/js/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/giriqfky/swamivivekananda.co.in/wp-content/plugins/wpforms/assets/js//admin-notifications.js
/* global wpforms_admin, WPFormsAdmin */

/**
 * WPForms Admin Notifications.
 *
 * @since 1.6.0
 */

'use strict';

var WPFormsAdminNotifications = window.WPFormsAdminNotifications || ( function( document, window, $ ) {

	/**
	 * Elements holder.
	 *
	 * @since 1.6.0
	 *
	 * @type {object}
	 */
	var el = {

		$notifications:    $( '#wpforms-notifications' ),
		$nextButton:       $( '#wpforms-notifications .navigation .next' ),
		$prevButton:       $( '#wpforms-notifications .navigation .prev' ),
		$adminBarCounter:  $( '#wp-admin-bar-wpforms-menu .wpforms-menu-notification-counter' ),
		$adminBarMenuItem: $( '#wp-admin-bar-wpforms-notifications' ),

	};

	/**
	 * Public functions and properties.
	 *
	 * @since 1.6.0
	 *
	 * @type {object}
	 */
	var app = {

		/**
		 * Start the engine.
		 *
		 * @since 1.6.0
		 */
		init: function() {

			$( app.ready );
		},

		/**
		 * Document ready.
		 *
		 * @since 1.6.0
		 */
		ready: function() {

			app.updateNavigation();
			app.events();
		},

		/**
		 * Register JS events.
		 *
		 * @since 1.6.0
		 */
		events: function() {

			el.$notifications
				.on( 'click', '.dismiss', app.dismiss )
				.on( 'click', '.next', app.navNext )
				.on( 'click', '.prev', app.navPrev );
		},

		/**
		 * Click on the Dismiss notification button.
		 *
		 * @since 1.6.0
		 *
		 * @param {object} event Event object.
		 */
		dismiss: function( event ) {

			if ( el.$currentMessage.length === 0 ) {
				return;
			}

			// Update counter.
			var count = parseInt( el.$adminBarCounter.text(), 10 );
			if ( count > 1 ) {
				--count;
				el.$adminBarCounter.html( '<span>' + count + '</span>' );
			} else {
				el.$adminBarCounter.remove();
				el.$adminBarMenuItem.remove();
			}

			// Remove notification.
			var $nextMessage = el.$nextMessage.length < 1 ? el.$prevMessage : el.$nextMessage,
				messageId = el.$currentMessage.data( 'message-id' );

			if ( $nextMessage.length === 0 ) {
				el.$notifications.remove();
			} else {
				el.$currentMessage.remove();
				$nextMessage.addClass( 'current' );
				app.updateNavigation();
			}

			// AJAX call - update option.
			var data = {
				action: 'wpforms_notification_dismiss',
				nonce: wpforms_admin.nonce,
				id: messageId,
			};

			$.post( wpforms_admin.ajax_url, data, function( res ) {

				if ( ! res.success ) {
					WPFormsAdmin.debug( res );
				}
			} ).fail( function( xhr, textStatus, e ) {

				WPFormsAdmin.debug( xhr.responseText );
			} );
		},

		/**
		 * Click on the Next notification button.
		 *
		 * @since 1.6.0
		 *
		 * @param {object} event Event object.
		 */
		navNext: function( event ) {

			if ( el.$nextButton.hasClass( 'disabled' ) ) {
				return;
			}

			el.$currentMessage.removeClass( 'current' );
			el.$nextMessage.addClass( 'current' );

			app.updateNavigation();
		},

		/**
		 * Click on the Previous notification button.
		 *
		 * @since 1.6.0
		 *
		 * @param {object} event Event object.
		 */
		navPrev: function( event ) {

			if ( el.$prevButton.hasClass( 'disabled' ) ) {
				return;
			}

			el.$currentMessage.removeClass( 'current' );
			el.$prevMessage.addClass( 'current' );

			app.updateNavigation();
		},

		/**
		 * Update navigation buttons.
		 *
		 * @since 1.6.0
		 */
		updateNavigation: function() {

			el.$currentMessage = el.$notifications.find( '.message.current' );
			el.$nextMessage = el.$currentMessage.next( '.message' );
			el.$prevMessage = el.$currentMessage.prev( '.message' );

			if ( el.$nextMessage.length === 0 ) {
				el.$nextButton.addClass( 'disabled' );
			} else {
				el.$nextButton.removeClass( 'disabled' );
			}

			if ( el.$prevMessage.length === 0 ) {
				el.$prevButton.addClass( 'disabled' );
			} else {
				el.$prevButton.removeClass( 'disabled' );
			}
		},
	};

	return app;

}( document, window, jQuery ) );

// Initialize.
WPFormsAdminNotifications.init();

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 10 2025 04:32:29
giriqfky / giriqfky
0755
components
--
July 10 2025 04:32:29
giriqfky / giriqfky
0755
integrations
--
July 10 2025 04:32:29
giriqfky / giriqfky
0755
.htaccess
0.41 KB
July 10 2025 04:32:29
giriqfky / giriqfky
0644
admin-builder-conditional-logic-core.js
21.524 KB
June 23 2025 07:12:39
giriqfky / giriqfky
0644
admin-builder-providers.js
13.87 KB
June 23 2025 07:12:39
giriqfky / giriqfky
0644
admin-builder.js
151.75 KB
June 23 2025 07:12:39
giriqfky / giriqfky
0644
admin-editor.js
1.444 KB
June 23 2025 07:12:39
giriqfky / giriqfky
0644
admin-notifications.js
3.774 KB
June 23 2025 07:12:39
giriqfky / giriqfky
0644
admin-notifications.min.js
1.97 KB
June 23 2025 07:12:39
giriqfky / giriqfky
0644
admin-utils.js
17.232 KB
June 23 2025 07:12:39
giriqfky / giriqfky
0644
admin.js
53.352 KB
June 23 2025 07:12:39
giriqfky / giriqfky
0644
admin.min.js
27.022 KB
June 23 2025 07:12:39
giriqfky / giriqfky
0644
chart.min.js
155.896 KB
June 23 2025 07:12:39
giriqfky / giriqfky
0644
choices.min.js
72.056 KB
June 23 2025 07:12:39
giriqfky / giriqfky
0644
flatpickr.min.js
47.381 KB
June 23 2025 07:12:39
giriqfky / giriqfky
0644
jquery.conditionals.min.js
2.896 KB
June 23 2025 07:12:39
giriqfky / giriqfky
0644
jquery.inputmask.min.js
138.426 KB
June 23 2025 07:12:39
giriqfky / giriqfky
0644
jquery.insert-at-caret.min.js
0.904 KB
June 23 2025 07:12:39
giriqfky / giriqfky
0644
jquery.jquery-confirm.min.js
27.242 KB
June 23 2025 07:12:39
giriqfky / giriqfky
0644
jquery.matchHeight-min.js
3.302 KB
June 23 2025 07:12:39
giriqfky / giriqfky
0644
jquery.minicolors.min.js
15.05 KB
June 23 2025 07:12:39
giriqfky / giriqfky
0644
jquery.payment.min.js
8.258 KB
June 23 2025 07:12:39
giriqfky / giriqfky
0644
jquery.serialize-object.min.js
1.699 KB
June 23 2025 07:12:39
giriqfky / giriqfky
0644
jquery.timepicker.min.js
14.938 KB
June 23 2025 07:12:39
giriqfky / giriqfky
0644
jquery.tooltipster.min.js
38.965 KB
June 23 2025 07:12:39
giriqfky / giriqfky
0644
jquery.validate.js
49.497 KB
June 23 2025 07:12:39
giriqfky / giriqfky
0644
jquery.validate.min.js
23.797 KB
June 23 2025 07:12:39
giriqfky / giriqfky
0644
list.min.js
17.678 KB
June 23 2025 07:12:39
giriqfky / giriqfky
0644
lity.min.js
5.892 KB
June 23 2025 07:12:39
giriqfky / giriqfky
0644
mailcheck.min.js
3.92 KB
June 23 2025 07:12:39
giriqfky / giriqfky
0644
moment-with-locales.min.js
319.001 KB
June 23 2025 07:12:39
giriqfky / giriqfky
0644
moment.min.js
50.468 KB
June 23 2025 07:12:39
giriqfky / giriqfky
0644
purify.min.js
15.885 KB
June 23 2025 07:12:39
giriqfky / giriqfky
0644
text-limit.js
4.919 KB
June 23 2025 07:12:39
giriqfky / giriqfky
0644
text-limit.min.js
2.305 KB
June 23 2025 07:12:39
giriqfky / giriqfky
0644
wpforms-confirmation.js
0.602 KB
June 23 2025 07:12:39
giriqfky / giriqfky
0644
wpforms.js
60.731 KB
June 23 2025 07:12:39
giriqfky / giriqfky
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF