');const id = $(this).data('id');if($.cookie('cp_'+id)){$(this).html(clicktmp);comment_block=0;}else{$.ajax({url: '/forums/add_plus/',type: 'POST',cache: false,data: 'post_id='+id,error: function(){$(this).html(clicktmp);comment_block=0;},success: function(d){if(d!==''){console.log(d);ob.html(d);$.cookie('cp_'+id, '1', { expires: 365, path:'/' });} else {ob.html(clicktmp);}comment_block=0;}});}return false;});$('span.negative').click(function(){if(comment_block===1){return false;}comment_block=1;const ob = $(this);const clicktmp = $(this).html();$(this).html('');const id = $(this).data('id');if($.cookie('cp_'+id)){$(this).html(clicktmp);comment_block=0;}else{$.ajax({url: '/forums/add_minus/',type: 'POST',cache: false,data: 'post_id='+id,error: function(){$(this).html(clicktmp);comment_block=0;},success: function(d){if(d!==''){ob.html(d);$.cookie('cp_'+id, '1', { expires: 365, path:'/' });} else {ob.html(clicktmp);}comment_block=0;}});}return false;});});
Karolina Michalik , super dziennikarka ! a jeszcze ma wspaniałe serce dla wszystkich poszkodowanych przez los.
Karolinko , Dziękujemy
Psiaki z Śląskich schronisk
Nie dziękuję, nie słucham RMFu
KOMENTARZE (14)