1$(document).ready(function(){ 2 $('body').on('click', '.wishlist', function() { 3 if($(this).hasClass('liked')){ 4 $(this).html('<i class="fa fa-heart-o" aria-hidden="true"></i>'); 5 $(this).removeClass('liked'); 6 var statusflag = '1'; 7 }else{ 8 $(this).html('<i class="fa fa-heart" aria-hidden="true"></i>'); 9 $(this).addClass('liked'); 10 var statusflag = '0'; 11 } 12 var pid = $(this).attr('pid'); 13 // var statusflag = $(this).attr('status'); 14 $.ajax({ 15 url:PurchaseUrl+'Purchase/AddtoWishlist', 16 data:{'productid':pid,'status':statusflag}, 17 type:'POST', 18 dataType:"json", 19 // async: false, 20 success:function(result){ 21 rtnstatus = result.status; 22 if(rtnstatus){ 23 if(result.updateflag == '0'){ 24 cust_notification("success", "top right", "fa fa-check-square",result.msg); 25 } 26 else{ 27 cust_notification("success", "top right", "fa fa-check-square", result.msg); 28 } 29 } 30 else{ 31 cust_notification("error", "top right", "fa fa-times", "Some error occur. Please Try After Sometime"); 32 } 33 } 34 }); 35 }); 36});
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.