1(function ($) { 2 "use strict"; 3 4 $(document).ready(function(){ 5 6 $('html').on('click', '.linkfire-group-modal-button', function(){ 7 var _this = $(this); 8 var getReleaseGroupID = _this.data('linkfire-group-id'); 9 var getReleaseGroupReleaseID = _this.data('linkfire-group-release-id'); 10 var getStoreDisplayType = _this.data('store-display-type'); 11 12 _this.attr('loading', ''); 13 14 jQuery.ajax({ 15 url: UMGGR_WC_Music.ajaxurl + '?action=wc_music_group_modal&nonce=' + UMGGR_WC_Music.nonce 16 + '&releaseGroupId=' + encodeURIComponent(getReleaseGroupID) 17 + '&releaseGroupReleaseId=' + encodeURIComponent(getReleaseGroupReleaseID) 18 + '&storeDisplayType=' + encodeURIComponent(getStoreDisplayType), 19 type: 'GET', 20 success: function(response) { 21 _this.removeAttr('loading', ''); 22 if (false !== response.data.status) { 23 24 var $modalObj = $('#modalReleaseGroups'); 25 $modalObj.attr('visible', ''); 26 27 // set modal content 28 const modal = document.querySelector('#modalReleaseGroups'); 29 30 // modal title 31 const title = modal.querySelector('umg-text'); 32 title.innerHTML = response.data.releaseTitle + ' - ' + response.data.releaseGroupTitle; 33 34 // modal content 35 const modalContent = modal.querySelector('umg-vertical-stack'); 36 modalContent.innerHTML = response.data.releaseGroupContent; 37 38 } else { 39 console.log('' + response.data.msg + ''); 40 } 41 }, 42 error: function(xhr, status, error) { 43 _this.removeAttr('loading', ''); 44 console.error(error); 45 } 46 }); 47 48 }); 49 50 $('#close-modal').on('click', function(e){ 51 var $modalObj = $('#modalReleaseGroups'); 52 $modalObj.removeAttr('visible', ''); 53 }); 54 }); 55})(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.