1$(document).ready(function(){ 2 $('.file-search').click(function(){ 3 $type = $(this).data('type'); 4 if ($type == undefined) { 5 $type = ''; 6 } 7 $for = $(this).parent().attr('for'); 8 $.ajax({ 9 url: "/files/modalList/" + $type, 10 success: function($data) { 11 $('#filemodal-body').html($data); 12 $('#filemodal').modal(); 13 dataTablesInit({ 14 "drawCallback": function(){ 15 $('.modalselect').click(function(){ 16 $id = $(this).data('id'); 17 $name = $(this).data('name'); 18 // $url = $(this).data('url'); 19 // $type = $(this).data('type'); 20 // $size = $(this).data('size'); 21 // $ext = $(this).data('ext'); 22 $('#'+$for).html( 23 '<option value="'+$id+'">'+$name+'</option>' 24 ); 25 $('#filemodal').modal('toggle'); 26 }); 27 }, 28 }); 29 } 30 }); 31 }); 32});
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.