HEX
Server: Apache
System: Linux webd003.cluster128.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: slyfwmm (169339)
PHP: 8.1.34
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/s/l/y/slyfwmm/pianob/wp-content/themes/zk-monaco/assets/js/post_favorite.js
(function($) { "use strict";
jQuery(document).ready(function($){
	$('body').on('click','.nectar-love', function() {
			var $loveLink = $(this);
			var $id = $(this).attr('id');
			var $that = $(this);

			if($loveLink.hasClass('loved')) return false;
			if($(this).hasClass('inactive')) return false;

			var $dataToPass = {
				action: 'nectar-love',
				loves_id: $id
			}

			$.post(nectarLove.ajaxurl,$dataToPass, function(data){
				$loveLink.find('span').html(data);
				$loveLink.addClass('loved').attr('title','You already liked this!');
			});

			$(this).addClass('inactive');

			return false;
	});
});
})(jQuery);