HEX
Server: LiteSpeed
System: Linux node612.namehero.net 4.18.0-553.121.1.lve.el8.x86_64 #1 SMP Thu Apr 30 16:40:41 UTC 2026 x86_64
User: dfwparty (1186)
PHP: 8.3.31
Disabled: NONE
Upload Files
File: //home/dfwparty/www/wp-content/plugins/ws-form-pro/shared/js/ws-form-toolbar.js
(function($) {

	'use strict';

	$(function() {

		$('.wsf-admin-bar-debug-console').on('click', function(e) {	// , .wsf-admin-bar-styler

			// Prevent default
			e.preventDefault();

			// Get href
			var href = $('a', $(this)).attr('href');

			// Remove #
			var hash = href.substring(1);

			// Check debug console state
			if(['debug-off', 'debug-administrator', 'debug-on'].indexOf(hash) !== -1) {

				var helper_debug = hash.substring(6);

				// Make AJAX request
				$.ajax({

					url: ws_form_toolbar.api_url_debug + helper_debug + '/',
					type: 'POST',
					beforeSend: function(xhr) {

						xhr.setRequestHeader('X-WP-Nonce', ws_form_toolbar.x_wp_nonce);
					},
					complete: function(data){

						location.reload();
					}
				});
			}
		});
	});

})(jQuery);