1function changesFavorite(id, form) { 2 if($(form).hasClass('favorite')){ 3 $.ajax({ 4 type: "post", 5 url: "/engine/favorite/add/", 6 data: {'goods_id': id}, 7 success: function () { 8 $(form).removeClass('favorite'); 9 $(form).addClass('favorite_as') 10 } 11 }) 12 return; 13 } 14 $.ajax({ 15 type: "post", 16 url: "/engine/favorite/del/", 17 data: {'goods_id': id}, 18 success: function () { 19 $(form).removeClass('favorite_as'); 20 $(form).addClass('favorite') 21 } 22 }) 23}
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.