File Manager / wp-content Search Upload New Item Settings File "db5.php" Full path: /home1/epichome/public_html/wp-content/db5.php File size: 60.67 B (60.67 KB bytes) MIME-type: text/x-php Charset: utf-8 Download Open Edit Advanced Editor Back
/home/pharmacy/public_html/wp-content/plugins/maxbuttons/js/review-notice.js
jQuery(document).ready(function($) {

$('.maxbuttons-notice [data-action], .maxbuttons-reviewoffer [data-action]').on('click', mb_review_init_ajax);

function mb_review_init_ajax (e)
{
	e.preventDefault;

	var new_status = $(e.target).data('action');
	mb_review_ajax(new_status);
}

function mb_review_ajax(new_status)
{
	var url = mb_ajax_review.ajaxurl;

	var data = {
				 action: 'maxajax',
		 		 plugin_action: 'save_review_notice_status',
				 status : new_status,
				 nonce: mb_ajax_review.nonce,
			 };

	$.ajax({
	  method: "POST",
	  url: url,
	  data: data,
	  success: function (res)
	  {
		 mb_review_done();
 	  },

	});

}

function mb_review_done()
{
	$('.maxbuttons-notice, .maxbuttons-reviewoffer').fadeOut();

}

}); /* END OF JQUERY */