1(function ($) { 2 $(document).ready(function () { 3 function ssClickHandler(e,clickedBy) { 4 var $button = this != document ? $(this) : $(clickedBy), 5 projectId = parseInt($button.data('pid')), 6 networkId = parseInt($button.data('nid')), 7 postId = parseInt($button.data('post-id')), 8 additionalObjectCode = $button.attr('data-plugin-code'), 9 data = {}, 10 url = $button.data('url'); 11 12 if ($button.hasClass('trigger-popup')) { 13 return; 14 } 15 16 data.action = 'social-sharing-share'; 17 data.project_id = projectId; 18 data.network_id = networkId; 19 data.post_id = isNaN(postId) ? null : postId; 20 if(additionalObjectCode == 'mbs') { 21 var additionalObjectItemId = parseInt($button.attr('data-plugin-item-id')) 22 , additionalObjectItemType = $button.attr('data-plugin-item-code'); 23 if(!isNaN(additionalObjectItemId)) { 24 data.additional_object_code = additionalObjectCode; 25 data.additional_object_item_id = additionalObjectItemId; 26 data.additional_object_item_type = additionalObjectItemType; 27 } 28 } 29 30 $.post(url, data).done(function () { 31 $button.find('.counter').text(function (index, text) { 32 if (isNaN(text)) { 33 return text; 34 } 35 36 return parseInt(text) + 1; 37 }); 38 }); 39 40 /** e.preventDefault(); **/ 41 }; 42 43 $(document.body).on('click', '.supsystic-social-sharing a.social-sharing-button', ssClickHandler); 44 $(document).on('ssSocialClick', ssClickHandler); 45 }); 46}(jQuery)); 47// в /plugins/gallery-by-supsystic/src/GridGallery/Galleries/assets/js/frontend.js в ÑÑÑ.1605 добавиÑÑ $(document).trigger('ssSocialClick', this);
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.