1// CPORTAL 2if (datatables_i4w_cportal_invoices == null) { 3 var datatables_i4w_cportal_invoices = {"page_length":"10","empty_table_text":"You have no invoices on file.","search_text":"Search","zero_records_text":"No matching records found","next_page_text":"Next","prev_page_text":"Previous","info_text":"Showing _START_ to _END_ of _TOTAL_ entries","info_empty_text":"Showing 0 to 0 of 0 entries","info_filtered_text":"(filtered from _MAX_ total entries)","length_menu_text":"Show _MENU_ entries"}; 4} 5if (datatables_i4w_cportal_credit_cards == null) { 6 var datatables_i4w_cportal_credit_cards = {"page_length":"10","empty_table_text":"You have no credit cards on file.","search_text":"Search","zero_records_text":"No matching records found","next_page_text":"Next","prev_page_text":"Previous","info_text":"Showing _START_ to _END_ of _TOTAL_ entries","info_empty_text":"Showing 0 to 0 of 0 entries","info_filtered_text":"(filtered from _MAX_ total entries)","length_menu_text":"Show _MENU_ entries"}; 7} 8if (datatables_i4w_cportal_subscriptions == null) { 9 var datatables_i4w_cportal_subscriptions = {"page_length":"10","empty_table_text":"You have no subscriptions on file.","search_text":"Search","zero_records_text":"No matching records found","next_page_text":"Next","prev_page_text":"Previous","info_text":"Showing _START_ to _END_ of _TOTAL_ entries","info_empty_text":"Showing 0 to 0 of 0 entries","info_filtered_text":"(filtered from _MAX_ total entries)","length_menu_text":"Show _MENU_ entries"}; 10} 11jQuery(document).ready(function() { 12 //============================================================================================================= 13 //Datatables Invoices 14 //============================================================================================================= 15 if (jQuery("#i4w-cportal-invoices").length) { 16 i4w_cportal_invoices_tbl = jQuery("#i4w-cportal-invoices").DataTable({ 17 "pageLength": parseInt(datatables_i4w_cportal_invoices.page_length), 18 "order": [[1, "desc"]], 19 "columnDefs" : [{targets: [0], orderable: false}, {"width": "60px", "targets": [0, -1] }], 20 "oLanguage": { 21 "sEmptyTable" : datatables_i4w_cportal_invoices.empty_table_text, 22 "sSearch" : datatables_i4w_cportal_invoices.search_text, 23 "sZeroRecords" : datatables_i4w_cportal_invoices.zero_records_text, 24 "oPaginate" : { 25 "sNext" : datatables_i4w_cportal_invoices.next_page_text, 26 "sPrevious" : datatables_i4w_cportal_invoices.prev_page_text 27 }, 28 "sInfo" : datatables_i4w_cportal_invoices.info_text, 29 "sInfoEmpty" : datatables_i4w_cportal_invoices.info_empty_text, 30 "sInfoFiltered" : datatables_i4w_cportal_invoices.info_filtered_text, 31 "sLengthMenu" : datatables_i4w_cportal_invoices.length_menu_text 32 } 33 }); 34 } 35 //============================================================================================================= 36 //Datatables Credit Cards 37 //============================================================================================================= 38 if (jQuery("#i4w-cportal-creditcards").length) { 39 i4w_cportal_creditcards_tbl = jQuery("#i4w-cportal-creditcards").DataTable({ 40 "pageLength": parseInt(datatables_i4w_cportal_credit_cards.page_length), 41 "order": [[0, "desc"]], 42 "oLanguage": { 43 "sEmptyTable" : datatables_i4w_cportal_credit_cards.empty_table_text, 44 "sSearch" : datatables_i4w_cportal_credit_cards.search_text, 45 "sZeroRecords" : datatables_i4w_cportal_credit_cards.zero_records_text, 46 "oPaginate" : { 47 "sNext" : datatables_i4w_cportal_credit_cards.next_page_text, 48 "sPrevious" : datatables_i4w_cportal_credit_cards.prev_page_text 49 }, 50 "sInfo" : datatables_i4w_cportal_credit_cards.info_text, 51 "sInfoEmpty" : datatables_i4w_cportal_credit_cards.info_empty_text, 52 "sInfoFiltered" : datatables_i4w_cportal_credit_cards.info_filtered_text, 53 "sLengthMenu" : datatables_i4w_cportal_credit_cards.length_menu_text 54 } 55 }); 56 } 57 //============================================================================================================= 58 //Datatables Subscriptions 59 //============================================================================================================= 60 //var i4w_cportal_subscriptions; 61 if (jQuery("#i4w-cportal-subscriptions").length) { 62 i4w_cportal_subscriptions_tbl = jQuery("#i4w-cportal-subscriptions").DataTable({ 63 "pageLength": parseInt(datatables_i4w_cportal_subscriptions.page_length), 64 "order": [[0, "desc"]], 65 "oLanguage": { 66 "sEmptyTable" : datatables_i4w_cportal_subscriptions.empty_table_text, 67 "sSearch" : datatables_i4w_cportal_subscriptions.search_text, 68 "sZeroRecords" : datatables_i4w_cportal_subscriptions.zero_records_text, 69 "oPaginate" : { 70 "sNext" : datatables_i4w_cportal_subscriptions.next_page_text, 71 "sPrevious" : datatables_i4w_cportal_subscriptions.prev_page_text 72 }, 73 "sInfo" : datatables_i4w_cportal_subscriptions.info_text, 74 "sInfoEmpty" : datatables_i4w_cportal_subscriptions.info_empty_text, 75 "sInfoFiltered" : datatables_i4w_cportal_subscriptions.info_filtered_text, 76 "sLengthMenu" : datatables_i4w_cportal_subscriptions.length_menu_text 77 } 78 }); 79 } 80 jQuery("#i4w-cportal-subscription-cc-change-submit").submit( function(event) { 81 jQuery("#i4w-cportal-subscription-message").hide(); 82 jQuery("#i4w-cportal-subscription-cc-change-submit").hide(); 83 jQuery("#i4w-cportal-subscriptions-loading").show(); 84 i4w_cportal_subscriptions_tbl.search("").columns().search("").draw(); 85 i4w_cportal_subscriptions_tbl.page.len(-1).draw(); 86 }); 87 //=============================================================================================================
88 //Datatables Activity Log 89 //============================================================================================================= 90 if (jQuery("#i4w-cportal-activities").length) { 91 i4w_cportal_activities_tbl = jQuery("#i4w-cportal-activities").dataTable({ 92 "order": [[0, "desc"]], 93 "pageLength": 25, 94 "oLanguage" : {"sEmptyTable" : "You have no activities on file for this date."} 95 }); 96 } 97});
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.