HEX
Server: Apache
System: Linux 4801f1b1.ptr.provps.com 6.17.8-1.el9.elrepo.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Nov 13 18:02:25 EST 2025 x86_64
User: nassaugo (1004)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/nassaugo/www/wp-content/plugins/tuxedo-big-file-uploads/assets/js/promo-notices.js
(function ($) {
	'use strict';

	$('.bffu-notice').on('click', 'button', function (e) {
		e.preventDefault();

		const $notice = $(this).closest('.bffu-notice');
		const noticeId = $notice.data('notice-id');
		const action = $(this).data('action');
		const link = $(this).data('link');

		$.ajax({
			url: bffuPromo.ajaxurl,
			type: 'POST',
			data: {
				action: 'bffu_handle_promo_action',
				notice_id: noticeId,
				action_type: action,
				nonce: bffuPromo.nonce
			},
			success: function (response) {
				if (response.success) {
					$notice.slideUp();

					if (link) {
						window.open(link, '_blank');
						return;
					}
				}
			}
		});
	});
})(jQuery);