// These default options are for translation but can be used // for any other datatables settings // MSG_DT_* variables comes from datatables-strings.inc // To use it, write: // $("#table_id").dataTable($.extend(true, {}, dataTableDefaults, { // // other settings // } ) ); var dataTablesDefaults = { "oLanguage": { "oPaginate": { "sFirst" : window.MSG_DT_FIRST || "First", "sLast" : window.MSG_DT_LAST || "Last", "sNext" : window.MSG_DT_NEXT || "Next", "sPrevious" : window.MSG_DT_PREVIOUS || "Previous" }, "sEmptyTable" : window.MSG_DT_EMPTY_TABLE || "No data available in table", "sInfo" : window.MSG_DT_INFO || "Showing _START_ to _END_ of _TOTAL_ entries", "sInfoEmpty" : window.MSG_DT_INFO_EMPTY || "No entries to show", "sInfoFiltered" : window.MSG_DT_INFO_FILTERED || "(filtered from _MAX_ total entries)", "sLengthMenu" : window.MSG_DT_LENGTH_MENU || "Show _MENU_ entries", "sLoadingRecords" : window.MSG_DT_LOADING_RECORDS || "Loading...", "sProcessing" : window.MSG_DT_PROCESSING || "Processing...", "sSearch" : window.MSG_DT_SEARCH || "Search:", "sZeroRecords" : window.MSG_DT_ZERO_RECORDS || "No matching records found" }, // "aaSorting": [$(" - select row position of th -")], "sDom": 't', "bPaginate": false, // "fnHeaderCallback": function() { // return $('th.sorting.nosort,th.sorting_desc.nosort,th.sorting_asc.nosort').removeClass("sorting sorting_desc sorting_asc").unbind("click"); // } }; /* Plugin to allow sorting on data stored in a span's title attribute * * Ex: