1(function ($) { 2 3 "use strict"; 4 5 $(document).ready(function () { 6 $('.pa-clear-cache').on('click', 'a', function (e) { 7 8 e.preventDefault(); 9 10 var shouldClearAll = $(e.delegateTarget).hasClass("pa-clear-all-cache"), 11 _this = $(e.delegateTarget).find("i"); 12 13 if (_this.hasClass("loading")) 14 return; 15 16 _this.removeClass("dashicons-yes").addClass("dashicons-update-alt loading"); 17 18 $.ajax( 19 { 20 url: PaDynamicAssets.ajaxurl, 21 type: 'POST', 22 data: { 23 action: 'pa_clear_cached_assets', 24 security: PaDynamicAssets.nonce, 25 id: !shouldClearAll ? PaDynamicAssets.post_id : '' 26 }, 27 success: function (response) { 28 29 _this.toggleClass("loading dashicons-update-alt dashicons-yes"); 30 31 }, 32 error: function (err) { 33 console.log(err); 34 } 35 } 36 ); 37 38 }); 39 }); 40 41 42})(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.