1$(document).on('ready', function() { 2 var modal = null; 3 var current_view_link = ''; 4 5 $(document).on('click', '.modal-trigger', function(){ 6 var target = $(this).data('target'); 7 $('#'+target).fadeIn('fast'); 8 modal = document.getElementById(target); 9 current_view_link = $(this).data('link'); 10 }); 11 12 $(document).on('click', '.modal-trigger-close', function(){ 13 $(this).parents('div.modal').hide(); 14 }); 15 16 $(document).on('click', 'button.button-warning.view-content', function(){ 17 $.ajax({ 18 headers: { 19 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') 20 }, 21 url: window.view_content_route, 22 type: 'POST', 23 success: function(resp){ 24 window.location.href = current_view_link; 25 }, 26 error: function(err){ 27 console.log(err); 28 window.location.reload(); 29 } 30 }); 31 }); 32 33 // When the user clicks anywhere outside of the modal, close it 34 window.onclick = function(event) { 35 if (event.target == modal) { 36 modal.style.display = "none"; 37 } 38 } 39});
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.