1(function($) { 2 'use strict'; 3 4 $(document).ready(function() { 5 6 eltdLikes(); 7 8 }); 9 10 function eltdLikes() { 11 12 $(document).on('click','.eltd-like', function() { 13 14 var likeLink = $(this), 15 id = likeLink.attr('id'), 16 type; 17 18 if ( likeLink.hasClass('liked') ) { 19 return false; 20 } 21 22 if(typeof likeLink.data('type') !== 'undefined') { 23 type = likeLink.data('type'); 24 } 25 26 var dataToPass = { 27 action: 'newsroom_elated_like', 28 likes_id: id, 29 type: type 30 }; 31 32 var like = $.post(eltdLike.ajaxurl, dataToPass, function( data ) { 33 34 likeLink.html(data).addClass('liked').attr('title','You already like this!'); 35 36 likeLink.children('span').css('opacity',1); 37 }); 38 39 return false; 40 }); 41 } 42 43})(jQuery);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.