1 2$(document).ready(function() { 3 4 //Category selection listner 5 $("#category").change(function(){ 6 var selectedValue = $(this).val(); 7 8 $.ajax({ 9 url: "/index.cfm/_cpd/getActivityOptions", 10 data: { categoryID: selectedValue } 11 }) 12 .done(function( res ) { 13 $("#activityCode").html(res); 14 }); 15 16 }); 17 18 /* 19 //Activity Select Listener 20 $("#activityCode").change(function(){ 21 var selectedValue = $(this).val(); 22 $.ajax({ 23 url: "/index.cfm/_cpd/getActivityJSON", 24 data: { activityID: selectedValue } 25 }) 26 .done(function( res ) { 27 if (res.canSubmitOnline){ 28 $("#cannotSubmitAlertWrapper").hide(); 29 $("#detailsWrapper").fadeIn(); 30 $("#activityExplanation #explanation").html(res.explanation); 31 $("#activityExplanation #points").html(res.points); 32 $("#activityExplanation #cap").html(res.cap); 33 $("#activityExplanationWrapper").fadeIn(); 34 } else { 35 $("#detailsWrapper").hide(); 36 $("#cannotSubmitAlertWrapper").fadeIn(); 37 } 38 }); 39 }); 40 */ 41 42 //set activity log datatable 43 $("#activityLog").dataTable({ 44 "aaSorting": [] 45 }); 46 47 48 $(".cpd-delete-log").click(function(){ 49 50 if (!confirm('Click OK to confirm deletion.')) {return false}; 51 52 var logid = $(this).data('logid'); 53 var profileid = $(this).data('profileid'); 54 55 $.ajax({ 56 type: "POST", 57 url: "/_cpd/deleteactivitylog", 58 data: { logid : logid, profileid : profileid }, 59 success: function(){ 60 $.msgGrowl({type:'warning',text:'Actiity Log has been Deleted'}); 61 } 62 }); 63 64 $("#log-independent-group-" + logid).fadeOut(); 65 $("#log-endorsed-group-" + logid).fadeOut(); 66 $("#log-searchable-" + logid).fadeOut(); 67 $(".log-group-total").html('<td colspan=4 align=right>
67Activity Logs have been deleted. Reload page to see totals.</td>'); 68 }) 69 70 71 72});
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.