1 2(function($) { 3 "use strict"; 4 5 $(document).ready( function() { 6 7 $("button#author_img").on("click", function(event){ 8 9 event.preventDefault(); 10 11 var logoImageUpload = wp.media({ 12 'title' : "Upload Image", 13 'button' : { 14 'text' : "Set Profile Image", 15 }, 16 'multiple' : false, 17 }); 18 19 logoImageUpload.open(); 20 21 var button = $(this); 22 23 logoImageUpload.on("select", function(){ 24 25 var image = logoImageUpload.state().get("selection").first().toJSON(); 26 27 var image_url = image.url; 28 29 button.next("input.img_link").val( image_url ); 30 31 button.parent(".website_fields").find('img').attr('src', image_url ); 32 33 }); 34 }); 35 36 }); // end document ready function 37})(jQuery); // End 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.