1$(function() { 2 $('body').delegate('.b-notifications-subscribe .button', 'click', function(){ 3 var $el = $(this); 4 var isPositive = !$el.hasClass('subscribed'); 5 var data = { 6 object_id: $el.data('object-id') 7 , object_type_id: $el.data('object-type-id') 8 , is_positive: isPositive ? 1 : 0 9 }; 10 ajaxCall('/notifications/notifications/subscribe', data, {}, function() { 11 if (!isPositive) { 12 $el.html($el.data('msg-subscribe')); 13 $el.removeClass('subscribed'); 14 } 15 else { 16 $el.html($el.data('msg-unsubscribe')); 17 $el.addClass('subscribed'); 18 } 19 }); 20 }); 21});
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.