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K,yBAA0BA,GAC1BhD,qBAAsBA,GACtBiD,oBAAqBA,GACrBnjB,cAAeA,GACf4xB,mBAAoBA,GACpB5Z,yBAA0BA,GAC1BgQ,YAAaA,GACbkL,kBAAmBA,GACnBG,iBAAkBA,GAClBQ,mBAAoBA,GACpB/H,eAAgBA,GAChB5f,eAAgBA,GAChBkV,QAASA,GACT7U,YAAaA,GACb+oB,gBAAiBA,GACjB/W,sBAAuBA,GACvBzS,kBAAmBA,GACnB6oB,YAAaA,GACbhnB,aAAcA,GACdC,aAAcA,GACdhP,oBAAqBA,GACrBuH,OAAQA,GACRe,OAAQA,GACR0uB,cAAeA,GACfxuB,eAAgBA,GAChBkF,gBAAiBA,GACjB2f,kBAAmBA,GACnBxN,YAAaA,GACbjS,cAAeA,GACfmQ,iBAAkBA,GAClB5X,UAAWA,GACXuhC,gBAAiB,WAAa,IAO/B5oC,EAAE6G,GAAGsC,UAAY3I,EAGjBA,EAAUR,EAAIA,EAGdA,EAAE6G,GAAGgiC,kBAAoBroC,EAAUyB,SACnCjC,EAAE6G,GAAGiiC,aAAetoC,EAAUwG,IAI9BhH,EAAE6G,GAAGrG,UAAY,SAAWg7B,GAC3B,OAAOx7B,EAAEU,MAAMyI,UAAWqyB,GAAO36B,KAClC,EAIAb,EAAEkH,KAAM1G,GAAW,SAAWsR,EAAMpD,GACnC1O,EAAE6G,GAAGrG,UAAWsR,GAASpD,CAC1B,IAqKO1O,EAAE6G,GAAGsC,SACb,CAr8dUrJ,CAASE,EAAGC,OAAQC,SAC1B,sCAwBH,CA/BA","sources":["webpack://disp0001/./src/plugins/datatables/DataTables-1.10.20/js/jquery.dataTables.js"],"sourcesContent":["/*! DataTables 1.10.20\r\n * ©2008-2019 SpryMedia Ltd - datatables.net/license\r\n */\r\n\r\n/**\r\n * @summary DataTables\r\n * @description Paginate, search and order HTML tables\r\n * @version 1.10.20\r\n * @file jquery.dataTables.js\r\n * @author SpryMedia Ltd\r\n * @contact www.datatables.net\r\n * @copyright Copyright 2008-2019 SpryMedia Ltd.\r\n *\r\n * This source file is free software, available under the following license:\r\n * MIT license - http://datatables.net/license\r\n *\r\n * This source file is distributed in the hope that it will be useful, but\r\n * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY\r\n * or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details.\r\n *\r\n * For details please refer to: http://www.datatables.net\r\n */\r\n\r\n/*jslint evil: true, undef: true, browser: true */\r\n/*globals $,require,jQuery,define,_selector_run,_selector_opts,_selector_first,_selector_row_indexes,_ext,_Api,_api_register,_api_registerPlural,_re_new_lines,_re_html,_re_formatted_numeric,_re_escape_regex,_empty,_intVal,_numToDecimal,_isNumber,_isHtml,_htmlNumeric,_pluck,_pluck_order,_range,_stripHtml,_unique,_fnBuildAjax,_fnAjaxUpdate,_fnAjaxParameters,_fnAjaxUpdateDraw,_fnAjaxDataSrc,_fnAddColumn,_fnColumnOptions,_fnAdjustColumnSizing,_fnVisibleToColumnIndex,_fnColumnIndexToVisible,_fnVisbleColumns,_fnGetColumns,_fnColumnTypes,_fnApplyColumnDefs,_fnHungarianMap,_fnCamelToHungarian,_fnLanguageCompat,_fnBrowserDetect,_fnAddData,_fnAddTr,_fnNodeToDataIndex,_fnNodeToColumnIndex,_fnGetCellData,_fnSetCellData,_fnSplitObjNotation,_fnGetObjectDataFn,_fnSetObjectDataFn,_fnGetDataMaster,_fnClearTable,_fnDeleteIndex,_fnInvalidate,_fnGetRowElements,_fnCreateTr,_fnBuildHead,_fnDrawHead,_fnDraw,_fnReDraw,_fnAddOptionsHtml,_fnDetectHeader,_fnGetUniqueThs,_fnFeatureHtmlFilter,_fnFilterComplete,_fnFilterCustom,_fnFilterColumn,_fnFilter,_fnFilterCreateSearch,_fnEscapeRegex,_fnFilterData,_fnFeatureHtmlInfo,_fnUpdateInfo,_fnInfoMacros,_fnInitialise,_fnInitComplete,_fnLengthChange,_fnFeatureHtmlLength,_fnFeatureHtmlPaginate,_fnPageChange,_fnFeatureHtmlProcessing,_fnProcessingDisplay,_fnFeatureHtmlTable,_fnScrollDraw,_fnApplyToChildren,_fnCalculateColumnWidths,_fnThrottle,_fnConvertToWidth,_fnGetWidestNode,_fnGetMaxLenString,_fnStringToCss,_fnSortFlatten,_fnSort,_fnSortAria,_fnSortListener,_fnSortAttachListener,_fnSortingClasses,_fnSortData,_fnSaveState,_fnLoadState,_fnSettingsFromNode,_fnLog,_fnMap,_fnBindAction,_fnCallbackReg,_fnCallbackFire,_fnLengthOverflow,_fnRenderer,_fnDataSource,_fnRowAttributes*/\r\n\r\n(function( factory ) {\r\n\t\"use strict\";\r\n\r\n\tif ( typeof define === 'function' && define.amd ) {\r\n\t\t// AMD\r\n\t\tdefine( ['jquery'], function ( $ ) {\r\n\t\t\treturn factory( $, window, document );\r\n\t\t} );\r\n\t}\r\n\telse if ( typeof exports === 'object' ) {\r\n\t\t// CommonJS\r\n\t\tmodule.exports = function (root, $) {\r\n\t\t\tif ( ! root ) {\r\n\t\t\t\t// CommonJS environments without a window global must pass a\r\n\t\t\t\t// root. This will give an error otherwise\r\n\t\t\t\troot = window;\r\n\t\t\t}\r\n\r\n\t\t\tif ( ! $ ) {\r\n\t\t\t\t$ = typeof window !== 'undefined' ? // jQuery's factory checks for a global window\r\n\t\t\t\t\trequire('jquery') :\r\n\t\t\t\t\trequire('jquery')( root );\r\n\t\t\t}\r\n\r\n\t\t\treturn factory( $, root, root.document );\r\n\t\t};\r\n\t}\r\n\telse {\r\n\t\t// Browser\r\n\t\tfactory( jQuery, window, document );\r\n\t}\r\n}\r\n(function( $, window, document, undefined ) {\r\n\t\"use strict\";\r\n\r\n\t/**\r\n\t * DataTables is a plug-in for the jQuery Javascript library. It is a highly\r\n\t * flexible tool, based upon the foundations of progressive enhancement,\r\n\t * which will add advanced interaction controls to any HTML table. For a\r\n\t * full list of features please refer to\r\n\t * [DataTables.net](href=\"http://datatables.net).\r\n\t *\r\n\t * Note that the `DataTable` object is not a global variable but is aliased\r\n\t * to `jQuery.fn.DataTable` and `jQuery.fn.dataTable` through which it may\r\n\t * be accessed.\r\n\t *\r\n\t * @class\r\n\t * @param {object} [init={}] Configuration object for DataTables. Options\r\n\t * are defined by {@link DataTable.defaults}\r\n\t * @requires jQuery 1.7+\r\n\t *\r\n\t * @example\r\n\t * // Basic initialisation\r\n\t * $(document).ready( function {\r\n\t * $('#example').dataTable();\r\n\t * } );\r\n\t *\r\n\t * @example\r\n\t * // Initialisation with configuration options - in this case, disable\r\n\t * // pagination and sorting.\r\n\t * $(document).ready( function {\r\n\t * $('#example').dataTable( {\r\n\t * \"paginate\": false,\r\n\t * \"sort\": false\r\n\t * } );\r\n\t * } );\r\n\t */\r\n\tvar DataTable = function ( options )\r\n\t{\r\n\t\t/**\r\n\t\t * Perform a jQuery selector action on the table's TR elements (from the tbody) and\r\n\t\t * return the resulting jQuery object.\r\n\t\t * @param {string|node|jQuery} sSelector jQuery selector or node collection to act on\r\n\t\t * @param {object} [oOpts] Optional parameters for modifying the rows to be included\r\n\t\t * @param {string} [oOpts.filter=none] Select TR elements that meet the current filter\r\n\t\t * criterion (\"applied\") or all TR elements (i.e. no filter).\r\n\t\t * @param {string} [oOpts.order=current] Order of the TR elements in the processed array.\r\n\t\t * Can be either 'current', whereby the current sorting of the table is used, or\r\n\t\t * 'original' whereby the original order the data was read into the table is used.\r\n\t\t * @param {string} [oOpts.page=all] Limit the selection to the currently displayed page\r\n\t\t * (\"current\") or not (\"all\"). If 'current' is given, then order is assumed to be\r\n\t\t * 'current' and filter is 'applied', regardless of what they might be given as.\r\n\t\t * @returns {object} jQuery object, filtered by the given selector.\r\n\t\t * @dtopt API\r\n\t\t * @deprecated Since v1.10\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready(function() {\r\n\t\t * var oTable = $('#example').dataTable();\r\n\t\t *\r\n\t\t * // Highlight every second row\r\n\t\t * oTable.$('tr:odd').css('backgroundColor', 'blue');\r\n\t\t * } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready(function() {\r\n\t\t * var oTable = $('#example').dataTable();\r\n\t\t *\r\n\t\t * // Filter to rows with 'Webkit' in them, add a background colour and then\r\n\t\t * // remove the filter, thus highlighting the 'Webkit' rows only.\r\n\t\t * oTable.fnFilter('Webkit');\r\n\t\t * oTable.$('tr', {\"search\": \"applied\"}).css('backgroundColor', 'blue');\r\n\t\t * oTable.fnFilter('');\r\n\t\t * } );\r\n\t\t */\r\n\t\tthis.$ = function ( sSelector, oOpts )\r\n\t\t{\r\n\t\t\treturn this.api(true).$( sSelector, oOpts );\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Almost identical to $ in operation, but in this case returns the data for the matched\r\n\t\t * rows - as such, the jQuery selector used should match TR row nodes or TD/TH cell nodes\r\n\t\t * rather than any descendants, so the data can be obtained for the row/cell. If matching\r\n\t\t * rows are found, the data returned is the original data array/object that was used to\r\n\t\t * create the row (or a generated array if from a DOM source).\r\n\t\t *\r\n\t\t * This method is often useful in-combination with $ where both functions are given the\r\n\t\t * same parameters and the array indexes will match identically.\r\n\t\t * @param {string|node|jQuery} sSelector jQuery selector or node collection to act on\r\n\t\t * @param {object} [oOpts] Optional parameters for modifying the rows to be included\r\n\t\t * @param {string} [oOpts.filter=none] Select elements that meet the current filter\r\n\t\t * criterion (\"applied\") or all elements (i.e. no filter).\r\n\t\t * @param {string} [oOpts.order=current] Order of the data in the processed array.\r\n\t\t * Can be either 'current', whereby the current sorting of the table is used, or\r\n\t\t * 'original' whereby the original order the data was read into the table is used.\r\n\t\t * @param {string} [oOpts.page=all] Limit the selection to the currently displayed page\r\n\t\t * (\"current\") or not (\"all\"). If 'current' is given, then order is assumed to be\r\n\t\t * 'current' and filter is 'applied', regardless of what they might be given as.\r\n\t\t * @returns {array} Data for the matched elements. If any elements, as a result of the\r\n\t\t * selector, were not TR, TD or TH elements in the DataTable, they will have a null\r\n\t\t * entry in the array.\r\n\t\t * @dtopt API\r\n\t\t * @deprecated Since v1.10\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready(function() {\r\n\t\t * var oTable = $('#example').dataTable();\r\n\t\t *\r\n\t\t * // Get the data from the first row in the table\r\n\t\t * var data = oTable._('tr:first');\r\n\t\t *\r\n\t\t * // Do something useful with the data\r\n\t\t * alert( \"First cell is: \"+data[0] );\r\n\t\t * } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready(function() {\r\n\t\t * var oTable = $('#example').dataTable();\r\n\t\t *\r\n\t\t * // Filter to 'Webkit' and get all data for\r\n\t\t * oTable.fnFilter('Webkit');\r\n\t\t * var data = oTable._('tr', {\"search\": \"applied\"});\r\n\t\t *\r\n\t\t * // Do something with the data\r\n\t\t * alert( data.length+\" rows matched the search\" );\r\n\t\t * } );\r\n\t\t */\r\n\t\tthis._ = function ( sSelector, oOpts )\r\n\t\t{\r\n\t\t\treturn this.api(true).rows( sSelector, oOpts ).data();\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Create a DataTables Api instance, with the currently selected tables for\r\n\t\t * the Api's context.\r\n\t\t * @param {boolean} [traditional=false] Set the API instance's context to be\r\n\t\t * only the table referred to by the `DataTable.ext.iApiIndex` option, as was\r\n\t\t * used in the API presented by DataTables 1.9- (i.e. the traditional mode),\r\n\t\t * or if all tables captured in the jQuery object should be used.\r\n\t\t * @return {DataTables.Api}\r\n\t\t */\r\n\t\tthis.api = function ( traditional )\r\n\t\t{\r\n\t\t\treturn traditional ?\r\n\t\t\t\tnew _Api(\r\n\t\t\t\t\t_fnSettingsFromNode( this[ _ext.iApiIndex ] )\r\n\t\t\t\t) :\r\n\t\t\t\tnew _Api( this );\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Add a single new row or multiple rows of data to the table. Please note\r\n\t\t * that this is suitable for client-side processing only - if you are using\r\n\t\t * server-side processing (i.e. \"bServerSide\": true), then to add data, you\r\n\t\t * must add it to the data source, i.e. the server-side, through an Ajax call.\r\n\t\t * @param {array|object} data The data to be added to the table. This can be:\r\n\t\t * <ul>\r\n\t\t * <li>1D array of data - add a single row with the data provided</li>\r\n\t\t * <li>2D array of arrays - add multiple rows in a single call</li>\r\n\t\t * <li>object - data object when using <i>mData</i></li>\r\n\t\t * <li>array of objects - multiple data objects when using <i>mData</i></li>\r\n\t\t * </ul>\r\n\t\t * @param {bool} [redraw=true] redraw the table or not\r\n\t\t * @returns {array} An array of integers, representing the list of indexes in\r\n\t\t * <i>aoData</i> ({@link DataTable.models.oSettings}) that have been added to\r\n\t\t * the table.\r\n\t\t * @dtopt API\r\n\t\t * @deprecated Since v1.10\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Global var for counter\r\n\t\t * var giCount = 2;\r\n\t\t *\r\n\t\t * $(document).ready(function() {\r\n\t\t * $('#example').dataTable();\r\n\t\t * } );\r\n\t\t *\r\n\t\t * function fnClickAddRow() {\r\n\t\t * $('#example').dataTable().fnAddData( [\r\n\t\t * giCount+\".1\",\r\n\t\t * giCount+\".2\",\r\n\t\t * giCount+\".3\",\r\n\t\t * giCount+\".4\" ]\r\n\t\t * );\r\n\t\t *\r\n\t\t * giCount++;\r\n\t\t * }\r\n\t\t */\r\n\t\tthis.fnAddData = function( data, redraw )\r\n\t\t{\r\n\t\t\tvar api = this.api( true );\r\n\t\t\r\n\t\t\t/* Check if we want to add multiple rows or not */\r\n\t\t\tvar rows = $.isArray(data) && ( $.isArray(data[0]) || $.isPlainObject(data[0]) ) ?\r\n\t\t\t\tapi.rows.add( data ) :\r\n\t\t\t\tapi.row.add( data );\r\n\t\t\r\n\t\t\tif ( redraw === undefined || redraw ) {\r\n\t\t\t\tapi.draw();\r\n\t\t\t}\r\n\t\t\r\n\t\t\treturn rows.flatten().toArray();\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * This function will make DataTables recalculate the column sizes, based on the data\r\n\t\t * contained in the table and the sizes applied to the columns (in the DOM, CSS or\r\n\t\t * through the sWidth parameter). This can be useful when the width of the table's\r\n\t\t * parent element changes (for example a window resize).\r\n\t\t * @param {boolean} [bRedraw=true] Redraw the table or not, you will typically want to\r\n\t\t * @dtopt API\r\n\t\t * @deprecated Since v1.10\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready(function() {\r\n\t\t * var oTable = $('#example').dataTable( {\r\n\t\t * \"sScrollY\": \"200px\",\r\n\t\t * \"bPaginate\": false\r\n\t\t * } );\r\n\t\t *\r\n\t\t * $(window).on('resize', function () {\r\n\t\t * oTable.fnAdjustColumnSizing();\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\tthis.fnAdjustColumnSizing = function ( bRedraw )\r\n\t\t{\r\n\t\t\tvar api = this.api( true ).columns.adjust();\r\n\t\t\tvar settings = api.settings()[0];\r\n\t\t\tvar scroll = settings.oScroll;\r\n\t\t\r\n\t\t\tif ( bRedraw === undefined || bRedraw ) {\r\n\t\t\t\tapi.draw( false );\r\n\t\t\t}\r\n\t\t\telse if ( scroll.sX !== \"\" || scroll.sY !== \"\" ) {\r\n\t\t\t\t/* If not redrawing, but scrolling, we want to apply the new column sizes anyway */\r\n\t\t\t\t_fnScrollDraw( settings );\r\n\t\t\t}\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Quickly and simply clear a table\r\n\t\t * @param {bool} [bRedraw=true] redraw the table or not\r\n\t\t * @dtopt API\r\n\t\t * @deprecated Since v1.10\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready(function() {\r\n\t\t * var oTable = $('#example').dataTable();\r\n\t\t *\r\n\t\t * // Immediately 'nuke' the current rows (perhaps waiting for an Ajax callback...)\r\n\t\t * oTable.fnClearTable();\r\n\t\t * } );\r\n\t\t */\r\n\t\tthis.fnClearTable = function( bRedraw )\r\n\t\t{\r\n\t\t\tvar api = this.api( true ).clear();\r\n\t\t\r\n\t\t\tif ( bRedraw === undefined || bRedraw ) {\r\n\t\t\t\tapi.draw();\r\n\t\t\t}\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * The exact opposite of 'opening' a row, this function will close any rows which\r\n\t\t * are currently 'open'.\r\n\t\t * @param {node} nTr the table row to 'close'\r\n\t\t * @returns {int} 0 on success, or 1 if failed (can't find the row)\r\n\t\t * @dtopt API\r\n\t\t * @deprecated Since v1.10\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready(function() {\r\n\t\t * var oTable;\r\n\t\t *\r\n\t\t * // 'open' an information row when a row is clicked on\r\n\t\t * $('#example tbody tr').click( function () {\r\n\t\t * if ( oTable.fnIsOpen(this) ) {\r\n\t\t * oTable.fnClose( this );\r\n\t\t * } else {\r\n\t\t * oTable.fnOpen( this, \"Temporary row opened\", \"info_row\" );\r\n\t\t * }\r\n\t\t * } );\r\n\t\t *\r\n\t\t * oTable = $('#example').dataTable();\r\n\t\t * } );\r\n\t\t */\r\n\t\tthis.fnClose = function( nTr )\r\n\t\t{\r\n\t\t\tthis.api( true ).row( nTr ).child.hide();\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Remove a row for the table\r\n\t\t * @param {mixed} target The index of the row from aoData to be deleted, or\r\n\t\t * the TR element you want to delete\r\n\t\t * @param {function|null} [callBack] Callback function\r\n\t\t * @param {bool} [redraw=true] Redraw the table or not\r\n\t\t * @returns {array} The row that was deleted\r\n\t\t * @dtopt API\r\n\t\t * @deprecated Since v1.10\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready(function() {\r\n\t\t * var oTable = $('#example').dataTable();\r\n\t\t *\r\n\t\t * // Immediately remove the first row\r\n\t\t * oTable.fnDeleteRow( 0 );\r\n\t\t * } );\r\n\t\t */\r\n\t\tthis.fnDeleteRow = function( target, callback, redraw )\r\n\t\t{\r\n\t\t\tvar api = this.api( true );\r\n\t\t\tvar rows = api.rows( target );\r\n\t\t\tvar settings = rows.settings()[0];\r\n\t\t\tvar data = settings.aoData[ rows[0][0] ];\r\n\t\t\r\n\t\t\trows.remove();\r\n\t\t\r\n\t\t\tif ( callback ) {\r\n\t\t\t\tcallback.call( this, settings, data );\r\n\t\t\t}\r\n\t\t\r\n\t\t\tif ( redraw === undefined || redraw ) {\r\n\t\t\t\tapi.draw();\r\n\t\t\t}\r\n\t\t\r\n\t\t\treturn data;\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Restore the table to it's original state in the DOM by removing all of DataTables\r\n\t\t * enhancements, alterations to the DOM structure of the table and event listeners.\r\n\t\t * @param {boolean} [remove=false] Completely remove the table from the DOM\r\n\t\t * @dtopt API\r\n\t\t * @deprecated Since v1.10\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready(function() {\r\n\t\t * // This example is fairly pointless in reality, but shows how fnDestroy can be used\r\n\t\t * var oTable = $('#example').dataTable();\r\n\t\t * oTable.fnDestroy();\r\n\t\t * } );\r\n\t\t */\r\n\t\tthis.fnDestroy = function ( remove )\r\n\t\t{\r\n\t\t\tthis.api( true ).destroy( remove );\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Redraw the table\r\n\t\t * @param {bool} [complete=true] Re-filter and resort (if enabled) the table before the draw.\r\n\t\t * @dtopt API\r\n\t\t * @deprecated Since v1.10\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready(function() {\r\n\t\t * var oTable = $('#example').dataTable();\r\n\t\t *\r\n\t\t * // Re-draw the table - you wouldn't want to do it here, but it's an example :-)\r\n\t\t * oTable.fnDraw();\r\n\t\t * } );\r\n\t\t */\r\n\t\tthis.fnDraw = function( complete )\r\n\t\t{\r\n\t\t\t// Note that this isn't an exact match to the old call to _fnDraw - it takes\r\n\t\t\t// into account the new data, but can hold position.\r\n\t\t\tthis.api( true ).draw( complete );\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Filter the input based on data\r\n\t\t * @param {string} sInput String to filter the table on\r\n\t\t * @param {int|null} [iColumn] Column to limit filtering to\r\n\t\t * @param {bool} [bRegex=false] Treat as regular expression or not\r\n\t\t * @param {bool} [bSmart=true] Perform smart filtering or not\r\n\t\t * @param {bool} [bShowGlobal=true] Show the input global filter in it's input box(es)\r\n\t\t * @param {bool} [bCaseInsensitive=true] Do case-insensitive matching (true) or not (false)\r\n\t\t * @dtopt API\r\n\t\t * @deprecated Since v1.10\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready(function() {\r\n\t\t * var oTable = $('#example').dataTable();\r\n\t\t *\r\n\t\t * // Sometime later - filter...\r\n\t\t * oTable.fnFilter( 'test string' );\r\n\t\t * } );\r\n\t\t */\r\n\t\tthis.fnFilter = function( sInput, iColumn, bRegex, bSmart, bShowGlobal, bCaseInsensitive )\r\n\t\t{\r\n\t\t\tvar api = this.api( true );\r\n\t\t\r\n\t\t\tif ( iColumn === null || iColumn === undefined ) {\r\n\t\t\t\tapi.search( sInput, bRegex, bSmart, bCaseInsensitive );\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tapi.column( iColumn ).search( sInput, bRegex, bSmart, bCaseInsensitive );\r\n\t\t\t}\r\n\t\t\r\n\t\t\tapi.draw();\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Get the data for the whole table, an individual row or an individual cell based on the\r\n\t\t * provided parameters.\r\n\t\t * @param {int|node} [src] A TR row node, TD/TH cell node or an integer. If given as\r\n\t\t * a TR node then the data source for the whole row will be returned. If given as a\r\n\t\t * TD/TH cell node then iCol will be automatically calculated and the data for the\r\n\t\t * cell returned. If given as an integer, then this is treated as the aoData internal\r\n\t\t * data index for the row (see fnGetPosition) and the data for that row used.\r\n\t\t * @param {int} [col] Optional column index that you want the data of.\r\n\t\t * @returns {array|object|string} If mRow is undefined, then the data for all rows is\r\n\t\t * returned. If mRow is defined, just data for that row, and is iCol is\r\n\t\t * defined, only data for the designated cell is returned.\r\n\t\t * @dtopt API\r\n\t\t * @deprecated Since v1.10\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Row data\r\n\t\t * $(document).ready(function() {\r\n\t\t * oTable = $('#example').dataTable();\r\n\t\t *\r\n\t\t * oTable.$('tr').click( function () {\r\n\t\t * var data = oTable.fnGetData( this );\r\n\t\t * // ... do something with the array / object of data for the row\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Individual cell data\r\n\t\t * $(document).ready(function() {\r\n\t\t * oTable = $('#example').dataTable();\r\n\t\t *\r\n\t\t * oTable.$('td').click( function () {\r\n\t\t * var sData = oTable.fnGetData( this );\r\n\t\t * alert( 'The cell clicked on had the value of '+sData );\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\tthis.fnGetData = function( src, col )\r\n\t\t{\r\n\t\t\tvar api = this.api( true );\r\n\t\t\r\n\t\t\tif ( src !== undefined ) {\r\n\t\t\t\tvar type = src.nodeName ? src.nodeName.toLowerCase() : '';\r\n\t\t\r\n\t\t\t\treturn col !== undefined || type == 'td' || type == 'th' ?\r\n\t\t\t\t\tapi.cell( src, col ).data() :\r\n\t\t\t\t\tapi.row( src ).data() || null;\r\n\t\t\t}\r\n\t\t\r\n\t\t\treturn api.data().toArray();\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Get an array of the TR nodes that are used in the table's body. Note that you will\r\n\t\t * typically want to use the '$' API method in preference to this as it is more\r\n\t\t * flexible.\r\n\t\t * @param {int} [iRow] Optional row index for the TR element you want\r\n\t\t * @returns {array|node} If iRow is undefined, returns an array of all TR elements\r\n\t\t * in the table's body, or iRow is defined, just the TR element requested.\r\n\t\t * @dtopt API\r\n\t\t * @deprecated Since v1.10\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready(function() {\r\n\t\t * var oTable = $('#example').dataTable();\r\n\t\t *\r\n\t\t * // Get the nodes from the table\r\n\t\t * var nNodes = oTable.fnGetNodes( );\r\n\t\t * } );\r\n\t\t */\r\n\t\tthis.fnGetNodes = function( iRow )\r\n\t\t{\r\n\t\t\tvar api = this.api( true );\r\n\t\t\r\n\t\t\treturn iRow !== undefined ?\r\n\t\t\t\tapi.row( iRow ).node() :\r\n\t\t\t\tapi.rows().nodes().flatten().toArray();\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Get the array indexes of a particular cell from it's DOM element\r\n\t\t * and column index including hidden columns\r\n\t\t * @param {node} node this can either be a TR, TD or TH in the table's body\r\n\t\t * @returns {int} If nNode is given as a TR, then a single index is returned, or\r\n\t\t * if given as a cell, an array of [row index, column index (visible),\r\n\t\t * column index (all)] is given.\r\n\t\t * @dtopt API\r\n\t\t * @deprecated Since v1.10\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready(function() {\r\n\t\t * $('#example tbody td').click( function () {\r\n\t\t * // Get the position of the current data from the node\r\n\t\t * var aPos = oTable.fnGetPosition( this );\r\n\t\t *\r\n\t\t * // Get the data array for this row\r\n\t\t * var aData = oTable.fnGetData( aPos[0] );\r\n\t\t *\r\n\t\t * // Update the data array and return the value\r\n\t\t * aData[ aPos[1] ] = 'clicked';\r\n\t\t * this.innerHTML = 'clicked';\r\n\t\t * } );\r\n\t\t *\r\n\t\t * // Init DataTables\r\n\t\t * oTable = $('#example').dataTable();\r\n\t\t * } );\r\n\t\t */\r\n\t\tthis.fnGetPosition = function( node )\r\n\t\t{\r\n\t\t\tvar api = this.api( true );\r\n\t\t\tvar nodeName = node.nodeName.toUpperCase();\r\n\t\t\r\n\t\t\tif ( nodeName == 'TR' ) {\r\n\t\t\t\treturn api.row( node ).index();\r\n\t\t\t}\r\n\t\t\telse if ( nodeName == 'TD' || nodeName == 'TH' ) {\r\n\t\t\t\tvar cell = api.cell( node ).index();\r\n\t\t\r\n\t\t\t\treturn [\r\n\t\t\t\t\tcell.row,\r\n\t\t\t\t\tcell.columnVisible,\r\n\t\t\t\t\tcell.column\r\n\t\t\t\t];\r\n\t\t\t}\r\n\t\t\treturn null;\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Check to see if a row is 'open' or not.\r\n\t\t * @param {node} nTr the table row to check\r\n\t\t * @returns {boolean} true if the row is currently open, false otherwise\r\n\t\t * @dtopt API\r\n\t\t * @deprecated Since v1.10\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready(function() {\r\n\t\t * var oTable;\r\n\t\t *\r\n\t\t * // 'open' an information row when a row is clicked on\r\n\t\t * $('#example tbody tr').click( function () {\r\n\t\t * if ( oTable.fnIsOpen(this) ) {\r\n\t\t * oTable.fnClose( this );\r\n\t\t * } else {\r\n\t\t * oTable.fnOpen( this, \"Temporary row opened\", \"info_row\" );\r\n\t\t * }\r\n\t\t * } );\r\n\t\t *\r\n\t\t * oTable = $('#example').dataTable();\r\n\t\t * } );\r\n\t\t */\r\n\t\tthis.fnIsOpen = function( nTr )\r\n\t\t{\r\n\t\t\treturn this.api( true ).row( nTr ).child.isShown();\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * This function will place a new row directly after a row which is currently\r\n\t\t * on display on the page, with the HTML contents that is passed into the\r\n\t\t * function. This can be used, for example, to ask for confirmation that a\r\n\t\t * particular record should be deleted.\r\n\t\t * @param {node} nTr The table row to 'open'\r\n\t\t * @param {string|node|jQuery} mHtml The HTML to put into the row\r\n\t\t * @param {string} sClass Class to give the new TD cell\r\n\t\t * @returns {node} The row opened. Note that if the table row passed in as the\r\n\t\t * first parameter, is not found in the table, this method will silently\r\n\t\t * return.\r\n\t\t * @dtopt API\r\n\t\t * @deprecated Since v1.10\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready(function() {\r\n\t\t * var oTable;\r\n\t\t *\r\n\t\t * // 'open' an information row when a row is clicked on\r\n\t\t * $('#example tbody tr').click( function () {\r\n\t\t * if ( oTable.fnIsOpen(this) ) {\r\n\t\t * oTable.fnClose( this );\r\n\t\t * } else {\r\n\t\t * oTable.fnOpen( this, \"Temporary row opened\", \"info_row\" );\r\n\t\t * }\r\n\t\t * } );\r\n\t\t *\r\n\t\t * oTable = $('#example').dataTable();\r\n\t\t * } );\r\n\t\t */\r\n\t\tthis.fnOpen = function( nTr, mHtml, sClass )\r\n\t\t{\r\n\t\t\treturn this.api( true )\r\n\t\t\t\t.row( nTr )\r\n\t\t\t\t.child( mHtml, sClass )\r\n\t\t\t\t.show()\r\n\t\t\t\t.child()[0];\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Change the pagination - provides the internal logic for pagination in a simple API\r\n\t\t * function. With this function you can have a DataTables table go to the next,\r\n\t\t * previous, first or last pages.\r\n\t\t * @param {string|int} mAction Paging action to take: \"first\", \"previous\", \"next\" or \"last\"\r\n\t\t * or page number to jump to (integer), note that page 0 is the first page.\r\n\t\t * @param {bool} [bRedraw=true] Redraw the table or not\r\n\t\t * @dtopt API\r\n\t\t * @deprecated Since v1.10\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready(function() {\r\n\t\t * var oTable = $('#example').dataTable();\r\n\t\t * oTable.fnPageChange( 'next' );\r\n\t\t * } );\r\n\t\t */\r\n\t\tthis.fnPageChange = function ( mAction, bRedraw )\r\n\t\t{\r\n\t\t\tvar api = this.api( true ).page( mAction );\r\n\t\t\r\n\t\t\tif ( bRedraw === undefined || bRedraw ) {\r\n\t\t\t\tapi.draw(false);\r\n\t\t\t}\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Show a particular column\r\n\t\t * @param {int} iCol The column whose display should be changed\r\n\t\t * @param {bool} bShow Show (true) or hide (false) the column\r\n\t\t * @param {bool} [bRedraw=true] Redraw the table or not\r\n\t\t * @dtopt API\r\n\t\t * @deprecated Since v1.10\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready(function() {\r\n\t\t * var oTable = $('#example').dataTable();\r\n\t\t *\r\n\t\t * // Hide the second column after initialisation\r\n\t\t * oTable.fnSetColumnVis( 1, false );\r\n\t\t * } );\r\n\t\t */\r\n\t\tthis.fnSetColumnVis = function ( iCol, bShow, bRedraw )\r\n\t\t{\r\n\t\t\tvar api = this.api( true ).column( iCol ).visible( bShow );\r\n\t\t\r\n\t\t\tif ( bRedraw === undefined || bRedraw ) {\r\n\t\t\t\tapi.columns.adjust().draw();\r\n\t\t\t}\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Get the settings for a particular table for external manipulation\r\n\t\t * @returns {object} DataTables settings object. See\r\n\t\t * {@link DataTable.models.oSettings}\r\n\t\t * @dtopt API\r\n\t\t * @deprecated Since v1.10\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready(function() {\r\n\t\t * var oTable = $('#example').dataTable();\r\n\t\t * var oSettings = oTable.fnSettings();\r\n\t\t *\r\n\t\t * // Show an example parameter from the settings\r\n\t\t * alert( oSettings._iDisplayStart );\r\n\t\t * } );\r\n\t\t */\r\n\t\tthis.fnSettings = function()\r\n\t\t{\r\n\t\t\treturn _fnSettingsFromNode( this[_ext.iApiIndex] );\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Sort the table by a particular column\r\n\t\t * @param {int} iCol the data index to sort on. Note that this will not match the\r\n\t\t * 'display index' if you have hidden data entries\r\n\t\t * @dtopt API\r\n\t\t * @deprecated Since v1.10\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready(function() {\r\n\t\t * var oTable = $('#example').dataTable();\r\n\t\t *\r\n\t\t * // Sort immediately with columns 0 and 1\r\n\t\t * oTable.fnSort( [ [0,'asc'], [1,'asc'] ] );\r\n\t\t * } );\r\n\t\t */\r\n\t\tthis.fnSort = function( aaSort )\r\n\t\t{\r\n\t\t\tthis.api( true ).order( aaSort ).draw();\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Attach a sort listener to an element for a given column\r\n\t\t * @param {node} nNode the element to attach the sort listener to\r\n\t\t * @param {int} iColumn the column that a click on this node will sort on\r\n\t\t * @param {function} [fnCallback] callback function when sort is run\r\n\t\t * @dtopt API\r\n\t\t * @deprecated Since v1.10\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready(function() {\r\n\t\t * var oTable = $('#example').dataTable();\r\n\t\t *\r\n\t\t * // Sort on column 1, when 'sorter' is clicked on\r\n\t\t * oTable.fnSortListener( document.getElementById('sorter'), 1 );\r\n\t\t * } );\r\n\t\t */\r\n\t\tthis.fnSortListener = function( nNode, iColumn, fnCallback )\r\n\t\t{\r\n\t\t\tthis.api( true ).order.listener( nNode, iColumn, fnCallback );\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Update a table cell or row - this method will accept either a single value to\r\n\t\t * update the cell with, an array of values with one element for each column or\r\n\t\t * an object in the same format as the original data source. The function is\r\n\t\t * self-referencing in order to make the multi column updates easier.\r\n\t\t * @param {object|array|string} mData Data to update the cell/row with\r\n\t\t * @param {node|int} mRow TR element you want to update or the aoData index\r\n\t\t * @param {int} [iColumn] The column to update, give as null or undefined to\r\n\t\t * update a whole row.\r\n\t\t * @param {bool} [bRedraw=true] Redraw the table or not\r\n\t\t * @param {bool} [bAction=true] Perform pre-draw actions or not\r\n\t\t * @returns {int} 0 on success, 1 on error\r\n\t\t * @dtopt API\r\n\t\t * @deprecated Since v1.10\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready(function() {\r\n\t\t * var oTable = $('#example').dataTable();\r\n\t\t * oTable.fnUpdate( 'Example update', 0, 0 ); // Single cell\r\n\t\t * oTable.fnUpdate( ['a', 'b', 'c', 'd', 'e'], $('tbody tr')[0] ); // Row\r\n\t\t * } );\r\n\t\t */\r\n\t\tthis.fnUpdate = function( mData, mRow, iColumn, bRedraw, bAction )\r\n\t\t{\r\n\t\t\tvar api = this.api( true );\r\n\t\t\r\n\t\t\tif ( iColumn === undefined || iColumn === null ) {\r\n\t\t\t\tapi.row( mRow ).data( mData );\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tapi.cell( mRow, iColumn ).data( mData );\r\n\t\t\t}\r\n\t\t\r\n\t\t\tif ( bAction === undefined || bAction ) {\r\n\t\t\t\tapi.columns.adjust();\r\n\t\t\t}\r\n\t\t\r\n\t\t\tif ( bRedraw === undefined || bRedraw ) {\r\n\t\t\t\tapi.draw();\r\n\t\t\t}\r\n\t\t\treturn 0;\r\n\t\t};\r\n\t\t\r\n\t\t\r\n\t\t/**\r\n\t\t * Provide a common method for plug-ins to check the version of DataTables being used, in order\r\n\t\t * to ensure compatibility.\r\n\t\t * @param {string} sVersion Version string to check for, in the format \"X.Y.Z\". Note that the\r\n\t\t * formats \"X\" and \"X.Y\" are also acceptable.\r\n\t\t * @returns {boolean} true if this version of DataTables is greater or equal to the required\r\n\t\t * version, or false if this version of DataTales is not suitable\r\n\t\t * @method\r\n\t\t * @dtopt API\r\n\t\t * @deprecated Since v1.10\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready(function() {\r\n\t\t * var oTable = $('#example').dataTable();\r\n\t\t * alert( oTable.fnVersionCheck( '1.9.0' ) );\r\n\t\t * } );\r\n\t\t */\r\n\t\tthis.fnVersionCheck = _ext.fnVersionCheck;\r\n\t\t\r\n\r\n\t\tvar _that = this;\r\n\t\tvar emptyInit = options === undefined;\r\n\t\tvar len = this.length;\r\n\r\n\t\tif ( emptyInit ) {\r\n\t\t\toptions = {};\r\n\t\t}\r\n\r\n\t\tthis.oApi = this.internal = _ext.internal;\r\n\r\n\t\t// Extend with old style plug-in API methods\r\n\t\tfor ( var fn in DataTable.ext.internal ) {\r\n\t\t\tif ( fn ) {\r\n\t\t\t\tthis[fn] = _fnExternApiFunc(fn);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tthis.each(function() {\r\n\t\t\t// For each initialisation we want to give it a clean initialisation\r\n\t\t\t// object that can be bashed around\r\n\t\t\tvar o = {};\r\n\t\t\tvar oInit = len > 1 ? // optimisation for single table case\r\n\t\t\t\t_fnExtend( o, options, true ) :\r\n\t\t\t\toptions;\r\n\r\n\t\t\t/*global oInit,_that,emptyInit*/\r\n\t\t\tvar i=0, iLen, j, jLen, k, kLen;\r\n\t\t\tvar sId = this.getAttribute( 'id' );\r\n\t\t\tvar bInitHandedOff = false;\r\n\t\t\tvar defaults = DataTable.defaults;\r\n\t\t\tvar $this = $(this);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t/* Sanity check */\r\n\t\t\tif ( this.nodeName.toLowerCase() != 'table' )\r\n\t\t\t{\r\n\t\t\t\t_fnLog( null, 0, 'Non-table node initialisation ('+this.nodeName+')', 2 );\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t/* Backwards compatibility for the defaults */\r\n\t\t\t_fnCompatOpts( defaults );\r\n\t\t\t_fnCompatCols( defaults.column );\r\n\t\t\t\r\n\t\t\t/* Convert the camel-case defaults to Hungarian */\r\n\t\t\t_fnCamelToHungarian( defaults, defaults, true );\r\n\t\t\t_fnCamelToHungarian( defaults.column, defaults.column, true );\r\n\t\t\t\r\n\t\t\t/* Setting up the initialisation object */\r\n\t\t\t_fnCamelToHungarian( defaults, $.extend( oInit, $this.data() ), true );\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t/* Check to see if we are re-initialising a table */\r\n\t\t\tvar allSettings = DataTable.settings;\r\n\t\t\tfor ( i=0, iLen=allSettings.length ; i<iLen ; i++ )\r\n\t\t\t{\r\n\t\t\t\tvar s = allSettings[i];\r\n\t\t\t\r\n\t\t\t\t/* Base check on table node */\r\n\t\t\t\tif (\r\n\t\t\t\t\ts.nTable == this ||\r\n\t\t\t\t\t(s.nTHead && s.nTHead.parentNode == this) ||\r\n\t\t\t\t\t(s.nTFoot && s.nTFoot.parentNode == this)\r\n\t\t\t\t) {\r\n\t\t\t\t\tvar bRetrieve = oInit.bRetrieve !== undefined ? oInit.bRetrieve : defaults.bRetrieve;\r\n\t\t\t\t\tvar bDestroy = oInit.bDestroy !== undefined ? oInit.bDestroy : defaults.bDestroy;\r\n\t\t\t\r\n\t\t\t\t\tif ( emptyInit || bRetrieve )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\treturn s.oInstance;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if ( bDestroy )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\ts.oInstance.fnDestroy();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t_fnLog( s, 0, 'Cannot reinitialise DataTable', 3 );\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\t\t/* If the element we are initialising has the same ID as a table which was previously\r\n\t\t\t\t * initialised, but the table nodes don't match (from before) then we destroy the old\r\n\t\t\t\t * instance by simply deleting it. This is under the assumption that the table has been\r\n\t\t\t\t * destroyed by other methods. Anyone using non-id selectors will need to do this manually\r\n\t\t\t\t */\r\n\t\t\t\tif ( s.sTableId == this.id )\r\n\t\t\t\t{\r\n\t\t\t\t\tallSettings.splice( i, 1 );\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t/* Ensure the table has an ID - required for accessibility */\r\n\t\t\tif ( sId === null || sId === \"\" )\r\n\t\t\t{\r\n\t\t\t\tsId = \"DataTables_Table_\"+(DataTable.ext._unique++);\r\n\t\t\t\tthis.id = sId;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t/* Create the settings object for this table and set some of the default parameters */\r\n\t\t\tvar oSettings = $.extend( true, {}, DataTable.models.oSettings, {\r\n\t\t\t\t\"sDestroyWidth\": $this[0].style.width,\r\n\t\t\t\t\"sInstance\": sId,\r\n\t\t\t\t\"sTableId\": sId\r\n\t\t\t} );\r\n\t\t\toSettings.nTable = this;\r\n\t\t\toSettings.oApi = _that.internal;\r\n\t\t\toSettings.oInit = oInit;\r\n\t\t\t\r\n\t\t\tallSettings.push( oSettings );\r\n\t\t\t\r\n\t\t\t// Need to add the instance after the instance after the settings object has been added\r\n\t\t\t// to the settings array, so we can self reference the table instance if more than one\r\n\t\t\toSettings.oInstance = (_that.length===1) ? _that : $this.dataTable();\r\n\t\t\t\r\n\t\t\t// Backwards compatibility, before we apply all the defaults\r\n\t\t\t_fnCompatOpts( oInit );\r\n\t\t\t_fnLanguageCompat( oInit.oLanguage );\r\n\t\t\t\r\n\t\t\t// If the length menu is given, but the init display length is not, use the length menu\r\n\t\t\tif ( oInit.aLengthMenu && ! oInit.iDisplayLength )\r\n\t\t\t{\r\n\t\t\t\toInit.iDisplayLength = $.isArray( oInit.aLengthMenu[0] ) ?\r\n\t\t\t\t\toInit.aLengthMenu[0][0] : oInit.aLengthMenu[0];\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Apply the defaults and init options to make a single init object will all\r\n\t\t\t// options defined from defaults and instance options.\r\n\t\t\toInit = _fnExtend( $.extend( true, {}, defaults ), oInit );\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t// Map the initialisation options onto the settings object\r\n\t\t\t_fnMap( oSettings.oFeatures, oInit, [\r\n\t\t\t\t\"bPaginate\",\r\n\t\t\t\t\"bLengthChange\",\r\n\t\t\t\t\"bFilter\",\r\n\t\t\t\t\"bSort\",\r\n\t\t\t\t\"bSortMulti\",\r\n\t\t\t\t\"bInfo\",\r\n\t\t\t\t\"bProcessing\",\r\n\t\t\t\t\"bAutoWidth\",\r\n\t\t\t\t\"bSortClasses\",\r\n\t\t\t\t\"bServerSide\",\r\n\t\t\t\t\"bDeferRender\"\r\n\t\t\t] );\r\n\t\t\t_fnMap( oSettings, oInit, [\r\n\t\t\t\t\"asStripeClasses\",\r\n\t\t\t\t\"ajax\",\r\n\t\t\t\t\"fnServerData\",\r\n\t\t\t\t\"fnFormatNumber\",\r\n\t\t\t\t\"sServerMethod\",\r\n\t\t\t\t\"aaSorting\",\r\n\t\t\t\t\"aaSortingFixed\",\r\n\t\t\t\t\"aLengthMenu\",\r\n\t\t\t\t\"sPaginationType\",\r\n\t\t\t\t\"sAjaxSource\",\r\n\t\t\t\t\"sAjaxDataProp\",\r\n\t\t\t\t\"iStateDuration\",\r\n\t\t\t\t\"sDom\",\r\n\t\t\t\t\"bSortCellsTop\",\r\n\t\t\t\t\"iTabIndex\",\r\n\t\t\t\t\"fnStateLoadCallback\",\r\n\t\t\t\t\"fnStateSaveCallback\",\r\n\t\t\t\t\"renderer\",\r\n\t\t\t\t\"searchDelay\",\r\n\t\t\t\t\"rowId\",\r\n\t\t\t\t[ \"iCookieDuration\", \"iStateDuration\" ], // backwards compat\r\n\t\t\t\t[ \"oSearch\", \"oPreviousSearch\" ],\r\n\t\t\t\t[ \"aoSearchCols\", \"aoPreSearchCols\" ],\r\n\t\t\t\t[ \"iDisplayLength\", \"_iDisplayLength\" ]\r\n\t\t\t] );\r\n\t\t\t_fnMap( oSettings.oScroll, oInit, [\r\n\t\t\t\t[ \"sScrollX\", \"sX\" ],\r\n\t\t\t\t[ \"sScrollXInner\", \"sXInner\" ],\r\n\t\t\t\t[ \"sScrollY\", \"sY\" ],\r\n\t\t\t\t[ \"bScrollCollapse\", \"bCollapse\" ]\r\n\t\t\t] );\r\n\t\t\t_fnMap( oSettings.oLanguage, oInit, \"fnInfoCallback\" );\r\n\t\t\t\r\n\t\t\t/* Callback functions which are array driven */\r\n\t\t\t_fnCallbackReg( oSettings, 'aoDrawCallback', oInit.fnDrawCallback, 'user' );\r\n\t\t\t_fnCallbackReg( oSettings, 'aoServerParams', oInit.fnServerParams, 'user' );\r\n\t\t\t_fnCallbackReg( oSettings, 'aoStateSaveParams', oInit.fnStateSaveParams, 'user' );\r\n\t\t\t_fnCallbackReg( oSettings, 'aoStateLoadParams', oInit.fnStateLoadParams, 'user' );\r\n\t\t\t_fnCallbackReg( oSettings, 'aoStateLoaded', oInit.fnStateLoaded, 'user' );\r\n\t\t\t_fnCallbackReg( oSettings, 'aoRowCallback', oInit.fnRowCallback, 'user' );\r\n\t\t\t_fnCallbackReg( oSettings, 'aoRowCreatedCallback', oInit.fnCreatedRow, 'user' );\r\n\t\t\t_fnCallbackReg( oSettings, 'aoHeaderCallback', oInit.fnHeaderCallback, 'user' );\r\n\t\t\t_fnCallbackReg( oSettings, 'aoFooterCallback', oInit.fnFooterCallback, 'user' );\r\n\t\t\t_fnCallbackReg( oSettings, 'aoInitComplete', oInit.fnInitComplete, 'user' );\r\n\t\t\t_fnCallbackReg( oSettings, 'aoPreDrawCallback', oInit.fnPreDrawCallback, 'user' );\r\n\t\t\t\r\n\t\t\toSettings.rowIdFn = _fnGetObjectDataFn( oInit.rowId );\r\n\t\t\t\r\n\t\t\t/* Browser support detection */\r\n\t\t\t_fnBrowserDetect( oSettings );\r\n\t\t\t\r\n\t\t\tvar oClasses = oSettings.oClasses;\r\n\t\t\t\r\n\t\t\t$.extend( oClasses, DataTable.ext.classes, oInit.oClasses );\r\n\t\t\t$this.addClass( oClasses.sTable );\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif ( oSettings.iInitDisplayStart === undefined )\r\n\t\t\t{\r\n\t\t\t\t/* Display start point, taking into account the save saving */\r\n\t\t\t\toSettings.iInitDisplayStart = oInit.iDisplayStart;\r\n\t\t\t\toSettings._iDisplayStart = oInit.iDisplayStart;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif ( oInit.iDeferLoading !== null )\r\n\t\t\t{\r\n\t\t\t\toSettings.bDeferLoading = true;\r\n\t\t\t\tvar tmp = $.isArray( oInit.iDeferLoading );\r\n\t\t\t\toSettings._iRecordsDisplay = tmp ? oInit.iDeferLoading[0] : oInit.iDeferLoading;\r\n\t\t\t\toSettings._iRecordsTotal = tmp ? oInit.iDeferLoading[1] : oInit.iDeferLoading;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t/* Language definitions */\r\n\t\t\tvar oLanguage = oSettings.oLanguage;\r\n\t\t\t$.extend( true, oLanguage, oInit.oLanguage );\r\n\t\t\t\r\n\t\t\tif ( oLanguage.sUrl )\r\n\t\t\t{\r\n\t\t\t\t/* Get the language definitions from a file - because this Ajax call makes the language\r\n\t\t\t\t * get async to the remainder of this function we use bInitHandedOff to indicate that\r\n\t\t\t\t * _fnInitialise will be fired by the returned Ajax handler, rather than the constructor\r\n\t\t\t\t */\r\n\t\t\t\t$.ajax( {\r\n\t\t\t\t\tdataType: 'json',\r\n\t\t\t\t\turl: oLanguage.sUrl,\r\n\t\t\t\t\tsuccess: function ( json ) {\r\n\t\t\t\t\t\t_fnLanguageCompat( json );\r\n\t\t\t\t\t\t_fnCamelToHungarian( defaults.oLanguage, json );\r\n\t\t\t\t\t\t$.extend( true, oLanguage, json );\r\n\t\t\t\t\t\t_fnInitialise( oSettings );\r\n\t\t\t\t\t},\r\n\t\t\t\t\terror: function () {\r\n\t\t\t\t\t\t// Error occurred loading language file, continue on as best we can\r\n\t\t\t\t\t\t_fnInitialise( oSettings );\r\n\t\t\t\t\t}\r\n\t\t\t\t} );\r\n\t\t\t\tbInitHandedOff = true;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t/*\r\n\t\t\t * Stripes\r\n\t\t\t */\r\n\t\t\tif ( oInit.asStripeClasses === null )\r\n\t\t\t{\r\n\t\t\t\toSettings.asStripeClasses =[\r\n\t\t\t\t\toClasses.sStripeOdd,\r\n\t\t\t\t\toClasses.sStripeEven\r\n\t\t\t\t];\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t/* Remove row stripe classes if they are already on the table row */\r\n\t\t\tvar stripeClasses = oSettings.asStripeClasses;\r\n\t\t\tvar rowOne = $this.children('tbody').find('tr').eq(0);\r\n\t\t\tif ( $.inArray( true, $.map( stripeClasses, function(el, i) {\r\n\t\t\t\treturn rowOne.hasClass(el);\r\n\t\t\t} ) ) !== -1 ) {\r\n\t\t\t\t$('tbody tr', this).removeClass( stripeClasses.join(' ') );\r\n\t\t\t\toSettings.asDestroyStripes = stripeClasses.slice();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t/*\r\n\t\t\t * Columns\r\n\t\t\t * See if we should load columns automatically or use defined ones\r\n\t\t\t */\r\n\t\t\tvar anThs = [];\r\n\t\t\tvar aoColumnsInit;\r\n\t\t\tvar nThead = this.getElementsByTagName('thead');\r\n\t\t\tif ( nThead.length !== 0 )\r\n\t\t\t{\r\n\t\t\t\t_fnDetectHeader( oSettings.aoHeader, nThead[0] );\r\n\t\t\t\tanThs = _fnGetUniqueThs( oSettings );\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t/* If not given a column array, generate one with nulls */\r\n\t\t\tif ( oInit.aoColumns === null )\r\n\t\t\t{\r\n\t\t\t\taoColumnsInit = [];\r\n\t\t\t\tfor ( i=0, iLen=anThs.length ; i<iLen ; i++ )\r\n\t\t\t\t{\r\n\t\t\t\t\taoColumnsInit.push( null );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\taoColumnsInit = oInit.aoColumns;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t/* Add the columns */\r\n\t\t\tfor ( i=0, iLen=aoColumnsInit.length ; i<iLen ; i++ )\r\n\t\t\t{\r\n\t\t\t\t_fnAddColumn( oSettings, anThs ? anThs[i] : null );\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t/* Apply the column definitions */\r\n\t\t\t_fnApplyColumnDefs( oSettings, oInit.aoColumnDefs, aoColumnsInit, function (iCol, oDef) {\r\n\t\t\t\t_fnColumnOptions( oSettings, iCol, oDef );\r\n\t\t\t} );\r\n\t\t\t\r\n\t\t\t/* HTML5 attribute detection - build an mData object automatically if the\r\n\t\t\t * attributes are found\r\n\t\t\t */\r\n\t\t\tif ( rowOne.length ) {\r\n\t\t\t\tvar a = function ( cell, name ) {\r\n\t\t\t\t\treturn cell.getAttribute( 'data-'+name ) !== null ? name : null;\r\n\t\t\t\t};\r\n\t\t\t\r\n\t\t\t\t$( rowOne[0] ).children('th, td').each( function (i, cell) {\r\n\t\t\t\t\tvar col = oSettings.aoColumns[i];\r\n\t\t\t\r\n\t\t\t\t\tif ( col.mData === i ) {\r\n\t\t\t\t\t\tvar sort = a( cell, 'sort' ) || a( cell, 'order' );\r\n\t\t\t\t\t\tvar filter = a( cell, 'filter' ) || a( cell, 'search' );\r\n\t\t\t\r\n\t\t\t\t\t\tif ( sort !== null || filter !== null ) {\r\n\t\t\t\t\t\t\tcol.mData = {\r\n\t\t\t\t\t\t\t\t_: i+'.display',\r\n\t\t\t\t\t\t\t\tsort: sort !== null ? i+'.@data-'+sort : undefined,\r\n\t\t\t\t\t\t\t\ttype: sort !== null ? i+'.@data-'+sort : undefined,\r\n\t\t\t\t\t\t\t\tfilter: filter !== null ? i+'.@data-'+filter : undefined\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\r\n\t\t\t\t\t\t\t_fnColumnOptions( oSettings, i );\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t} );\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tvar features = oSettings.oFeatures;\r\n\t\t\tvar loadedInit = function () {\r\n\t\t\t\t/*\r\n\t\t\t\t * Sorting\r\n\t\t\t\t * @todo For modularisation (1.11) this needs to do into a sort start up handler\r\n\t\t\t\t */\r\n\t\t\t\r\n\t\t\t\t// If aaSorting is not defined, then we use the first indicator in asSorting\r\n\t\t\t\t// in case that has been altered, so the default sort reflects that option\r\n\t\t\t\tif ( oInit.aaSorting === undefined ) {\r\n\t\t\t\t\tvar sorting = oSettings.aaSorting;\r\n\t\t\t\t\tfor ( i=0, iLen=sorting.length ; i<iLen ; i++ ) {\r\n\t\t\t\t\t\tsorting[i][1] = oSettings.aoColumns[ i ].asSorting[0];\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\t\t/* Do a first pass on the sorting classes (allows any size changes to be taken into\r\n\t\t\t\t * account, and also will apply sorting disabled classes if disabled\r\n\t\t\t\t */\r\n\t\t\t\t_fnSortingClasses( oSettings );\r\n\t\t\t\r\n\t\t\t\tif ( features.bSort ) {\r\n\t\t\t\t\t_fnCallbackReg( oSettings, 'aoDrawCallback', function () {\r\n\t\t\t\t\t\tif ( oSettings.bSorted ) {\r\n\t\t\t\t\t\t\tvar aSort = _fnSortFlatten( oSettings );\r\n\t\t\t\t\t\t\tvar sortedColumns = {};\r\n\t\t\t\r\n\t\t\t\t\t\t\t$.each( aSort, function (i, val) {\r\n\t\t\t\t\t\t\t\tsortedColumns[ val.src ] = val.dir;\r\n\t\t\t\t\t\t\t} );\r\n\t\t\t\r\n\t\t\t\t\t\t\t_fnCallbackFire( oSettings, null, 'order', [oSettings, aSort, sortedColumns] );\r\n\t\t\t\t\t\t\t_fnSortAria( oSettings );\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} );\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\t\t_fnCallbackReg( oSettings, 'aoDrawCallback', function () {\r\n\t\t\t\t\tif ( oSettings.bSorted || _fnDataSource( oSettings ) === 'ssp' || features.bDeferRender ) {\r\n\t\t\t\t\t\t_fnSortingClasses( oSettings );\r\n\t\t\t\t\t}\r\n\t\t\t\t}, 'sc' );\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t/*\r\n\t\t\t\t * Final init\r\n\t\t\t\t * Cache the header, body and footer as required, creating them if needed\r\n\t\t\t\t */\r\n\t\t\t\r\n\t\t\t\t// Work around for Webkit bug 83867 - store the caption-side before removing from doc\r\n\t\t\t\tvar captions = $this.children('caption').each( function () {\r\n\t\t\t\t\tthis._captionSide = $(this).css('caption-side');\r\n\t\t\t\t} );\r\n\t\t\t\r\n\t\t\t\tvar thead = $this.children('thead');\r\n\t\t\t\tif ( thead.length === 0 ) {\r\n\t\t\t\t\tthead = $('<thead/>').appendTo($this);\r\n\t\t\t\t}\r\n\t\t\t\toSettings.nTHead = thead[0];\r\n\t\t\t\r\n\t\t\t\tvar tbody = $this.children('tbody');\r\n\t\t\t\tif ( tbody.length === 0 ) {\r\n\t\t\t\t\ttbody = $('<tbody/>').appendTo($this);\r\n\t\t\t\t}\r\n\t\t\t\toSettings.nTBody = tbody[0];\r\n\t\t\t\r\n\t\t\t\tvar tfoot = $this.children('tfoot');\r\n\t\t\t\tif ( tfoot.length === 0 && captions.length > 0 && (oSettings.oScroll.sX !== \"\" || oSettings.oScroll.sY !== \"\") ) {\r\n\t\t\t\t\t// If we are a scrolling table, and no footer has been given, then we need to create\r\n\t\t\t\t\t// a tfoot element for the caption element to be appended to\r\n\t\t\t\t\ttfoot = $('<tfoot/>').appendTo($this);\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\t\tif ( tfoot.length === 0 || tfoot.children().length === 0 ) {\r\n\t\t\t\t\t$this.addClass( oClasses.sNoFooter );\r\n\t\t\t\t}\r\n\t\t\t\telse if ( tfoot.length > 0 ) {\r\n\t\t\t\t\toSettings.nTFoot = tfoot[0];\r\n\t\t\t\t\t_fnDetectHeader( oSettings.aoFooter, oSettings.nTFoot );\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\t\t/* Check if there is data passing into the constructor */\r\n\t\t\t\tif ( oInit.aaData ) {\r\n\t\t\t\t\tfor ( i=0 ; i<oInit.aaData.length ; i++ ) {\r\n\t\t\t\t\t\t_fnAddData( oSettings, oInit.aaData[ i ] );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse if ( oSettings.bDeferLoading || _fnDataSource( oSettings ) == 'dom' ) {\r\n\t\t\t\t\t/* Grab the data from the page - only do this when deferred loading or no Ajax\r\n\t\t\t\t\t * source since there is no point in reading the DOM data if we are then going\r\n\t\t\t\t\t * to replace it with Ajax data\r\n\t\t\t\t\t */\r\n\t\t\t\t\t_fnAddTr( oSettings, $(oSettings.nTBody).children('tr') );\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\t\t/* Copy the data index array */\r\n\t\t\t\toSettings.aiDisplay = oSettings.aiDisplayMaster.slice();\r\n\t\t\t\r\n\t\t\t\t/* Initialisation complete - table can be drawn */\r\n\t\t\t\toSettings.bInitialised = true;\r\n\t\t\t\r\n\t\t\t\t/* Check if we need to initialise the table (it might not have been handed off to the\r\n\t\t\t\t * language processor)\r\n\t\t\t\t */\r\n\t\t\t\tif ( bInitHandedOff === false ) {\r\n\t\t\t\t\t_fnInitialise( oSettings );\r\n\t\t\t\t}\r\n\t\t\t};\r\n\t\t\t\r\n\t\t\t/* Must be done after everything which can be overridden by the state saving! */\r\n\t\t\tif ( oInit.bStateSave )\r\n\t\t\t{\r\n\t\t\t\tfeatures.bStateSave = true;\r\n\t\t\t\t_fnCallbackReg( oSettings, 'aoDrawCallback', _fnSaveState, 'state_save' );\r\n\t\t\t\t_fnLoadState( oSettings, oInit, loadedInit );\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tloadedInit();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} );\r\n\t\t_that = null;\r\n\t\treturn this;\r\n\t};\r\n\r\n\t\r\n\t/*\r\n\t * It is useful to have variables which are scoped locally so only the\r\n\t * DataTables functions can access them and they don't leak into global space.\r\n\t * At the same time these functions are often useful over multiple files in the\r\n\t * core and API, so we list, or at least document, all variables which are used\r\n\t * by DataTables as private variables here. This also ensures that there is no\r\n\t * clashing of variable names and that they can easily referenced for reuse.\r\n\t */\r\n\t\r\n\t\r\n\t// Defined else where\r\n\t// _selector_run\r\n\t// _selector_opts\r\n\t// _selector_first\r\n\t// _selector_row_indexes\r\n\t\r\n\tvar _ext; // DataTable.ext\r\n\tvar _Api; // DataTable.Api\r\n\tvar _api_register; // DataTable.Api.register\r\n\tvar _api_registerPlural; // DataTable.Api.registerPlural\r\n\t\r\n\tvar _re_dic = {};\r\n\tvar _re_new_lines = /[\\r\\n\\u2028]/g;\r\n\tvar _re_html = /<.*?>/g;\r\n\t\r\n\t// This is not strict ISO8601 - Date.parse() is quite lax, although\r\n\t// implementations differ between browsers.\r\n\tvar _re_date = /^\\d{2,4}[\\.\\/\\-]\\d{1,2}[\\.\\/\\-]\\d{1,2}([T ]{1}\\d{1,2}[:\\.]\\d{2}([\\.:]\\d{2})?)?$/;\r\n\t\r\n\t// Escape regular expression special characters\r\n\tvar _re_escape_regex = new RegExp( '(\\\\' + [ '/', '.', '*', '+', '?', '|', '(', ')', '[', ']', '{', '}', '\\\\', '$', '^', '-' ].join('|\\\\') + ')', 'g' );\r\n\t\r\n\t// http://en.wikipedia.org/wiki/Foreign_exchange_market\r\n\t// - \\u20BD - Russian ruble.\r\n\t// - \\u20a9 - South Korean Won\r\n\t// - \\u20BA - Turkish Lira\r\n\t// - \\u20B9 - Indian Rupee\r\n\t// - R - Brazil (R$) and South Africa\r\n\t// - fr - Swiss Franc\r\n\t// - kr - Swedish krona, Norwegian krone and Danish krone\r\n\t// - \\u2009 is thin space and \\u202F is narrow no-break space, both used in many\r\n\t// - Ƀ - Bitcoin\r\n\t// - Ξ - Ethereum\r\n\t// standards as thousands separators.\r\n\tvar _re_formatted_numeric = /[',$£€¥%\\u2009\\u202F\\u20BD\\u20a9\\u20BArfkɃΞ]/gi;\r\n\t\r\n\t\r\n\tvar _empty = function ( d ) {\r\n\t\treturn !d || d === true || d === '-' ? true : false;\r\n\t};\r\n\t\r\n\t\r\n\tvar _intVal = function ( s ) {\r\n\t\tvar integer = parseInt( s, 10 );\r\n\t\treturn !isNaN(integer) && isFinite(s) ? integer : null;\r\n\t};\r\n\t\r\n\t// Convert from a formatted number with characters other than `.` as the\r\n\t// decimal place, to a Javascript number\r\n\tvar _numToDecimal = function ( num, decimalPoint ) {\r\n\t\t// Cache created regular expressions for speed as this function is called often\r\n\t\tif ( ! _re_dic[ decimalPoint ] ) {\r\n\t\t\t_re_dic[ decimalPoint ] = new RegExp( _fnEscapeRegex( decimalPoint ), 'g' );\r\n\t\t}\r\n\t\treturn typeof num === 'string' && decimalPoint !== '.' ?\r\n\t\t\tnum.replace( /\\./g, '' ).replace( _re_dic[ decimalPoint ], '.' ) :\r\n\t\t\tnum;\r\n\t};\r\n\t\r\n\t\r\n\tvar _isNumber = function ( d, decimalPoint, formatted ) {\r\n\t\tvar strType = typeof d === 'string';\r\n\t\r\n\t\t// If empty return immediately so there must be a number if it is a\r\n\t\t// formatted string (this stops the string \"k\", or \"kr\", etc being detected\r\n\t\t// as a formatted number for currency\r\n\t\tif ( _empty( d ) ) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\r\n\t\tif ( decimalPoint && strType ) {\r\n\t\t\td = _numToDecimal( d, decimalPoint );\r\n\t\t}\r\n\t\r\n\t\tif ( formatted && strType ) {\r\n\t\t\td = d.replace( _re_formatted_numeric, '' );\r\n\t\t}\r\n\t\r\n\t\treturn !isNaN( parseFloat(d) ) && isFinite( d );\r\n\t};\r\n\t\r\n\t\r\n\t// A string without HTML in it can be considered to be HTML still\r\n\tvar _isHtml = function ( d ) {\r\n\t\treturn _empty( d ) || typeof d === 'string';\r\n\t};\r\n\t\r\n\t\r\n\tvar _htmlNumeric = function ( d, decimalPoint, formatted ) {\r\n\t\tif ( _empty( d ) ) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\r\n\t\tvar html = _isHtml( d );\r\n\t\treturn ! html ?\r\n\t\t\tnull :\r\n\t\t\t_isNumber( _stripHtml( d ), decimalPoint, formatted ) ?\r\n\t\t\t\ttrue :\r\n\t\t\t\tnull;\r\n\t};\r\n\t\r\n\t\r\n\tvar _pluck = function ( a, prop, prop2 ) {\r\n\t\tvar out = [];\r\n\t\tvar i=0, ien=a.length;\r\n\t\r\n\t\t// Could have the test in the loop for slightly smaller code, but speed\r\n\t\t// is essential here\r\n\t\tif ( prop2 !== undefined ) {\r\n\t\t\tfor ( ; i<ien ; i++ ) {\r\n\t\t\t\tif ( a[i] && a[i][ prop ] ) {\r\n\t\t\t\t\tout.push( a[i][ prop ][ prop2 ] );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tfor ( ; i<ien ; i++ ) {\r\n\t\t\t\tif ( a[i] ) {\r\n\t\t\t\t\tout.push( a[i][ prop ] );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\treturn out;\r\n\t};\r\n\t\r\n\t\r\n\t// Basically the same as _pluck, but rather than looping over `a` we use `order`\r\n\t// as the indexes to pick from `a`\r\n\tvar _pluck_order = function ( a, order, prop, prop2 )\r\n\t{\r\n\t\tvar out = [];\r\n\t\tvar i=0, ien=order.length;\r\n\t\r\n\t\t// Could have the test in the loop for slightly smaller code, but speed\r\n\t\t// is essential here\r\n\t\tif ( prop2 !== undefined ) {\r\n\t\t\tfor ( ; i<ien ; i++ ) {\r\n\t\t\t\tif ( a[ order[i] ][ prop ] ) {\r\n\t\t\t\t\tout.push( a[ order[i] ][ prop ][ prop2 ] );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tfor ( ; i<ien ; i++ ) {\r\n\t\t\t\tout.push( a[ order[i] ][ prop ] );\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\treturn out;\r\n\t};\r\n\t\r\n\t\r\n\tvar _range = function ( len, start )\r\n\t{\r\n\t\tvar out = [];\r\n\t\tvar end;\r\n\t\r\n\t\tif ( start === undefined ) {\r\n\t\t\tstart = 0;\r\n\t\t\tend = len;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tend = start;\r\n\t\t\tstart = len;\r\n\t\t}\r\n\t\r\n\t\tfor ( var i=start ; i<end ; i++ ) {\r\n\t\t\tout.push( i );\r\n\t\t}\r\n\t\r\n\t\treturn out;\r\n\t};\r\n\t\r\n\t\r\n\tvar _removeEmpty = function ( a )\r\n\t{\r\n\t\tvar out = [];\r\n\t\r\n\t\tfor ( var i=0, ien=a.length ; i<ien ; i++ ) {\r\n\t\t\tif ( a[i] ) { // careful - will remove all falsy values!\r\n\t\t\t\tout.push( a[i] );\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\treturn out;\r\n\t};\r\n\t\r\n\t\r\n\tvar _stripHtml = function ( d ) {\r\n\t\treturn d.replace( _re_html, '' );\r\n\t};\r\n\t\r\n\t\r\n\t/**\r\n\t * Determine if all values in the array are unique. This means we can short\r\n\t * cut the _unique method at the cost of a single loop. A sorted array is used\r\n\t * to easily check the values.\r\n\t *\r\n\t * @param {array} src Source array\r\n\t * @return {boolean} true if all unique, false otherwise\r\n\t * @ignore\r\n\t */\r\n\tvar _areAllUnique = function ( src ) {\r\n\t\tif ( src.length < 2 ) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\r\n\t\tvar sorted = src.slice().sort();\r\n\t\tvar last = sorted[0];\r\n\t\r\n\t\tfor ( var i=1, ien=sorted.length ; i<ien ; i++ ) {\r\n\t\t\tif ( sorted[i] === last ) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\r\n\t\t\tlast = sorted[i];\r\n\t\t}\r\n\t\r\n\t\treturn true;\r\n\t};\r\n\t\r\n\t\r\n\t/**\r\n\t * Find the unique elements in a source array.\r\n\t *\r\n\t * @param {array} src Source array\r\n\t * @return {array} Array of unique items\r\n\t * @ignore\r\n\t */\r\n\tvar _unique = function ( src )\r\n\t{\r\n\t\tif ( _areAllUnique( src ) ) {\r\n\t\t\treturn src.slice();\r\n\t\t}\r\n\t\r\n\t\t// A faster unique method is to use object keys to identify used values,\r\n\t\t// but this doesn't work with arrays or objects, which we must also\r\n\t\t// consider. See jsperf.com/compare-array-unique-versions/4 for more\r\n\t\t// information.\r\n\t\tvar\r\n\t\t\tout = [],\r\n\t\t\tval,\r\n\t\t\ti, ien=src.length,\r\n\t\t\tj, k=0;\r\n\t\r\n\t\tagain: for ( i=0 ; i<ien ; i++ ) {\r\n\t\t\tval = src[i];\r\n\t\r\n\t\t\tfor ( j=0 ; j<k ; j++ ) {\r\n\t\t\t\tif ( out[j] === val ) {\r\n\t\t\t\t\tcontinue again;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\r\n\t\t\tout.push( val );\r\n\t\t\tk++;\r\n\t\t}\r\n\t\r\n\t\treturn out;\r\n\t};\r\n\t\r\n\t\r\n\t/**\r\n\t * DataTables utility methods\r\n\t * \r\n\t * This namespace provides helper methods that DataTables uses internally to\r\n\t * create a DataTable, but which are not exclusively used only for DataTables.\r\n\t * These methods can be used by extension authors to save the duplication of\r\n\t * code.\r\n\t *\r\n\t * @namespace\r\n\t */\r\n\tDataTable.util = {\r\n\t\t/**\r\n\t\t * Throttle the calls to a function. Arguments and context are maintained\r\n\t\t * for the throttled function.\r\n\t\t *\r\n\t\t * @param {function} fn Function to be called\r\n\t\t * @param {integer} freq Call frequency in mS\r\n\t\t * @return {function} Wrapped function\r\n\t\t */\r\n\t\tthrottle: function ( fn, freq ) {\r\n\t\t\tvar\r\n\t\t\t\tfrequency = freq !== undefined ? freq : 200,\r\n\t\t\t\tlast,\r\n\t\t\t\ttimer;\r\n\t\r\n\t\t\treturn function () {\r\n\t\t\t\tvar\r\n\t\t\t\t\tthat = this,\r\n\t\t\t\t\tnow = +new Date(),\r\n\t\t\t\t\targs = arguments;\r\n\t\r\n\t\t\t\tif ( last && now < last + frequency ) {\r\n\t\t\t\t\tclearTimeout( timer );\r\n\t\r\n\t\t\t\t\ttimer = setTimeout( function () {\r\n\t\t\t\t\t\tlast = undefined;\r\n\t\t\t\t\t\tfn.apply( that, args );\r\n\t\t\t\t\t}, frequency );\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tlast = now;\r\n\t\t\t\t\tfn.apply( that, args );\r\n\t\t\t\t}\r\n\t\t\t};\r\n\t\t},\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Escape a string such that it can be used in a regular expression\r\n\t\t *\r\n\t\t * @param {string} val string to escape\r\n\t\t * @returns {string} escaped string\r\n\t\t */\r\n\t\tescapeRegex: function ( val ) {\r\n\t\t\treturn val.replace( _re_escape_regex, '\\\\$1' );\r\n\t\t}\r\n\t};\r\n\t\r\n\t\r\n\t\r\n\t/**\r\n\t * Create a mapping object that allows camel case parameters to be looked up\r\n\t * for their Hungarian counterparts. The mapping is stored in a private\r\n\t * parameter called `_hungarianMap` which can be accessed on the source object.\r\n\t * @param {object} o\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnHungarianMap ( o )\r\n\t{\r\n\t\tvar\r\n\t\t\thungarian = 'a aa ai ao as b fn i m o s ',\r\n\t\t\tmatch,\r\n\t\t\tnewKey,\r\n\t\t\tmap = {};\r\n\t\r\n\t\t$.each( o, function (key, val) {\r\n\t\t\tmatch = key.match(/^([^A-Z]+?)([A-Z])/);\r\n\t\r\n\t\t\tif ( match && hungarian.indexOf(match[1]+' ') !== -1 )\r\n\t\t\t{\r\n\t\t\t\tnewKey = key.replace( match[0], match[2].toLowerCase() );\r\n\t\t\t\tmap[ newKey ] = key;\r\n\t\r\n\t\t\t\tif ( match[1] === 'o' )\r\n\t\t\t\t{\r\n\t\t\t\t\t_fnHungarianMap( o[key] );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} );\r\n\t\r\n\t\to._hungarianMap = map;\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Convert from camel case parameters to Hungarian, based on a Hungarian map\r\n\t * created by _fnHungarianMap.\r\n\t * @param {object} src The model object which holds all parameters that can be\r\n\t * mapped.\r\n\t * @param {object} user The object to convert from camel case to Hungarian.\r\n\t * @param {boolean} force When set to `true`, properties which already have a\r\n\t * Hungarian value in the `user` object will be overwritten. Otherwise they\r\n\t * won't be.\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnCamelToHungarian ( src, user, force )\r\n\t{\r\n\t\tif ( ! src._hungarianMap ) {\r\n\t\t\t_fnHungarianMap( src );\r\n\t\t}\r\n\t\r\n\t\tvar hungarianKey;\r\n\t\r\n\t\t$.each( user, function (key, val) {\r\n\t\t\thungarianKey = src._hungarianMap[ key ];\r\n\t\r\n\t\t\tif ( hungarianKey !== undefined && (force || user[hungarianKey] === undefined) )\r\n\t\t\t{\r\n\t\t\t\t// For objects, we need to buzz down into the object to copy parameters\r\n\t\t\t\tif ( hungarianKey.charAt(0) === 'o' )\r\n\t\t\t\t{\r\n\t\t\t\t\t// Copy the camelCase options over to the hungarian\r\n\t\t\t\t\tif ( ! user[ hungarianKey ] ) {\r\n\t\t\t\t\t\tuser[ hungarianKey ] = {};\r\n\t\t\t\t\t}\r\n\t\t\t\t\t$.extend( true, user[hungarianKey], user[key] );\r\n\t\r\n\t\t\t\t\t_fnCamelToHungarian( src[hungarianKey], user[hungarianKey], force );\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tuser[hungarianKey] = user[ key ];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} );\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Language compatibility - when certain options are given, and others aren't, we\r\n\t * need to duplicate the values over, in order to provide backwards compatibility\r\n\t * with older language files.\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnLanguageCompat( lang )\r\n\t{\r\n\t\t// Note the use of the Hungarian notation for the parameters in this method as\r\n\t\t// this is called after the mapping of camelCase to Hungarian\r\n\t\tvar defaults = DataTable.defaults.oLanguage;\r\n\t\r\n\t\t// Default mapping\r\n\t\tvar defaultDecimal = defaults.sDecimal;\r\n\t\tif ( defaultDecimal ) {\r\n\t\t\t_addNumericSort( defaultDecimal );\r\n\t\t}\r\n\t\r\n\t\tif ( lang ) {\r\n\t\t\tvar zeroRecords = lang.sZeroRecords;\r\n\t\r\n\t\t\t// Backwards compatibility - if there is no sEmptyTable given, then use the same as\r\n\t\t\t// sZeroRecords - assuming that is given.\r\n\t\t\tif ( ! lang.sEmptyTable && zeroRecords &&\r\n\t\t\t\tdefaults.sEmptyTable === \"No data available in table\" )\r\n\t\t\t{\r\n\t\t\t\t_fnMap( lang, lang, 'sZeroRecords', 'sEmptyTable' );\r\n\t\t\t}\r\n\t\r\n\t\t\t// Likewise with loading records\r\n\t\t\tif ( ! lang.sLoadingRecords && zeroRecords &&\r\n\t\t\t\tdefaults.sLoadingRecords === \"Loading...\" )\r\n\t\t\t{\r\n\t\t\t\t_fnMap( lang, lang, 'sZeroRecords', 'sLoadingRecords' );\r\n\t\t\t}\r\n\t\r\n\t\t\t// Old parameter name of the thousands separator mapped onto the new\r\n\t\t\tif ( lang.sInfoThousands ) {\r\n\t\t\t\tlang.sThousands = lang.sInfoThousands;\r\n\t\t\t}\r\n\t\r\n\t\t\tvar decimal = lang.sDecimal;\r\n\t\t\tif ( decimal && defaultDecimal !== decimal ) {\r\n\t\t\t\t_addNumericSort( decimal );\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Map one parameter onto another\r\n\t * @param {object} o Object to map\r\n\t * @param {*} knew The new parameter name\r\n\t * @param {*} old The old parameter name\r\n\t */\r\n\tvar _fnCompatMap = function ( o, knew, old ) {\r\n\t\tif ( o[ knew ] !== undefined ) {\r\n\t\t\to[ old ] = o[ knew ];\r\n\t\t}\r\n\t};\r\n\t\r\n\t\r\n\t/**\r\n\t * Provide backwards compatibility for the main DT options. Note that the new\r\n\t * options are mapped onto the old parameters, so this is an external interface\r\n\t * change only.\r\n\t * @param {object} init Object to map\r\n\t */\r\n\tfunction _fnCompatOpts ( init )\r\n\t{\r\n\t\t_fnCompatMap( init, 'ordering', 'bSort' );\r\n\t\t_fnCompatMap( init, 'orderMulti', 'bSortMulti' );\r\n\t\t_fnCompatMap( init, 'orderClasses', 'bSortClasses' );\r\n\t\t_fnCompatMap( init, 'orderCellsTop', 'bSortCellsTop' );\r\n\t\t_fnCompatMap( init, 'order', 'aaSorting' );\r\n\t\t_fnCompatMap( init, 'orderFixed', 'aaSortingFixed' );\r\n\t\t_fnCompatMap( init, 'paging', 'bPaginate' );\r\n\t\t_fnCompatMap( init, 'pagingType', 'sPaginationType' );\r\n\t\t_fnCompatMap( init, 'pageLength', 'iDisplayLength' );\r\n\t\t_fnCompatMap( init, 'searching', 'bFilter' );\r\n\t\r\n\t\t// Boolean initialisation of x-scrolling\r\n\t\tif ( typeof init.sScrollX === 'boolean' ) {\r\n\t\t\tinit.sScrollX = init.sScrollX ? '100%' : '';\r\n\t\t}\r\n\t\tif ( typeof init.scrollX === 'boolean' ) {\r\n\t\t\tinit.scrollX = init.scrollX ? '100%' : '';\r\n\t\t}\r\n\t\r\n\t\t// Column search objects are in an array, so it needs to be converted\r\n\t\t// element by element\r\n\t\tvar searchCols = init.aoSearchCols;\r\n\t\r\n\t\tif ( searchCols ) {\r\n\t\t\tfor ( var i=0, ien=searchCols.length ; i<ien ; i++ ) {\r\n\t\t\t\tif ( searchCols[i] ) {\r\n\t\t\t\t\t_fnCamelToHungarian( DataTable.models.oSearch, searchCols[i] );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Provide backwards compatibility for column options. Note that the new options\r\n\t * are mapped onto the old parameters, so this is an external interface change\r\n\t * only.\r\n\t * @param {object} init Object to map\r\n\t */\r\n\tfunction _fnCompatCols ( init )\r\n\t{\r\n\t\t_fnCompatMap( init, 'orderable', 'bSortable' );\r\n\t\t_fnCompatMap( init, 'orderData', 'aDataSort' );\r\n\t\t_fnCompatMap( init, 'orderSequence', 'asSorting' );\r\n\t\t_fnCompatMap( init, 'orderDataType', 'sortDataType' );\r\n\t\r\n\t\t// orderData can be given as an integer\r\n\t\tvar dataSort = init.aDataSort;\r\n\t\tif ( typeof dataSort === 'number' && ! $.isArray( dataSort ) ) {\r\n\t\t\tinit.aDataSort = [ dataSort ];\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Browser feature detection for capabilities, quirks\r\n\t * @param {object} settings dataTables settings object\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnBrowserDetect( settings )\r\n\t{\r\n\t\t// We don't need to do this every time DataTables is constructed, the values\r\n\t\t// calculated are specific to the browser and OS configuration which we\r\n\t\t// don't expect to change between initialisations\r\n\t\tif ( ! DataTable.__browser ) {\r\n\t\t\tvar browser = {};\r\n\t\t\tDataTable.__browser = browser;\r\n\t\r\n\t\t\t// Scrolling feature / quirks detection\r\n\t\t\tvar n = $('<div/>')\r\n\t\t\t\t.css( {\r\n\t\t\t\t\tposition: 'fixed',\r\n\t\t\t\t\ttop: 0,\r\n\t\t\t\t\tleft: $(window).scrollLeft()*-1, // allow for scrolling\r\n\t\t\t\t\theight: 1,\r\n\t\t\t\t\twidth: 1,\r\n\t\t\t\t\toverflow: 'hidden'\r\n\t\t\t\t} )\r\n\t\t\t\t.append(\r\n\t\t\t\t\t$('<div/>')\r\n\t\t\t\t\t\t.css( {\r\n\t\t\t\t\t\t\tposition: 'absolute',\r\n\t\t\t\t\t\t\ttop: 1,\r\n\t\t\t\t\t\t\tleft: 1,\r\n\t\t\t\t\t\t\twidth: 100,\r\n\t\t\t\t\t\t\toverflow: 'scroll'\r\n\t\t\t\t\t\t} )\r\n\t\t\t\t\t\t.append(\r\n\t\t\t\t\t\t\t$('<div/>')\r\n\t\t\t\t\t\t\t\t.css( {\r\n\t\t\t\t\t\t\t\t\twidth: '100%',\r\n\t\t\t\t\t\t\t\t\theight: 10\r\n\t\t\t\t\t\t\t\t} )\r\n\t\t\t\t\t\t)\r\n\t\t\t\t)\r\n\t\t\t\t.appendTo( 'body' );\r\n\t\r\n\t\t\tvar outer = n.children();\r\n\t\t\tvar inner = outer.children();\r\n\t\r\n\t\t\t// Numbers below, in order, are:\r\n\t\t\t// inner.offsetWidth, inner.clientWidth, outer.offsetWidth, outer.clientWidth\r\n\t\t\t//\r\n\t\t\t// IE6 XP: 100 100 100 83\r\n\t\t\t// IE7 Vista: 100 100 100 83\r\n\t\t\t// IE 8+ Windows: 83 83 100 83\r\n\t\t\t// Evergreen Windows: 83 83 100 83\r\n\t\t\t// Evergreen Mac with scrollbars: 85 85 100 85\r\n\t\t\t// Evergreen Mac without scrollbars: 100 100 100 100\r\n\t\r\n\t\t\t// Get scrollbar width\r\n\t\t\tbrowser.barWidth = outer[0].offsetWidth - outer[0].clientWidth;\r\n\t\r\n\t\t\t// IE6/7 will oversize a width 100% element inside a scrolling element, to\r\n\t\t\t// include the width of the scrollbar, while other browsers ensure the inner\r\n\t\t\t// element is contained without forcing scrolling\r\n\t\t\tbrowser.bScrollOversize = inner[0].offsetWidth === 100 && outer[0].clientWidth !== 100;\r\n\t\r\n\t\t\t// In rtl text layout, some browsers (most, but not all) will place the\r\n\t\t\t// scrollbar on the left, rather than the right.\r\n\t\t\tbrowser.bScrollbarLeft = Math.round( inner.offset().left ) !== 1;\r\n\t\r\n\t\t\t// IE8- don't provide height and width for getBoundingClientRect\r\n\t\t\tbrowser.bBounding = n[0].getBoundingClientRect().width ? true : false;\r\n\t\r\n\t\t\tn.remove();\r\n\t\t}\r\n\t\r\n\t\t$.extend( settings.oBrowser, DataTable.__browser );\r\n\t\tsettings.oScroll.iBarWidth = DataTable.__browser.barWidth;\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Array.prototype reduce[Right] method, used for browsers which don't support\r\n\t * JS 1.6. Done this way to reduce code size, since we iterate either way\r\n\t * @param {object} settings dataTables settings object\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnReduce ( that, fn, init, start, end, inc )\r\n\t{\r\n\t\tvar\r\n\t\t\ti = start,\r\n\t\t\tvalue,\r\n\t\t\tisSet = false;\r\n\t\r\n\t\tif ( init !== undefined ) {\r\n\t\t\tvalue = init;\r\n\t\t\tisSet = true;\r\n\t\t}\r\n\t\r\n\t\twhile ( i !== end ) {\r\n\t\t\tif ( ! that.hasOwnProperty(i) ) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\r\n\t\t\tvalue = isSet ?\r\n\t\t\t\tfn( value, that[i], i, that ) :\r\n\t\t\t\tthat[i];\r\n\t\r\n\t\t\tisSet = true;\r\n\t\t\ti += inc;\r\n\t\t}\r\n\t\r\n\t\treturn value;\r\n\t}\r\n\t\r\n\t/**\r\n\t * Add a column to the list used for the table with default values\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @param {node} nTh The th element for this column\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnAddColumn( oSettings, nTh )\r\n\t{\r\n\t\t// Add column to aoColumns array\r\n\t\tvar oDefaults = DataTable.defaults.column;\r\n\t\tvar iCol = oSettings.aoColumns.length;\r\n\t\tvar oCol = $.extend( {}, DataTable.models.oColumn, oDefaults, {\r\n\t\t\t\"nTh\": nTh ? nTh : document.createElement('th'),\r\n\t\t\t\"sTitle\": oDefaults.sTitle ? oDefaults.sTitle : nTh ? nTh.innerHTML : '',\r\n\t\t\t\"aDataSort\": oDefaults.aDataSort ? oDefaults.aDataSort : [iCol],\r\n\t\t\t\"mData\": oDefaults.mData ? oDefaults.mData : iCol,\r\n\t\t\tidx: iCol\r\n\t\t} );\r\n\t\toSettings.aoColumns.push( oCol );\r\n\t\r\n\t\t// Add search object for column specific search. Note that the `searchCols[ iCol ]`\r\n\t\t// passed into extend can be undefined. This allows the user to give a default\r\n\t\t// with only some of the parameters defined, and also not give a default\r\n\t\tvar searchCols = oSettings.aoPreSearchCols;\r\n\t\tsearchCols[ iCol ] = $.extend( {}, DataTable.models.oSearch, searchCols[ iCol ] );\r\n\t\r\n\t\t// Use the default column options function to initialise classes etc\r\n\t\t_fnColumnOptions( oSettings, iCol, $(nTh).data() );\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Apply options for a column\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @param {int} iCol column index to consider\r\n\t * @param {object} oOptions object with sType, bVisible and bSearchable etc\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnColumnOptions( oSettings, iCol, oOptions )\r\n\t{\r\n\t\tvar oCol = oSettings.aoColumns[ iCol ];\r\n\t\tvar oClasses = oSettings.oClasses;\r\n\t\tvar th = $(oCol.nTh);\r\n\t\r\n\t\t// Try to get width information from the DOM. We can't get it from CSS\r\n\t\t// as we'd need to parse the CSS stylesheet. `width` option can override\r\n\t\tif ( ! oCol.sWidthOrig ) {\r\n\t\t\t// Width attribute\r\n\t\t\toCol.sWidthOrig = th.attr('width') || null;\r\n\t\r\n\t\t\t// Style attribute\r\n\t\t\tvar t = (th.attr('style') || '').match(/width:\\s*(\\d+[pxem%]+)/);\r\n\t\t\tif ( t ) {\r\n\t\t\t\toCol.sWidthOrig = t[1];\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\t/* User specified column options */\r\n\t\tif ( oOptions !== undefined && oOptions !== null )\r\n\t\t{\r\n\t\t\t// Backwards compatibility\r\n\t\t\t_fnCompatCols( oOptions );\r\n\t\r\n\t\t\t// Map camel case parameters to their Hungarian counterparts\r\n\t\t\t_fnCamelToHungarian( DataTable.defaults.column, oOptions, true );\r\n\t\r\n\t\t\t/* Backwards compatibility for mDataProp */\r\n\t\t\tif ( oOptions.mDataProp !== undefined && !oOptions.mData )\r\n\t\t\t{\r\n\t\t\t\toOptions.mData = oOptions.mDataProp;\r\n\t\t\t}\r\n\t\r\n\t\t\tif ( oOptions.sType )\r\n\t\t\t{\r\n\t\t\t\toCol._sManualType = oOptions.sType;\r\n\t\t\t}\r\n\t\r\n\t\t\t// `class` is a reserved word in Javascript, so we need to provide\r\n\t\t\t// the ability to use a valid name for the camel case input\r\n\t\t\tif ( oOptions.className && ! oOptions.sClass )\r\n\t\t\t{\r\n\t\t\t\toOptions.sClass = oOptions.className;\r\n\t\t\t}\r\n\t\t\tif ( oOptions.sClass ) {\r\n\t\t\t\tth.addClass( oOptions.sClass );\r\n\t\t\t}\r\n\t\r\n\t\t\t$.extend( oCol, oOptions );\r\n\t\t\t_fnMap( oCol, oOptions, \"sWidth\", \"sWidthOrig\" );\r\n\t\r\n\t\t\t/* iDataSort to be applied (backwards compatibility), but aDataSort will take\r\n\t\t\t * priority if defined\r\n\t\t\t */\r\n\t\t\tif ( oOptions.iDataSort !== undefined )\r\n\t\t\t{\r\n\t\t\t\toCol.aDataSort = [ oOptions.iDataSort ];\r\n\t\t\t}\r\n\t\t\t_fnMap( oCol, oOptions, \"aDataSort\" );\r\n\t\t}\r\n\t\r\n\t\t/* Cache the data get and set functions for speed */\r\n\t\tvar mDataSrc = oCol.mData;\r\n\t\tvar mData = _fnGetObjectDataFn( mDataSrc );\r\n\t\tvar mRender = oCol.mRender ? _fnGetObjectDataFn( oCol.mRender ) : null;\r\n\t\r\n\t\tvar attrTest = function( src ) {\r\n\t\t\treturn typeof src === 'string' && src.indexOf('@') !== -1;\r\n\t\t};\r\n\t\toCol._bAttrSrc = $.isPlainObject( mDataSrc ) && (\r\n\t\t\tattrTest(mDataSrc.sort) || attrTest(mDataSrc.type) || attrTest(mDataSrc.filter)\r\n\t\t);\r\n\t\toCol._setter = null;\r\n\t\r\n\t\toCol.fnGetData = function (rowData, type, meta) {\r\n\t\t\tvar innerData = mData( rowData, type, undefined, meta );\r\n\t\r\n\t\t\treturn mRender && type ?\r\n\t\t\t\tmRender( innerData, type, rowData, meta ) :\r\n\t\t\t\tinnerData;\r\n\t\t};\r\n\t\toCol.fnSetData = function ( rowData, val, meta ) {\r\n\t\t\treturn _fnSetObjectDataFn( mDataSrc )( rowData, val, meta );\r\n\t\t};\r\n\t\r\n\t\t// Indicate if DataTables should read DOM data as an object or array\r\n\t\t// Used in _fnGetRowElements\r\n\t\tif ( typeof mDataSrc !== 'number' ) {\r\n\t\t\toSettings._rowReadObject = true;\r\n\t\t}\r\n\t\r\n\t\t/* Feature sorting overrides column specific when off */\r\n\t\tif ( !oSettings.oFeatures.bSort )\r\n\t\t{\r\n\t\t\toCol.bSortable = false;\r\n\t\t\tth.addClass( oClasses.sSortableNone ); // Have to add class here as order event isn't called\r\n\t\t}\r\n\t\r\n\t\t/* Check that the class assignment is correct for sorting */\r\n\t\tvar bAsc = $.inArray('asc', oCol.asSorting) !== -1;\r\n\t\tvar bDesc = $.inArray('desc', oCol.asSorting) !== -1;\r\n\t\tif ( !oCol.bSortable || (!bAsc && !bDesc) )\r\n\t\t{\r\n\t\t\toCol.sSortingClass = oClasses.sSortableNone;\r\n\t\t\toCol.sSortingClassJUI = \"\";\r\n\t\t}\r\n\t\telse if ( bAsc && !bDesc )\r\n\t\t{\r\n\t\t\toCol.sSortingClass = oClasses.sSortableAsc;\r\n\t\t\toCol.sSortingClassJUI = oClasses.sSortJUIAscAllowed;\r\n\t\t}\r\n\t\telse if ( !bAsc && bDesc )\r\n\t\t{\r\n\t\t\toCol.sSortingClass = oClasses.sSortableDesc;\r\n\t\t\toCol.sSortingClassJUI = oClasses.sSortJUIDescAllowed;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\toCol.sSortingClass = oClasses.sSortable;\r\n\t\t\toCol.sSortingClassJUI = oClasses.sSortJUI;\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Adjust the table column widths for new data. Note: you would probably want to\r\n\t * do a redraw after calling this function!\r\n\t * @param {object} settings dataTables settings object\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnAdjustColumnSizing ( settings )\r\n\t{\r\n\t\t/* Not interested in doing column width calculation if auto-width is disabled */\r\n\t\tif ( settings.oFeatures.bAutoWidth !== false )\r\n\t\t{\r\n\t\t\tvar columns = settings.aoColumns;\r\n\t\r\n\t\t\t_fnCalculateColumnWidths( settings );\r\n\t\t\tfor ( var i=0 , iLen=columns.length ; i<iLen ; i++ )\r\n\t\t\t{\r\n\t\t\t\tcolumns[i].nTh.style.width = columns[i].sWidth;\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\tvar scroll = settings.oScroll;\r\n\t\tif ( scroll.sY !== '' || scroll.sX !== '')\r\n\t\t{\r\n\t\t\t_fnScrollDraw( settings );\r\n\t\t}\r\n\t\r\n\t\t_fnCallbackFire( settings, null, 'column-sizing', [settings] );\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Covert the index of a visible column to the index in the data array (take account\r\n\t * of hidden columns)\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @param {int} iMatch Visible column index to lookup\r\n\t * @returns {int} i the data index\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnVisibleToColumnIndex( oSettings, iMatch )\r\n\t{\r\n\t\tvar aiVis = _fnGetColumns( oSettings, 'bVisible' );\r\n\t\r\n\t\treturn typeof aiVis[iMatch] === 'number' ?\r\n\t\t\taiVis[iMatch] :\r\n\t\t\tnull;\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Covert the index of an index in the data array and convert it to the visible\r\n\t * column index (take account of hidden columns)\r\n\t * @param {int} iMatch Column index to lookup\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @returns {int} i the data index\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnColumnIndexToVisible( oSettings, iMatch )\r\n\t{\r\n\t\tvar aiVis = _fnGetColumns( oSettings, 'bVisible' );\r\n\t\tvar iPos = $.inArray( iMatch, aiVis );\r\n\t\r\n\t\treturn iPos !== -1 ? iPos : null;\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Get the number of visible columns\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @returns {int} i the number of visible columns\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnVisbleColumns( oSettings )\r\n\t{\r\n\t\tvar vis = 0;\r\n\t\r\n\t\t// No reduce in IE8, use a loop for now\r\n\t\t$.each( oSettings.aoColumns, function ( i, col ) {\r\n\t\t\tif ( col.bVisible && $(col.nTh).css('display') !== 'none' ) {\r\n\t\t\t\tvis++;\r\n\t\t\t}\r\n\t\t} );\r\n\t\r\n\t\treturn vis;\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Get an array of column indexes that match a given property\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @param {string} sParam Parameter in aoColumns to look for - typically\r\n\t * bVisible or bSearchable\r\n\t * @returns {array} Array of indexes with matched properties\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnGetColumns( oSettings, sParam )\r\n\t{\r\n\t\tvar a = [];\r\n\t\r\n\t\t$.map( oSettings.aoColumns, function(val, i) {\r\n\t\t\tif ( val[sParam] ) {\r\n\t\t\t\ta.push( i );\r\n\t\t\t}\r\n\t\t} );\r\n\t\r\n\t\treturn a;\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Calculate the 'type' of a column\r\n\t * @param {object} settings dataTables settings object\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnColumnTypes ( settings )\r\n\t{\r\n\t\tvar columns = settings.aoColumns;\r\n\t\tvar data = settings.aoData;\r\n\t\tvar types = DataTable.ext.type.detect;\r\n\t\tvar i, ien, j, jen, k, ken;\r\n\t\tvar col, cell, detectedType, cache;\r\n\t\r\n\t\t// For each column, spin over the \r\n\t\tfor ( i=0, ien=columns.length ; i<ien ; i++ ) {\r\n\t\t\tcol = columns[i];\r\n\t\t\tcache = [];\r\n\t\r\n\t\t\tif ( ! col.sType && col._sManualType ) {\r\n\t\t\t\tcol.sType = col._sManualType;\r\n\t\t\t}\r\n\t\t\telse if ( ! col.sType ) {\r\n\t\t\t\tfor ( j=0, jen=types.length ; j<jen ; j++ ) {\r\n\t\t\t\t\tfor ( k=0, ken=data.length ; k<ken ; k++ ) {\r\n\t\t\t\t\t\t// Use a cache array so we only need to get the type data\r\n\t\t\t\t\t\t// from the formatter once (when using multiple detectors)\r\n\t\t\t\t\t\tif ( cache[k] === undefined ) {\r\n\t\t\t\t\t\t\tcache[k] = _fnGetCellData( settings, k, i, 'type' );\r\n\t\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\t\tdetectedType = types[j]( cache[k], settings );\r\n\t\r\n\t\t\t\t\t\t// If null, then this type can't apply to this column, so\r\n\t\t\t\t\t\t// rather than testing all cells, break out. There is an\r\n\t\t\t\t\t\t// exception for the last type which is `html`. We need to\r\n\t\t\t\t\t\t// scan all rows since it is possible to mix string and HTML\r\n\t\t\t\t\t\t// types\r\n\t\t\t\t\t\tif ( ! detectedType && j !== types.length-1 ) {\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\t\t// Only a single match is needed for html type since it is\r\n\t\t\t\t\t\t// bottom of the pile and very similar to string\r\n\t\t\t\t\t\tif ( detectedType === 'html' ) {\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\t// Type is valid for all data points in the column - use this\r\n\t\t\t\t\t// type\r\n\t\t\t\t\tif ( detectedType ) {\r\n\t\t\t\t\t\tcol.sType = detectedType;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t// Fall back - if no type was detected, always use string\r\n\t\t\t\tif ( ! col.sType ) {\r\n\t\t\t\t\tcol.sType = 'string';\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Take the column definitions and static columns arrays and calculate how\r\n\t * they relate to column indexes. The callback function will then apply the\r\n\t * definition found for a column to a suitable configuration object.\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @param {array} aoColDefs The aoColumnDefs array that is to be applied\r\n\t * @param {array} aoCols The aoColumns array that defines columns individually\r\n\t * @param {function} fn Callback function - takes two parameters, the calculated\r\n\t * column index and the definition for that column.\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnApplyColumnDefs( oSettings, aoColDefs, aoCols, fn )\r\n\t{\r\n\t\tvar i, iLen, j, jLen, k, kLen, def;\r\n\t\tvar columns = oSettings.aoColumns;\r\n\t\r\n\t\t// Column definitions with aTargets\r\n\t\tif ( aoColDefs )\r\n\t\t{\r\n\t\t\t/* Loop over the definitions array - loop in reverse so first instance has priority */\r\n\t\t\tfor ( i=aoColDefs.length-1 ; i>=0 ; i-- )\r\n\t\t\t{\r\n\t\t\t\tdef = aoColDefs[i];\r\n\t\r\n\t\t\t\t/* Each definition can target multiple columns, as it is an array */\r\n\t\t\t\tvar aTargets = def.targets !== undefined ?\r\n\t\t\t\t\tdef.targets :\r\n\t\t\t\t\tdef.aTargets;\r\n\t\r\n\t\t\t\tif ( ! $.isArray( aTargets ) )\r\n\t\t\t\t{\r\n\t\t\t\t\taTargets = [ aTargets ];\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\tfor ( j=0, jLen=aTargets.length ; j<jLen ; j++ )\r\n\t\t\t\t{\r\n\t\t\t\t\tif ( typeof aTargets[j] === 'number' && aTargets[j] >= 0 )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t/* Add columns that we don't yet know about */\r\n\t\t\t\t\t\twhile( columns.length <= aTargets[j] )\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t_fnAddColumn( oSettings );\r\n\t\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\t\t/* Integer, basic index */\r\n\t\t\t\t\t\tfn( aTargets[j], def );\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if ( typeof aTargets[j] === 'number' && aTargets[j] < 0 )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t/* Negative integer, right to left column counting */\r\n\t\t\t\t\t\tfn( columns.length+aTargets[j], def );\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if ( typeof aTargets[j] === 'string' )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t/* Class name matching on TH element */\r\n\t\t\t\t\t\tfor ( k=0, kLen=columns.length ; k<kLen ; k++ )\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif ( aTargets[j] == \"_all\" ||\r\n\t\t\t\t\t\t\t $(columns[k].nTh).hasClass( aTargets[j] ) )\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tfn( k, def );\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\t// Statically defined columns array\r\n\t\tif ( aoCols )\r\n\t\t{\r\n\t\t\tfor ( i=0, iLen=aoCols.length ; i<iLen ; i++ )\r\n\t\t\t{\r\n\t\t\t\tfn( i, aoCols[i] );\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\t\r\n\t/**\r\n\t * Add a data array to the table, creating DOM node etc. This is the parallel to\r\n\t * _fnGatherData, but for adding rows from a Javascript source, rather than a\r\n\t * DOM source.\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @param {array} aData data array to be added\r\n\t * @param {node} [nTr] TR element to add to the table - optional. If not given,\r\n\t * DataTables will create a row automatically\r\n\t * @param {array} [anTds] Array of TD|TH elements for the row - must be given\r\n\t * if nTr is.\r\n\t * @returns {int} >=0 if successful (index of new aoData entry), -1 if failed\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnAddData ( oSettings, aDataIn, nTr, anTds )\r\n\t{\r\n\t\t/* Create the object for storing information about this new row */\r\n\t\tvar iRow = oSettings.aoData.length;\r\n\t\tvar oData = $.extend( true, {}, DataTable.models.oRow, {\r\n\t\t\tsrc: nTr ? 'dom' : 'data',\r\n\t\t\tidx: iRow\r\n\t\t} );\r\n\t\r\n\t\toData._aData = aDataIn;\r\n\t\toSettings.aoData.push( oData );\r\n\t\r\n\t\t/* Create the cells */\r\n\t\tvar nTd, sThisType;\r\n\t\tvar columns = oSettings.aoColumns;\r\n\t\r\n\t\t// Invalidate the column types as the new data needs to be revalidated\r\n\t\tfor ( var i=0, iLen=columns.length ; i<iLen ; i++ )\r\n\t\t{\r\n\t\t\tcolumns[i].sType = null;\r\n\t\t}\r\n\t\r\n\t\t/* Add to the display array */\r\n\t\toSettings.aiDisplayMaster.push( iRow );\r\n\t\r\n\t\tvar id = oSettings.rowIdFn( aDataIn );\r\n\t\tif ( id !== undefined ) {\r\n\t\t\toSettings.aIds[ id ] = oData;\r\n\t\t}\r\n\t\r\n\t\t/* Create the DOM information, or register it if already present */\r\n\t\tif ( nTr || ! oSettings.oFeatures.bDeferRender )\r\n\t\t{\r\n\t\t\t_fnCreateTr( oSettings, iRow, nTr, anTds );\r\n\t\t}\r\n\t\r\n\t\treturn iRow;\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Add one or more TR elements to the table. Generally we'd expect to\r\n\t * use this for reading data from a DOM sourced table, but it could be\r\n\t * used for an TR element. Note that if a TR is given, it is used (i.e.\r\n\t * it is not cloned).\r\n\t * @param {object} settings dataTables settings object\r\n\t * @param {array|node|jQuery} trs The TR element(s) to add to the table\r\n\t * @returns {array} Array of indexes for the added rows\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnAddTr( settings, trs )\r\n\t{\r\n\t\tvar row;\r\n\t\r\n\t\t// Allow an individual node to be passed in\r\n\t\tif ( ! (trs instanceof $) ) {\r\n\t\t\ttrs = $(trs);\r\n\t\t}\r\n\t\r\n\t\treturn trs.map( function (i, el) {\r\n\t\t\trow = _fnGetRowElements( settings, el );\r\n\t\t\treturn _fnAddData( settings, row.data, el, row.cells );\r\n\t\t} );\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Take a TR element and convert it to an index in aoData\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @param {node} n the TR element to find\r\n\t * @returns {int} index if the node is found, null if not\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnNodeToDataIndex( oSettings, n )\r\n\t{\r\n\t\treturn (n._DT_RowIndex!==undefined) ? n._DT_RowIndex : null;\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Take a TD element and convert it into a column data index (not the visible index)\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @param {int} iRow The row number the TD/TH can be found in\r\n\t * @param {node} n The TD/TH element to find\r\n\t * @returns {int} index if the node is found, -1 if not\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnNodeToColumnIndex( oSettings, iRow, n )\r\n\t{\r\n\t\treturn $.inArray( n, oSettings.aoData[ iRow ].anCells );\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Get the data for a given cell from the internal cache, taking into account data mapping\r\n\t * @param {object} settings dataTables settings object\r\n\t * @param {int} rowIdx aoData row id\r\n\t * @param {int} colIdx Column index\r\n\t * @param {string} type data get type ('display', 'type' 'filter' 'sort')\r\n\t * @returns {*} Cell data\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnGetCellData( settings, rowIdx, colIdx, type )\r\n\t{\r\n\t\tvar draw = settings.iDraw;\r\n\t\tvar col = settings.aoColumns[colIdx];\r\n\t\tvar rowData = settings.aoData[rowIdx]._aData;\r\n\t\tvar defaultContent = col.sDefaultContent;\r\n\t\tvar cellData = col.fnGetData( rowData, type, {\r\n\t\t\tsettings: settings,\r\n\t\t\trow: rowIdx,\r\n\t\t\tcol: colIdx\r\n\t\t} );\r\n\t\r\n\t\tif ( cellData === undefined ) {\r\n\t\t\tif ( settings.iDrawError != draw && defaultContent === null ) {\r\n\t\t\t\t_fnLog( settings, 0, \"Requested unknown parameter \"+\r\n\t\t\t\t\t(typeof col.mData=='function' ? '{function}' : \"'\"+col.mData+\"'\")+\r\n\t\t\t\t\t\" for row \"+rowIdx+\", column \"+colIdx, 4 );\r\n\t\t\t\tsettings.iDrawError = draw;\r\n\t\t\t}\r\n\t\t\treturn defaultContent;\r\n\t\t}\r\n\t\r\n\t\t// When the data source is null and a specific data type is requested (i.e.\r\n\t\t// not the original data), we can use default column data\r\n\t\tif ( (cellData === rowData || cellData === null) && defaultContent !== null && type !== undefined ) {\r\n\t\t\tcellData = defaultContent;\r\n\t\t}\r\n\t\telse if ( typeof cellData === 'function' ) {\r\n\t\t\t// If the data source is a function, then we run it and use the return,\r\n\t\t\t// executing in the scope of the data object (for instances)\r\n\t\t\treturn cellData.call( rowData );\r\n\t\t}\r\n\t\r\n\t\tif ( cellData === null && type == 'display' ) {\r\n\t\t\treturn '';\r\n\t\t}\r\n\t\treturn cellData;\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Set the value for a specific cell, into the internal data cache\r\n\t * @param {object} settings dataTables settings object\r\n\t * @param {int} rowIdx aoData row id\r\n\t * @param {int} colIdx Column index\r\n\t * @param {*} val Value to set\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnSetCellData( settings, rowIdx, colIdx, val )\r\n\t{\r\n\t\tvar col = settings.aoColumns[colIdx];\r\n\t\tvar rowData = settings.aoData[rowIdx]._aData;\r\n\t\r\n\t\tcol.fnSetData( rowData, val, {\r\n\t\t\tsettings: settings,\r\n\t\t\trow: rowIdx,\r\n\t\t\tcol: colIdx\r\n\t\t} );\r\n\t}\r\n\t\r\n\t\r\n\t// Private variable that is used to match action syntax in the data property object\r\n\tvar __reArray = /\\[.*?\\]$/;\r\n\tvar __reFn = /\\(\\)$/;\r\n\t\r\n\t/**\r\n\t * Split string on periods, taking into account escaped periods\r\n\t * @param {string} str String to split\r\n\t * @return {array} Split string\r\n\t */\r\n\tfunction _fnSplitObjNotation( str )\r\n\t{\r\n\t\treturn $.map( str.match(/(\\\\.|[^\\.])+/g) || [''], function ( s ) {\r\n\t\t\treturn s.replace(/\\\\\\./g, '.');\r\n\t\t} );\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Return a function that can be used to get data from a source object, taking\r\n\t * into account the ability to use nested objects as a source\r\n\t * @param {string|int|function} mSource The data source for the object\r\n\t * @returns {function} Data get function\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnGetObjectDataFn( mSource )\r\n\t{\r\n\t\tif ( $.isPlainObject( mSource ) )\r\n\t\t{\r\n\t\t\t/* Build an object of get functions, and wrap them in a single call */\r\n\t\t\tvar o = {};\r\n\t\t\t$.each( mSource, function (key, val) {\r\n\t\t\t\tif ( val ) {\r\n\t\t\t\t\to[key] = _fnGetObjectDataFn( val );\r\n\t\t\t\t}\r\n\t\t\t} );\r\n\t\r\n\t\t\treturn function (data, type, row, meta) {\r\n\t\t\t\tvar t = o[type] || o._;\r\n\t\t\t\treturn t !== undefined ?\r\n\t\t\t\t\tt(data, type, row, meta) :\r\n\t\t\t\t\tdata;\r\n\t\t\t};\r\n\t\t}\r\n\t\telse if ( mSource === null )\r\n\t\t{\r\n\t\t\t/* Give an empty string for rendering / sorting etc */\r\n\t\t\treturn function (data) { // type, row and meta also passed, but not used\r\n\t\t\t\treturn data;\r\n\t\t\t};\r\n\t\t}\r\n\t\telse if ( typeof mSource === 'function' )\r\n\t\t{\r\n\t\t\treturn function (data, type, row, meta) {\r\n\t\t\t\treturn mSource( data, type, row, meta );\r\n\t\t\t};\r\n\t\t}\r\n\t\telse if ( typeof mSource === 'string' && (mSource.indexOf('.') !== -1 ||\r\n\t\t\t mSource.indexOf('[') !== -1 || mSource.indexOf('(') !== -1) )\r\n\t\t{\r\n\t\t\t/* If there is a . in the source string then the data source is in a\r\n\t\t\t * nested object so we loop over the data for each level to get the next\r\n\t\t\t * level down. On each loop we test for undefined, and if found immediately\r\n\t\t\t * return. This allows entire objects to be missing and sDefaultContent to\r\n\t\t\t * be used if defined, rather than throwing an error\r\n\t\t\t */\r\n\t\t\tvar fetchData = function (data, type, src) {\r\n\t\t\t\tvar arrayNotation, funcNotation, out, innerSrc;\r\n\t\r\n\t\t\t\tif ( src !== \"\" )\r\n\t\t\t\t{\r\n\t\t\t\t\tvar a = _fnSplitObjNotation( src );\r\n\t\r\n\t\t\t\t\tfor ( var i=0, iLen=a.length ; i<iLen ; i++ )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t// Check if we are dealing with special notation\r\n\t\t\t\t\t\tarrayNotation = a[i].match(__reArray);\r\n\t\t\t\t\t\tfuncNotation = a[i].match(__reFn);\r\n\t\r\n\t\t\t\t\t\tif ( arrayNotation )\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t// Array notation\r\n\t\t\t\t\t\t\ta[i] = a[i].replace(__reArray, '');\r\n\t\r\n\t\t\t\t\t\t\t// Condition allows simply [] to be passed in\r\n\t\t\t\t\t\t\tif ( a[i] !== \"\" ) {\r\n\t\t\t\t\t\t\t\tdata = data[ a[i] ];\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tout = [];\r\n\t\r\n\t\t\t\t\t\t\t// Get the remainder of the nested object to get\r\n\t\t\t\t\t\t\ta.splice( 0, i+1 );\r\n\t\t\t\t\t\t\tinnerSrc = a.join('.');\r\n\t\r\n\t\t\t\t\t\t\t// Traverse each entry in the array getting the properties requested\r\n\t\t\t\t\t\t\tif ( $.isArray( data ) ) {\r\n\t\t\t\t\t\t\t\tfor ( var j=0, jLen=data.length ; j<jLen ; j++ ) {\r\n\t\t\t\t\t\t\t\t\tout.push( fetchData( data[j], type, innerSrc ) );\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\t\t\t// If a string is given in between the array notation indicators, that\r\n\t\t\t\t\t\t\t// is used to join the strings together, otherwise an array is returned\r\n\t\t\t\t\t\t\tvar join = arrayNotation[0].substring(1, arrayNotation[0].length-1);\r\n\t\t\t\t\t\t\tdata = (join===\"\") ? out : out.join(join);\r\n\t\r\n\t\t\t\t\t\t\t// The inner call to fetchData has already traversed through the remainder\r\n\t\t\t\t\t\t\t// of the source requested, so we exit from the loop\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if ( funcNotation )\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t// Function call\r\n\t\t\t\t\t\t\ta[i] = a[i].replace(__reFn, '');\r\n\t\t\t\t\t\t\tdata = data[ a[i] ]();\r\n\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\t\tif ( data === null || data[ a[i] ] === undefined )\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\treturn undefined;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tdata = data[ a[i] ];\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\treturn data;\r\n\t\t\t};\r\n\t\r\n\t\t\treturn function (data, type) { // row and meta also passed, but not used\r\n\t\t\t\treturn fetchData( data, type, mSource );\r\n\t\t\t};\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t/* Array or flat object mapping */\r\n\t\t\treturn function (data, type) { // row and meta also passed, but not used\r\n\t\t\t\treturn data[mSource];\r\n\t\t\t};\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Return a function that can be used to set data from a source object, taking\r\n\t * into account the ability to use nested objects as a source\r\n\t * @param {string|int|function} mSource The data source for the object\r\n\t * @returns {function} Data set function\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnSetObjectDataFn( mSource )\r\n\t{\r\n\t\tif ( $.isPlainObject( mSource ) )\r\n\t\t{\r\n\t\t\t/* Unlike get, only the underscore (global) option is used for for\r\n\t\t\t * setting data since we don't know the type here. This is why an object\r\n\t\t\t * option is not documented for `mData` (which is read/write), but it is\r\n\t\t\t * for `mRender` which is read only.\r\n\t\t\t */\r\n\t\t\treturn _fnSetObjectDataFn( mSource._ );\r\n\t\t}\r\n\t\telse if ( mSource === null )\r\n\t\t{\r\n\t\t\t/* Nothing to do when the data source is null */\r\n\t\t\treturn function () {};\r\n\t\t}\r\n\t\telse if ( typeof mSource === 'function' )\r\n\t\t{\r\n\t\t\treturn function (data, val, meta) {\r\n\t\t\t\tmSource( data, 'set', val, meta );\r\n\t\t\t};\r\n\t\t}\r\n\t\telse if ( typeof mSource === 'string' && (mSource.indexOf('.') !== -1 ||\r\n\t\t\t mSource.indexOf('[') !== -1 || mSource.indexOf('(') !== -1) )\r\n\t\t{\r\n\t\t\t/* Like the get, we need to get data from a nested object */\r\n\t\t\tvar setData = function (data, val, src) {\r\n\t\t\t\tvar a = _fnSplitObjNotation( src ), b;\r\n\t\t\t\tvar aLast = a[a.length-1];\r\n\t\t\t\tvar arrayNotation, funcNotation, o, innerSrc;\r\n\t\r\n\t\t\t\tfor ( var i=0, iLen=a.length-1 ; i<iLen ; i++ )\r\n\t\t\t\t{\r\n\t\t\t\t\t// Check if we are dealing with an array notation request\r\n\t\t\t\t\tarrayNotation = a[i].match(__reArray);\r\n\t\t\t\t\tfuncNotation = a[i].match(__reFn);\r\n\t\r\n\t\t\t\t\tif ( arrayNotation )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\ta[i] = a[i].replace(__reArray, '');\r\n\t\t\t\t\t\tdata[ a[i] ] = [];\r\n\t\r\n\t\t\t\t\t\t// Get the remainder of the nested object to set so we can recurse\r\n\t\t\t\t\t\tb = a.slice();\r\n\t\t\t\t\t\tb.splice( 0, i+1 );\r\n\t\t\t\t\t\tinnerSrc = b.join('.');\r\n\t\r\n\t\t\t\t\t\t// Traverse each entry in the array setting the properties requested\r\n\t\t\t\t\t\tif ( $.isArray( val ) )\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tfor ( var j=0, jLen=val.length ; j<jLen ; j++ )\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\to = {};\r\n\t\t\t\t\t\t\t\tsetData( o, val[j], innerSrc );\r\n\t\t\t\t\t\t\t\tdata[ a[i] ].push( o );\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t// We've been asked to save data to an array, but it\r\n\t\t\t\t\t\t\t// isn't array data to be saved. Best that can be done\r\n\t\t\t\t\t\t\t// is to just save the value.\r\n\t\t\t\t\t\t\tdata[ a[i] ] = val;\r\n\t\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\t\t// The inner call to setData has already traversed through the remainder\r\n\t\t\t\t\t\t// of the source and has set the data, thus we can exit here\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if ( funcNotation )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t// Function call\r\n\t\t\t\t\t\ta[i] = a[i].replace(__reFn, '');\r\n\t\t\t\t\t\tdata = data[ a[i] ]( val );\r\n\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\t// If the nested object doesn't currently exist - since we are\r\n\t\t\t\t\t// trying to set the value - create it\r\n\t\t\t\t\tif ( data[ a[i] ] === null || data[ a[i] ] === undefined )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tdata[ a[i] ] = {};\r\n\t\t\t\t\t}\r\n\t\t\t\t\tdata = data[ a[i] ];\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t// Last item in the input - i.e, the actual set\r\n\t\t\t\tif ( aLast.match(__reFn ) )\r\n\t\t\t\t{\r\n\t\t\t\t\t// Function call\r\n\t\t\t\t\tdata = data[ aLast.replace(__reFn, '') ]( val );\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\t// If array notation is used, we just want to strip it and use the property name\r\n\t\t\t\t\t// and assign the value. If it isn't used, then we get the result we want anyway\r\n\t\t\t\t\tdata[ aLast.replace(__reArray, '') ] = val;\r\n\t\t\t\t}\r\n\t\t\t};\r\n\t\r\n\t\t\treturn function (data, val) { // meta is also passed in, but not used\r\n\t\t\t\treturn setData( data, val, mSource );\r\n\t\t\t};\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t/* Array or flat object mapping */\r\n\t\t\treturn function (data, val) { // meta is also passed in, but not used\r\n\t\t\t\tdata[mSource] = val;\r\n\t\t\t};\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Return an array with the full table data\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @returns array {array} aData Master data array\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnGetDataMaster ( settings )\r\n\t{\r\n\t\treturn _pluck( settings.aoData, '_aData' );\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Nuke the table\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnClearTable( settings )\r\n\t{\r\n\t\tsettings.aoData.length = 0;\r\n\t\tsettings.aiDisplayMaster.length = 0;\r\n\t\tsettings.aiDisplay.length = 0;\r\n\t\tsettings.aIds = {};\r\n\t}\r\n\t\r\n\t\r\n\t /**\r\n\t * Take an array of integers (index array) and remove a target integer (value - not\r\n\t * the key!)\r\n\t * @param {array} a Index array to target\r\n\t * @param {int} iTarget value to find\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnDeleteIndex( a, iTarget, splice )\r\n\t{\r\n\t\tvar iTargetIndex = -1;\r\n\t\r\n\t\tfor ( var i=0, iLen=a.length ; i<iLen ; i++ )\r\n\t\t{\r\n\t\t\tif ( a[i] == iTarget )\r\n\t\t\t{\r\n\t\t\t\tiTargetIndex = i;\r\n\t\t\t}\r\n\t\t\telse if ( a[i] > iTarget )\r\n\t\t\t{\r\n\t\t\t\ta[i]--;\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\tif ( iTargetIndex != -1 && splice === undefined )\r\n\t\t{\r\n\t\t\ta.splice( iTargetIndex, 1 );\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Mark cached data as invalid such that a re-read of the data will occur when\r\n\t * the cached data is next requested. Also update from the data source object.\r\n\t *\r\n\t * @param {object} settings DataTables settings object\r\n\t * @param {int} rowIdx Row index to invalidate\r\n\t * @param {string} [src] Source to invalidate from: undefined, 'auto', 'dom'\r\n\t * or 'data'\r\n\t * @param {int} [colIdx] Column index to invalidate. If undefined the whole\r\n\t * row will be invalidated\r\n\t * @memberof DataTable#oApi\r\n\t *\r\n\t * @todo For the modularisation of v1.11 this will need to become a callback, so\r\n\t * the sort and filter methods can subscribe to it. That will required\r\n\t * initialisation options for sorting, which is why it is not already baked in\r\n\t */\r\n\tfunction _fnInvalidate( settings, rowIdx, src, colIdx )\r\n\t{\r\n\t\tvar row = settings.aoData[ rowIdx ];\r\n\t\tvar i, ien;\r\n\t\tvar cellWrite = function ( cell, col ) {\r\n\t\t\t// This is very frustrating, but in IE if you just write directly\r\n\t\t\t// to innerHTML, and elements that are overwritten are GC'ed,\r\n\t\t\t// even if there is a reference to them elsewhere\r\n\t\t\twhile ( cell.childNodes.length ) {\r\n\t\t\t\tcell.removeChild( cell.firstChild );\r\n\t\t\t}\r\n\t\r\n\t\t\tcell.innerHTML = _fnGetCellData( settings, rowIdx, col, 'display' );\r\n\t\t};\r\n\t\r\n\t\t// Are we reading last data from DOM or the data object?\r\n\t\tif ( src === 'dom' || ((! src || src === 'auto') && row.src === 'dom') ) {\r\n\t\t\t// Read the data from the DOM\r\n\t\t\trow._aData = _fnGetRowElements(\r\n\t\t\t\t\tsettings, row, colIdx, colIdx === undefined ? undefined : row._aData\r\n\t\t\t\t)\r\n\t\t\t\t.data;\r\n\t\t}\r\n\t\telse {\r\n\t\t\t// Reading from data object, update the DOM\r\n\t\t\tvar cells = row.anCells;\r\n\t\r\n\t\t\tif ( cells ) {\r\n\t\t\t\tif ( colIdx !== undefined ) {\r\n\t\t\t\t\tcellWrite( cells[colIdx], colIdx );\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tfor ( i=0, ien=cells.length ; i<ien ; i++ ) {\r\n\t\t\t\t\t\tcellWrite( cells[i], i );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\t// For both row and cell invalidation, the cached data for sorting and\r\n\t\t// filtering is nulled out\r\n\t\trow._aSortData = null;\r\n\t\trow._aFilterData = null;\r\n\t\r\n\t\t// Invalidate the type for a specific column (if given) or all columns since\r\n\t\t// the data might have changed\r\n\t\tvar cols = settings.aoColumns;\r\n\t\tif ( colIdx !== undefined ) {\r\n\t\t\tcols[ colIdx ].sType = null;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tfor ( i=0, ien=cols.length ; i<ien ; i++ ) {\r\n\t\t\t\tcols[i].sType = null;\r\n\t\t\t}\r\n\t\r\n\t\t\t// Update DataTables special `DT_*` attributes for the row\r\n\t\t\t_fnRowAttributes( settings, row );\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Build a data source object from an HTML row, reading the contents of the\r\n\t * cells that are in the row.\r\n\t *\r\n\t * @param {object} settings DataTables settings object\r\n\t * @param {node|object} TR element from which to read data or existing row\r\n\t * object from which to re-read the data from the cells\r\n\t * @param {int} [colIdx] Optional column index\r\n\t * @param {array|object} [d] Data source object. If `colIdx` is given then this\r\n\t * parameter should also be given and will be used to write the data into.\r\n\t * Only the column in question will be written\r\n\t * @returns {object} Object with two parameters: `data` the data read, in\r\n\t * document order, and `cells` and array of nodes (they can be useful to the\r\n\t * caller, so rather than needing a second traversal to get them, just return\r\n\t * them from here).\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnGetRowElements( settings, row, colIdx, d )\r\n\t{\r\n\t\tvar\r\n\t\t\ttds = [],\r\n\t\t\ttd = row.firstChild,\r\n\t\t\tname, col, o, i=0, contents,\r\n\t\t\tcolumns = settings.aoColumns,\r\n\t\t\tobjectRead = settings._rowReadObject;\r\n\t\r\n\t\t// Allow the data object to be passed in, or construct\r\n\t\td = d !== undefined ?\r\n\t\t\td :\r\n\t\t\tobjectRead ?\r\n\t\t\t\t{} :\r\n\t\t\t\t[];\r\n\t\r\n\t\tvar attr = function ( str, td ) {\r\n\t\t\tif ( typeof str === 'string' ) {\r\n\t\t\t\tvar idx = str.indexOf('@');\r\n\t\r\n\t\t\t\tif ( idx !== -1 ) {\r\n\t\t\t\t\tvar attr = str.substring( idx+1 );\r\n\t\t\t\t\tvar setter = _fnSetObjectDataFn( str );\r\n\t\t\t\t\tsetter( d, td.getAttribute( attr ) );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\t\r\n\t\t// Read data from a cell and store into the data object\r\n\t\tvar cellProcess = function ( cell ) {\r\n\t\t\tif ( colIdx === undefined || colIdx === i ) {\r\n\t\t\t\tcol = columns[i];\r\n\t\t\t\tcontents = $.trim(cell.innerHTML);\r\n\t\r\n\t\t\t\tif ( col && col._bAttrSrc ) {\r\n\t\t\t\t\tvar setter = _fnSetObjectDataFn( col.mData._ );\r\n\t\t\t\t\tsetter( d, contents );\r\n\t\r\n\t\t\t\t\tattr( col.mData.sort, cell );\r\n\t\t\t\t\tattr( col.mData.type, cell );\r\n\t\t\t\t\tattr( col.mData.filter, cell );\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\t// Depending on the `data` option for the columns the data can\r\n\t\t\t\t\t// be read to either an object or an array.\r\n\t\t\t\t\tif ( objectRead ) {\r\n\t\t\t\t\t\tif ( ! col._setter ) {\r\n\t\t\t\t\t\t\t// Cache the setter function\r\n\t\t\t\t\t\t\tcol._setter = _fnSetObjectDataFn( col.mData );\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tcol._setter( d, contents );\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\td[i] = contents;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\r\n\t\t\ti++;\r\n\t\t};\r\n\t\r\n\t\tif ( td ) {\r\n\t\t\t// `tr` element was passed in\r\n\t\t\twhile ( td ) {\r\n\t\t\t\tname = td.nodeName.toUpperCase();\r\n\t\r\n\t\t\t\tif ( name == \"TD\" || name == \"TH\" ) {\r\n\t\t\t\t\tcellProcess( td );\r\n\t\t\t\t\ttds.push( td );\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\ttd = td.nextSibling;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\t// Existing row object passed in\r\n\t\t\ttds = row.anCells;\r\n\t\r\n\t\t\tfor ( var j=0, jen=tds.length ; j<jen ; j++ ) {\r\n\t\t\t\tcellProcess( tds[j] );\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\t// Read the ID from the DOM if present\r\n\t\tvar rowNode = row.firstChild ? row : row.nTr;\r\n\t\r\n\t\tif ( rowNode ) {\r\n\t\t\tvar id = rowNode.getAttribute( 'id' );\r\n\t\r\n\t\t\tif ( id ) {\r\n\t\t\t\t_fnSetObjectDataFn( settings.rowId )( d, id );\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\treturn {\r\n\t\t\tdata: d,\r\n\t\t\tcells: tds\r\n\t\t};\r\n\t}\r\n\t/**\r\n\t * Create a new TR element (and it's TD children) for a row\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @param {int} iRow Row to consider\r\n\t * @param {node} [nTrIn] TR element to add to the table - optional. If not given,\r\n\t * DataTables will create a row automatically\r\n\t * @param {array} [anTds] Array of TD|TH elements for the row - must be given\r\n\t * if nTr is.\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnCreateTr ( oSettings, iRow, nTrIn, anTds )\r\n\t{\r\n\t\tvar\r\n\t\t\trow = oSettings.aoData[iRow],\r\n\t\t\trowData = row._aData,\r\n\t\t\tcells = [],\r\n\t\t\tnTr, nTd, oCol,\r\n\t\t\ti, iLen, create;\r\n\t\r\n\t\tif ( row.nTr === null )\r\n\t\t{\r\n\t\t\tnTr = nTrIn || document.createElement('tr');\r\n\t\r\n\t\t\trow.nTr = nTr;\r\n\t\t\trow.anCells = cells;\r\n\t\r\n\t\t\t/* Use a private property on the node to allow reserve mapping from the node\r\n\t\t\t * to the aoData array for fast look up\r\n\t\t\t */\r\n\t\t\tnTr._DT_RowIndex = iRow;\r\n\t\r\n\t\t\t/* Special parameters can be given by the data source to be used on the row */\r\n\t\t\t_fnRowAttributes( oSettings, row );\r\n\t\r\n\t\t\t/* Process each column */\r\n\t\t\tfor ( i=0, iLen=oSettings.aoColumns.length ; i<iLen ; i++ )\r\n\t\t\t{\r\n\t\t\t\toCol = oSettings.aoColumns[i];\r\n\t\t\t\tcreate = nTrIn ? false : true;\r\n\t\r\n\t\t\t\tnTd = create ? document.createElement( oCol.sCellType ) : anTds[i];\r\n\t\t\t\tnTd._DT_CellIndex = {\r\n\t\t\t\t\trow: iRow,\r\n\t\t\t\t\tcolumn: i\r\n\t\t\t\t};\r\n\t\t\t\t\r\n\t\t\t\tcells.push( nTd );\r\n\t\r\n\t\t\t\t// Need to create the HTML if new, or if a rendering function is defined\r\n\t\t\t\tif ( create || ((!nTrIn || oCol.mRender || oCol.mData !== i) &&\r\n\t\t\t\t\t (!$.isPlainObject(oCol.mData) || oCol.mData._ !== i+'.display')\r\n\t\t\t\t)) {\r\n\t\t\t\t\tnTd.innerHTML = _fnGetCellData( oSettings, iRow, i, 'display' );\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t/* Add user defined class */\r\n\t\t\t\tif ( oCol.sClass )\r\n\t\t\t\t{\r\n\t\t\t\t\tnTd.className += ' '+oCol.sClass;\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t// Visibility - add or remove as required\r\n\t\t\t\tif ( oCol.bVisible && ! nTrIn )\r\n\t\t\t\t{\r\n\t\t\t\t\tnTr.appendChild( nTd );\r\n\t\t\t\t}\r\n\t\t\t\telse if ( ! oCol.bVisible && nTrIn )\r\n\t\t\t\t{\r\n\t\t\t\t\tnTd.parentNode.removeChild( nTd );\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\tif ( oCol.fnCreatedCell )\r\n\t\t\t\t{\r\n\t\t\t\t\toCol.fnCreatedCell.call( oSettings.oInstance,\r\n\t\t\t\t\t\tnTd, _fnGetCellData( oSettings, iRow, i ), rowData, iRow, i\r\n\t\t\t\t\t);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\r\n\t\t\t_fnCallbackFire( oSettings, 'aoRowCreatedCallback', null, [nTr, rowData, iRow, cells] );\r\n\t\t}\r\n\t\r\n\t\t// Remove once webkit bug 131819 and Chromium bug 365619 have been resolved\r\n\t\t// and deployed\r\n\t\trow.nTr.setAttribute( 'role', 'row' );\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Add attributes to a row based on the special `DT_*` parameters in a data\r\n\t * source object.\r\n\t * @param {object} settings DataTables settings object\r\n\t * @param {object} DataTables row object for the row to be modified\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnRowAttributes( settings, row )\r\n\t{\r\n\t\tvar tr = row.nTr;\r\n\t\tvar data = row._aData;\r\n\t\r\n\t\tif ( tr ) {\r\n\t\t\tvar id = settings.rowIdFn( data );\r\n\t\r\n\t\t\tif ( id ) {\r\n\t\t\t\ttr.id = id;\r\n\t\t\t}\r\n\t\r\n\t\t\tif ( data.DT_RowClass ) {\r\n\t\t\t\t// Remove any classes added by DT_RowClass before\r\n\t\t\t\tvar a = data.DT_RowClass.split(' ');\r\n\t\t\t\trow.__rowc = row.__rowc ?\r\n\t\t\t\t\t_unique( row.__rowc.concat( a ) ) :\r\n\t\t\t\t\ta;\r\n\t\r\n\t\t\t\t$(tr)\r\n\t\t\t\t\t.removeClass( row.__rowc.join(' ') )\r\n\t\t\t\t\t.addClass( data.DT_RowClass );\r\n\t\t\t}\r\n\t\r\n\t\t\tif ( data.DT_RowAttr ) {\r\n\t\t\t\t$(tr).attr( data.DT_RowAttr );\r\n\t\t\t}\r\n\t\r\n\t\t\tif ( data.DT_RowData ) {\r\n\t\t\t\t$(tr).data( data.DT_RowData );\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Create the HTML header for the table\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnBuildHead( oSettings )\r\n\t{\r\n\t\tvar i, ien, cell, row, column;\r\n\t\tvar thead = oSettings.nTHead;\r\n\t\tvar tfoot = oSettings.nTFoot;\r\n\t\tvar createHeader = $('th, td', thead).length === 0;\r\n\t\tvar classes = oSettings.oClasses;\r\n\t\tvar columns = oSettings.aoColumns;\r\n\t\r\n\t\tif ( createHeader ) {\r\n\t\t\trow = $('<tr/>').appendTo( thead );\r\n\t\t}\r\n\t\r\n\t\tfor ( i=0, ien=columns.length ; i<ien ; i++ ) {\r\n\t\t\tcolumn = columns[i];\r\n\t\t\tcell = $( column.nTh ).addClass( column.sClass );\r\n\t\r\n\t\t\tif ( createHeader ) {\r\n\t\t\t\tcell.appendTo( row );\r\n\t\t\t}\r\n\t\r\n\t\t\t// 1.11 move into sorting\r\n\t\t\tif ( oSettings.oFeatures.bSort ) {\r\n\t\t\t\tcell.addClass( column.sSortingClass );\r\n\t\r\n\t\t\t\tif ( column.bSortable !== false ) {\r\n\t\t\t\t\tcell\r\n\t\t\t\t\t\t.attr( 'tabindex', oSettings.iTabIndex )\r\n\t\t\t\t\t\t.attr( 'aria-controls', oSettings.sTableId );\r\n\t\r\n\t\t\t\t\t_fnSortAttachListener( oSettings, column.nTh, i );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\r\n\t\t\tif ( column.sTitle != cell[0].innerHTML ) {\r\n\t\t\t\tcell.html( column.sTitle );\r\n\t\t\t}\r\n\t\r\n\t\t\t_fnRenderer( oSettings, 'header' )(\r\n\t\t\t\toSettings, cell, column, classes\r\n\t\t\t);\r\n\t\t}\r\n\t\r\n\t\tif ( createHeader ) {\r\n\t\t\t_fnDetectHeader( oSettings.aoHeader, thead );\r\n\t\t}\r\n\t\t\r\n\t\t/* ARIA role for the rows */\r\n\t \t$(thead).find('>tr').attr('role', 'row');\r\n\t\r\n\t\t/* Deal with the footer - add classes if required */\r\n\t\t$(thead).find('>tr>th, >tr>td').addClass( classes.sHeaderTH );\r\n\t\t$(tfoot).find('>tr>th, >tr>td').addClass( classes.sFooterTH );\r\n\t\r\n\t\t// Cache the footer cells. Note that we only take the cells from the first\r\n\t\t// row in the footer. If there is more than one row the user wants to\r\n\t\t// interact with, they need to use the table().foot() method. Note also this\r\n\t\t// allows cells to be used for multiple columns using colspan\r\n\t\tif ( tfoot !== null ) {\r\n\t\t\tvar cells = oSettings.aoFooter[0];\r\n\t\r\n\t\t\tfor ( i=0, ien=cells.length ; i<ien ; i++ ) {\r\n\t\t\t\tcolumn = columns[i];\r\n\t\t\t\tcolumn.nTf = cells[i].cell;\r\n\t\r\n\t\t\t\tif ( column.sClass ) {\r\n\t\t\t\t\t$(column.nTf).addClass( column.sClass );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Draw the header (or footer) element based on the column visibility states. The\r\n\t * methodology here is to use the layout array from _fnDetectHeader, modified for\r\n\t * the instantaneous column visibility, to construct the new layout. The grid is\r\n\t * traversed over cell at a time in a rows x columns grid fashion, although each\r\n\t * cell insert can cover multiple elements in the grid - which is tracks using the\r\n\t * aApplied array. Cell inserts in the grid will only occur where there isn't\r\n\t * already a cell in that position.\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @param array {objects} aoSource Layout array from _fnDetectHeader\r\n\t * @param {boolean} [bIncludeHidden=false] If true then include the hidden columns in the calc,\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnDrawHead( oSettings, aoSource, bIncludeHidden )\r\n\t{\r\n\t\tvar i, iLen, j, jLen, k, kLen, n, nLocalTr;\r\n\t\tvar aoLocal = [];\r\n\t\tvar aApplied = [];\r\n\t\tvar iColumns = oSettings.aoColumns.length;\r\n\t\tvar iRowspan, iColspan;\r\n\t\r\n\t\tif ( ! aoSource )\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\t\r\n\t\tif ( bIncludeHidden === undefined )\r\n\t\t{\r\n\t\t\tbIncludeHidden = false;\r\n\t\t}\r\n\t\r\n\t\t/* Make a copy of the master layout array, but without the visible columns in it */\r\n\t\tfor ( i=0, iLen=aoSource.length ; i<iLen ; i++ )\r\n\t\t{\r\n\t\t\taoLocal[i] = aoSource[i].slice();\r\n\t\t\taoLocal[i].nTr = aoSource[i].nTr;\r\n\t\r\n\t\t\t/* Remove any columns which are currently hidden */\r\n\t\t\tfor ( j=iColumns-1 ; j>=0 ; j-- )\r\n\t\t\t{\r\n\t\t\t\tif ( !oSettings.aoColumns[j].bVisible && !bIncludeHidden )\r\n\t\t\t\t{\r\n\t\t\t\t\taoLocal[i].splice( j, 1 );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\r\n\t\t\t/* Prep the applied array - it needs an element for each row */\r\n\t\t\taApplied.push( [] );\r\n\t\t}\r\n\t\r\n\t\tfor ( i=0, iLen=aoLocal.length ; i<iLen ; i++ )\r\n\t\t{\r\n\t\t\tnLocalTr = aoLocal[i].nTr;\r\n\t\r\n\t\t\t/* All cells are going to be replaced, so empty out the row */\r\n\t\t\tif ( nLocalTr )\r\n\t\t\t{\r\n\t\t\t\twhile( (n = nLocalTr.firstChild) )\r\n\t\t\t\t{\r\n\t\t\t\t\tnLocalTr.removeChild( n );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\r\n\t\t\tfor ( j=0, jLen=aoLocal[i].length ; j<jLen ; j++ )\r\n\t\t\t{\r\n\t\t\t\tiRowspan = 1;\r\n\t\t\t\tiColspan = 1;\r\n\t\r\n\t\t\t\t/* Check to see if there is already a cell (row/colspan) covering our target\r\n\t\t\t\t * insert point. If there is, then there is nothing to do.\r\n\t\t\t\t */\r\n\t\t\t\tif ( aApplied[i][j] === undefined )\r\n\t\t\t\t{\r\n\t\t\t\t\tnLocalTr.appendChild( aoLocal[i][j].cell );\r\n\t\t\t\t\taApplied[i][j] = 1;\r\n\t\r\n\t\t\t\t\t/* Expand the cell to cover as many rows as needed */\r\n\t\t\t\t\twhile ( aoLocal[i+iRowspan] !== undefined &&\r\n\t\t\t\t\t aoLocal[i][j].cell == aoLocal[i+iRowspan][j].cell )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\taApplied[i+iRowspan][j] = 1;\r\n\t\t\t\t\t\tiRowspan++;\r\n\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\t/* Expand the cell to cover as many columns as needed */\r\n\t\t\t\t\twhile ( aoLocal[i][j+iColspan] !== undefined &&\r\n\t\t\t\t\t aoLocal[i][j].cell == aoLocal[i][j+iColspan].cell )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t/* Must update the applied array over the rows for the columns */\r\n\t\t\t\t\t\tfor ( k=0 ; k<iRowspan ; k++ )\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\taApplied[i+k][j+iColspan] = 1;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tiColspan++;\r\n\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\t/* Do the actual expansion in the DOM */\r\n\t\t\t\t\t$(aoLocal[i][j].cell)\r\n\t\t\t\t\t\t.attr('rowspan', iRowspan)\r\n\t\t\t\t\t\t.attr('colspan', iColspan);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Insert the required TR nodes into the table for display\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnDraw( oSettings )\r\n\t{\r\n\t\t/* Provide a pre-callback function which can be used to cancel the draw is false is returned */\r\n\t\tvar aPreDraw = _fnCallbackFire( oSettings, 'aoPreDrawCallback', 'preDraw', [oSettings] );\r\n\t\tif ( $.inArray( false, aPreDraw ) !== -1 )\r\n\t\t{\r\n\t\t\t_fnProcessingDisplay( oSettings, false );\r\n\t\t\treturn;\r\n\t\t}\r\n\t\r\n\t\tvar i, iLen, n;\r\n\t\tvar anRows = [];\r\n\t\tvar iRowCount = 0;\r\n\t\tvar asStripeClasses = oSettings.asStripeClasses;\r\n\t\tvar iStripes = asStripeClasses.length;\r\n\t\tvar iOpenRows = oSettings.aoOpenRows.length;\r\n\t\tvar oLang = oSettings.oLanguage;\r\n\t\tvar iInitDisplayStart = oSettings.iInitDisplayStart;\r\n\t\tvar bServerSide = _fnDataSource( oSettings ) == 'ssp';\r\n\t\tvar aiDisplay = oSettings.aiDisplay;\r\n\t\r\n\t\toSettings.bDrawing = true;\r\n\t\r\n\t\t/* Check and see if we have an initial draw position from state saving */\r\n\t\tif ( iInitDisplayStart !== undefined && iInitDisplayStart !== -1 )\r\n\t\t{\r\n\t\t\toSettings._iDisplayStart = bServerSide ?\r\n\t\t\t\tiInitDisplayStart :\r\n\t\t\t\tiInitDisplayStart >= oSettings.fnRecordsDisplay() ?\r\n\t\t\t\t\t0 :\r\n\t\t\t\t\tiInitDisplayStart;\r\n\t\r\n\t\t\toSettings.iInitDisplayStart = -1;\r\n\t\t}\r\n\t\r\n\t\tvar iDisplayStart = oSettings._iDisplayStart;\r\n\t\tvar iDisplayEnd = oSettings.fnDisplayEnd();\r\n\t\r\n\t\t/* Server-side processing draw intercept */\r\n\t\tif ( oSettings.bDeferLoading )\r\n\t\t{\r\n\t\t\toSettings.bDeferLoading = false;\r\n\t\t\toSettings.iDraw++;\r\n\t\t\t_fnProcessingDisplay( oSettings, false );\r\n\t\t}\r\n\t\telse if ( !bServerSide )\r\n\t\t{\r\n\t\t\toSettings.iDraw++;\r\n\t\t}\r\n\t\telse if ( !oSettings.bDestroying && !_fnAjaxUpdate( oSettings ) )\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\t\r\n\t\tif ( aiDisplay.length !== 0 )\r\n\t\t{\r\n\t\t\tvar iStart = bServerSide ? 0 : iDisplayStart;\r\n\t\t\tvar iEnd = bServerSide ? oSettings.aoData.length : iDisplayEnd;\r\n\t\r\n\t\t\tfor ( var j=iStart ; j<iEnd ; j++ )\r\n\t\t\t{\r\n\t\t\t\tvar iDataIndex = aiDisplay[j];\r\n\t\t\t\tvar aoData = oSettings.aoData[ iDataIndex ];\r\n\t\t\t\tif ( aoData.nTr === null )\r\n\t\t\t\t{\r\n\t\t\t\t\t_fnCreateTr( oSettings, iDataIndex );\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\tvar nRow = aoData.nTr;\r\n\t\r\n\t\t\t\t/* Remove the old striping classes and then add the new one */\r\n\t\t\t\tif ( iStripes !== 0 )\r\n\t\t\t\t{\r\n\t\t\t\t\tvar sStripe = asStripeClasses[ iRowCount % iStripes ];\r\n\t\t\t\t\tif ( aoData._sRowStripe != sStripe )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$(nRow).removeClass( aoData._sRowStripe ).addClass( sStripe );\r\n\t\t\t\t\t\taoData._sRowStripe = sStripe;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t// Row callback functions - might want to manipulate the row\r\n\t\t\t\t// iRowCount and j are not currently documented. Are they at all\r\n\t\t\t\t// useful?\r\n\t\t\t\t_fnCallbackFire( oSettings, 'aoRowCallback', null,\r\n\t\t\t\t\t[nRow, aoData._aData, iRowCount, j, iDataIndex] );\r\n\t\r\n\t\t\t\tanRows.push( nRow );\r\n\t\t\t\tiRowCount++;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t/* Table is empty - create a row with an empty message in it */\r\n\t\t\tvar sZero = oLang.sZeroRecords;\r\n\t\t\tif ( oSettings.iDraw == 1 && _fnDataSource( oSettings ) == 'ajax' )\r\n\t\t\t{\r\n\t\t\t\tsZero = oLang.sLoadingRecords;\r\n\t\t\t}\r\n\t\t\telse if ( oLang.sEmptyTable && oSettings.fnRecordsTotal() === 0 )\r\n\t\t\t{\r\n\t\t\t\tsZero = oLang.sEmptyTable;\r\n\t\t\t}\r\n\t\r\n\t\t\tanRows[ 0 ] = $( '<tr/>', { 'class': iStripes ? asStripeClasses[0] : '' } )\r\n\t\t\t\t.append( $('<td />', {\r\n\t\t\t\t\t'valign': 'top',\r\n\t\t\t\t\t'colSpan': _fnVisbleColumns( oSettings ),\r\n\t\t\t\t\t'class': oSettings.oClasses.sRowEmpty\r\n\t\t\t\t} ).html( sZero ) )[0];\r\n\t\t}\r\n\t\r\n\t\t/* Header and footer callbacks */\r\n\t\t_fnCallbackFire( oSettings, 'aoHeaderCallback', 'header', [ $(oSettings.nTHead).children('tr')[0],\r\n\t\t\t_fnGetDataMaster( oSettings ), iDisplayStart, iDisplayEnd, aiDisplay ] );\r\n\t\r\n\t\t_fnCallbackFire( oSettings, 'aoFooterCallback', 'footer', [ $(oSettings.nTFoot).children('tr')[0],\r\n\t\t\t_fnGetDataMaster( oSettings ), iDisplayStart, iDisplayEnd, aiDisplay ] );\r\n\t\r\n\t\tvar body = $(oSettings.nTBody);\r\n\t\r\n\t\tbody.children().detach();\r\n\t\tbody.append( $(anRows) );\r\n\t\r\n\t\t/* Call all required callback functions for the end of a draw */\r\n\t\t_fnCallbackFire( oSettings, 'aoDrawCallback', 'draw', [oSettings] );\r\n\t\r\n\t\t/* Draw is complete, sorting and filtering must be as well */\r\n\t\toSettings.bSorted = false;\r\n\t\toSettings.bFiltered = false;\r\n\t\toSettings.bDrawing = false;\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Redraw the table - taking account of the various features which are enabled\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @param {boolean} [holdPosition] Keep the current paging position. By default\r\n\t * the paging is reset to the first page\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnReDraw( settings, holdPosition )\r\n\t{\r\n\t\tvar\r\n\t\t\tfeatures = settings.oFeatures,\r\n\t\t\tsort = features.bSort,\r\n\t\t\tfilter = features.bFilter;\r\n\t\r\n\t\tif ( sort ) {\r\n\t\t\t_fnSort( settings );\r\n\t\t}\r\n\t\r\n\t\tif ( filter ) {\r\n\t\t\t_fnFilterComplete( settings, settings.oPreviousSearch );\r\n\t\t}\r\n\t\telse {\r\n\t\t\t// No filtering, so we want to just use the display master\r\n\t\t\tsettings.aiDisplay = settings.aiDisplayMaster.slice();\r\n\t\t}\r\n\t\r\n\t\tif ( holdPosition !== true ) {\r\n\t\t\tsettings._iDisplayStart = 0;\r\n\t\t}\r\n\t\r\n\t\t// Let any modules know about the draw hold position state (used by\r\n\t\t// scrolling internally)\r\n\t\tsettings._drawHold = holdPosition;\r\n\t\r\n\t\t_fnDraw( settings );\r\n\t\r\n\t\tsettings._drawHold = false;\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Add the options to the page HTML for the table\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnAddOptionsHtml ( oSettings )\r\n\t{\r\n\t\tvar classes = oSettings.oClasses;\r\n\t\tvar table = $(oSettings.nTable);\r\n\t\tvar holding = $('<div/>').insertBefore( table ); // Holding element for speed\r\n\t\tvar features = oSettings.oFeatures;\r\n\t\r\n\t\t// All DataTables are wrapped in a div\r\n\t\tvar insert = $('<div/>', {\r\n\t\t\tid: oSettings.sTableId+'_wrapper',\r\n\t\t\t'class': classes.sWrapper + (oSettings.nTFoot ? '' : ' '+classes.sNoFooter)\r\n\t\t} );\r\n\t\r\n\t\toSettings.nHolding = holding[0];\r\n\t\toSettings.nTableWrapper = insert[0];\r\n\t\toSettings.nTableReinsertBefore = oSettings.nTable.nextSibling;\r\n\t\r\n\t\t/* Loop over the user set positioning and place the elements as needed */\r\n\t\tvar aDom = oSettings.sDom.split('');\r\n\t\tvar featureNode, cOption, nNewNode, cNext, sAttr, j;\r\n\t\tfor ( var i=0 ; i<aDom.length ; i++ )\r\n\t\t{\r\n\t\t\tfeatureNode = null;\r\n\t\t\tcOption = aDom[i];\r\n\t\r\n\t\t\tif ( cOption == '<' )\r\n\t\t\t{\r\n\t\t\t\t/* New container div */\r\n\t\t\t\tnNewNode = $('<div/>')[0];\r\n\t\r\n\t\t\t\t/* Check to see if we should append an id and/or a class name to the container */\r\n\t\t\t\tcNext = aDom[i+1];\r\n\t\t\t\tif ( cNext == \"'\" || cNext == '\"' )\r\n\t\t\t\t{\r\n\t\t\t\t\tsAttr = \"\";\r\n\t\t\t\t\tj = 2;\r\n\t\t\t\t\twhile ( aDom[i+j] != cNext )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tsAttr += aDom[i+j];\r\n\t\t\t\t\t\tj++;\r\n\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\t/* Replace jQuery UI constants @todo depreciated */\r\n\t\t\t\t\tif ( sAttr == \"H\" )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tsAttr = classes.sJUIHeader;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if ( sAttr == \"F\" )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tsAttr = classes.sJUIFooter;\r\n\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\t/* The attribute can be in the format of \"#id.class\", \"#id\" or \"class\" This logic\r\n\t\t\t\t\t * breaks the string into parts and applies them as needed\r\n\t\t\t\t\t */\r\n\t\t\t\t\tif ( sAttr.indexOf('.') != -1 )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tvar aSplit = sAttr.split('.');\r\n\t\t\t\t\t\tnNewNode.id = aSplit[0].substr(1, aSplit[0].length-1);\r\n\t\t\t\t\t\tnNewNode.className = aSplit[1];\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if ( sAttr.charAt(0) == \"#\" )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tnNewNode.id = sAttr.substr(1, sAttr.length-1);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tnNewNode.className = sAttr;\r\n\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\ti += j; /* Move along the position array */\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\tinsert.append( nNewNode );\r\n\t\t\t\tinsert = $(nNewNode);\r\n\t\t\t}\r\n\t\t\telse if ( cOption == '>' )\r\n\t\t\t{\r\n\t\t\t\t/* End container div */\r\n\t\t\t\tinsert = insert.parent();\r\n\t\t\t}\r\n\t\t\t// @todo Move options into their own plugins?\r\n\t\t\telse if ( cOption == 'l' && features.bPaginate && features.bLengthChange )\r\n\t\t\t{\r\n\t\t\t\t/* Length */\r\n\t\t\t\tfeatureNode = _fnFeatureHtmlLength( oSettings );\r\n\t\t\t}\r\n\t\t\telse if ( cOption == 'f' && features.bFilter )\r\n\t\t\t{\r\n\t\t\t\t/* Filter */\r\n\t\t\t\tfeatureNode = _fnFeatureHtmlFilter( oSettings );\r\n\t\t\t}\r\n\t\t\telse if ( cOption == 'r' && features.bProcessing )\r\n\t\t\t{\r\n\t\t\t\t/* pRocessing */\r\n\t\t\t\tfeatureNode = _fnFeatureHtmlProcessing( oSettings );\r\n\t\t\t}\r\n\t\t\telse if ( cOption == 't' )\r\n\t\t\t{\r\n\t\t\t\t/* Table */\r\n\t\t\t\tfeatureNode = _fnFeatureHtmlTable( oSettings );\r\n\t\t\t}\r\n\t\t\telse if ( cOption == 'i' && features.bInfo )\r\n\t\t\t{\r\n\t\t\t\t/* Info */\r\n\t\t\t\tfeatureNode = _fnFeatureHtmlInfo( oSettings );\r\n\t\t\t}\r\n\t\t\telse if ( cOption == 'p' && features.bPaginate )\r\n\t\t\t{\r\n\t\t\t\t/* Pagination */\r\n\t\t\t\tfeatureNode = _fnFeatureHtmlPaginate( oSettings );\r\n\t\t\t}\r\n\t\t\telse if ( DataTable.ext.feature.length !== 0 )\r\n\t\t\t{\r\n\t\t\t\t/* Plug-in features */\r\n\t\t\t\tvar aoFeatures = DataTable.ext.feature;\r\n\t\t\t\tfor ( var k=0, kLen=aoFeatures.length ; k<kLen ; k++ )\r\n\t\t\t\t{\r\n\t\t\t\t\tif ( cOption == aoFeatures[k].cFeature )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tfeatureNode = aoFeatures[k].fnInit( oSettings );\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\r\n\t\t\t/* Add to the 2D features array */\r\n\t\t\tif ( featureNode )\r\n\t\t\t{\r\n\t\t\t\tvar aanFeatures = oSettings.aanFeatures;\r\n\t\r\n\t\t\t\tif ( ! aanFeatures[cOption] )\r\n\t\t\t\t{\r\n\t\t\t\t\taanFeatures[cOption] = [];\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\taanFeatures[cOption].push( featureNode );\r\n\t\t\t\tinsert.append( featureNode );\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\t/* Built our DOM structure - replace the holding div with what we want */\r\n\t\tholding.replaceWith( insert );\r\n\t\toSettings.nHolding = null;\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Use the DOM source to create up an array of header cells. The idea here is to\r\n\t * create a layout grid (array) of rows x columns, which contains a reference\r\n\t * to the cell that that point in the grid (regardless of col/rowspan), such that\r\n\t * any column / row could be removed and the new grid constructed\r\n\t * @param array {object} aLayout Array to store the calculated layout in\r\n\t * @param {node} nThead The header/footer element for the table\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnDetectHeader ( aLayout, nThead )\r\n\t{\r\n\t\tvar nTrs = $(nThead).children('tr');\r\n\t\tvar nTr, nCell;\r\n\t\tvar i, k, l, iLen, jLen, iColShifted, iColumn, iColspan, iRowspan;\r\n\t\tvar bUnique;\r\n\t\tvar fnShiftCol = function ( a, i, j ) {\r\n\t\t\tvar k = a[i];\r\n\t while ( k[j] ) {\r\n\t\t\t\tj++;\r\n\t\t\t}\r\n\t\t\treturn j;\r\n\t\t};\r\n\t\r\n\t\taLayout.splice( 0, aLayout.length );\r\n\t\r\n\t\t/* We know how many rows there are in the layout - so prep it */\r\n\t\tfor ( i=0, iLen=nTrs.length ; i<iLen ; i++ )\r\n\t\t{\r\n\t\t\taLayout.push( [] );\r\n\t\t}\r\n\t\r\n\t\t/* Calculate a layout array */\r\n\t\tfor ( i=0, iLen=nTrs.length ; i<iLen ; i++ )\r\n\t\t{\r\n\t\t\tnTr = nTrs[i];\r\n\t\t\tiColumn = 0;\r\n\t\r\n\t\t\t/* For every cell in the row... */\r\n\t\t\tnCell = nTr.firstChild;\r\n\t\t\twhile ( nCell ) {\r\n\t\t\t\tif ( nCell.nodeName.toUpperCase() == \"TD\" ||\r\n\t\t\t\t nCell.nodeName.toUpperCase() == \"TH\" )\r\n\t\t\t\t{\r\n\t\t\t\t\t/* Get the col and rowspan attributes from the DOM and sanitise them */\r\n\t\t\t\t\tiColspan = nCell.getAttribute('colspan') * 1;\r\n\t\t\t\t\tiRowspan = nCell.getAttribute('rowspan') * 1;\r\n\t\t\t\t\tiColspan = (!iColspan || iColspan===0 || iColspan===1) ? 1 : iColspan;\r\n\t\t\t\t\tiRowspan = (!iRowspan || iRowspan===0 || iRowspan===1) ? 1 : iRowspan;\r\n\t\r\n\t\t\t\t\t/* There might be colspan cells already in this row, so shift our target\r\n\t\t\t\t\t * accordingly\r\n\t\t\t\t\t */\r\n\t\t\t\t\tiColShifted = fnShiftCol( aLayout, i, iColumn );\r\n\t\r\n\t\t\t\t\t/* Cache calculation for unique columns */\r\n\t\t\t\t\tbUnique = iColspan === 1 ? true : false;\r\n\t\r\n\t\t\t\t\t/* If there is col / rowspan, copy the information into the layout grid */\r\n\t\t\t\t\tfor ( l=0 ; l<iColspan ; l++ )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tfor ( k=0 ; k<iRowspan ; k++ )\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\taLayout[i+k][iColShifted+l] = {\r\n\t\t\t\t\t\t\t\t\"cell\": nCell,\r\n\t\t\t\t\t\t\t\t\"unique\": bUnique\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\taLayout[i+k].nTr = nTr;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tnCell = nCell.nextSibling;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Get an array of unique th elements, one for each column\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @param {node} nHeader automatically detect the layout from this node - optional\r\n\t * @param {array} aLayout thead/tfoot layout from _fnDetectHeader - optional\r\n\t * @returns array {node} aReturn list of unique th's\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnGetUniqueThs ( oSettings, nHeader, aLayout )\r\n\t{\r\n\t\tvar aReturn = [];\r\n\t\tif ( !aLayout )\r\n\t\t{\r\n\t\t\taLayout = oSettings.aoHeader;\r\n\t\t\tif ( nHeader )\r\n\t\t\t{\r\n\t\t\t\taLayout = [];\r\n\t\t\t\t_fnDetectHeader( aLayout, nHeader );\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\tfor ( var i=0, iLen=aLayout.length ; i<iLen ; i++ )\r\n\t\t{\r\n\t\t\tfor ( var j=0, jLen=aLayout[i].length ; j<jLen ; j++ )\r\n\t\t\t{\r\n\t\t\t\tif ( aLayout[i][j].unique &&\r\n\t\t\t\t\t (!aReturn[j] || !oSettings.bSortCellsTop) )\r\n\t\t\t\t{\r\n\t\t\t\t\taReturn[j] = aLayout[i][j].cell;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\treturn aReturn;\r\n\t}\r\n\t\r\n\t/**\r\n\t * Create an Ajax call based on the table's settings, taking into account that\r\n\t * parameters can have multiple forms, and backwards compatibility.\r\n\t *\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @param {array} data Data to send to the server, required by\r\n\t * DataTables - may be augmented by developer callbacks\r\n\t * @param {function} fn Callback function to run when data is obtained\r\n\t */\r\n\tfunction _fnBuildAjax( oSettings, data, fn )\r\n\t{\r\n\t\t// Compatibility with 1.9-, allow fnServerData and event to manipulate\r\n\t\t_fnCallbackFire( oSettings, 'aoServerParams', 'serverParams', [data] );\r\n\t\r\n\t\t// Convert to object based for 1.10+ if using the old array scheme which can\r\n\t\t// come from server-side processing or serverParams\r\n\t\tif ( data && $.isArray(data) ) {\r\n\t\t\tvar tmp = {};\r\n\t\t\tvar rbracket = /(.*?)\\[\\]$/;\r\n\t\r\n\t\t\t$.each( data, function (key, val) {\r\n\t\t\t\tvar match = val.name.match(rbracket);\r\n\t\r\n\t\t\t\tif ( match ) {\r\n\t\t\t\t\t// Support for arrays\r\n\t\t\t\t\tvar name = match[0];\r\n\t\r\n\t\t\t\t\tif ( ! tmp[ name ] ) {\r\n\t\t\t\t\t\ttmp[ name ] = [];\r\n\t\t\t\t\t}\r\n\t\t\t\t\ttmp[ name ].push( val.value );\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\ttmp[val.name] = val.value;\r\n\t\t\t\t}\r\n\t\t\t} );\r\n\t\t\tdata = tmp;\r\n\t\t}\r\n\t\r\n\t\tvar ajaxData;\r\n\t\tvar ajax = oSettings.ajax;\r\n\t\tvar instance = oSettings.oInstance;\r\n\t\tvar callback = function ( json ) {\r\n\t\t\t_fnCallbackFire( oSettings, null, 'xhr', [oSettings, json, oSettings.jqXHR] );\r\n\t\t\tfn( json );\r\n\t\t};\r\n\t\r\n\t\tif ( $.isPlainObject( ajax ) && ajax.data )\r\n\t\t{\r\n\t\t\tajaxData = ajax.data;\r\n\t\r\n\t\t\tvar newData = typeof ajaxData === 'function' ?\r\n\t\t\t\tajaxData( data, oSettings ) : // fn can manipulate data or return\r\n\t\t\t\tajaxData; // an object object or array to merge\r\n\t\r\n\t\t\t// If the function returned something, use that alone\r\n\t\t\tdata = typeof ajaxData === 'function' && newData ?\r\n\t\t\t\tnewData :\r\n\t\t\t\t$.extend( true, data, newData );\r\n\t\r\n\t\t\t// Remove the data property as we've resolved it already and don't want\r\n\t\t\t// jQuery to do it again (it is restored at the end of the function)\r\n\t\t\tdelete ajax.data;\r\n\t\t}\r\n\t\r\n\t\tvar baseAjax = {\r\n\t\t\t\"data\": data,\r\n\t\t\t\"success\": function (json) {\r\n\t\t\t\tvar error = json.error || json.sError;\r\n\t\t\t\tif ( error ) {\r\n\t\t\t\t\t_fnLog( oSettings, 0, error );\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\toSettings.json = json;\r\n\t\t\t\tcallback( json );\r\n\t\t\t},\r\n\t\t\t\"dataType\": \"json\",\r\n\t\t\t\"cache\": false,\r\n\t\t\t\"type\": oSettings.sServerMethod,\r\n\t\t\t\"error\": function (xhr, error, thrown) {\r\n\t\t\t\tvar ret = _fnCallbackFire( oSettings, null, 'xhr', [oSettings, null, oSettings.jqXHR] );\r\n\t\r\n\t\t\t\tif ( $.inArray( true, ret ) === -1 ) {\r\n\t\t\t\t\tif ( error == \"parsererror\" ) {\r\n\t\t\t\t\t\t_fnLog( oSettings, 0, 'Invalid JSON response', 1 );\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if ( xhr.readyState === 4 ) {\r\n\t\t\t\t\t\t_fnLog( oSettings, 0, 'Ajax error', 7 );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t_fnProcessingDisplay( oSettings, false );\r\n\t\t\t}\r\n\t\t};\r\n\t\r\n\t\t// Store the data submitted for the API\r\n\t\toSettings.oAjaxData = data;\r\n\t\r\n\t\t// Allow plug-ins and external processes to modify the data\r\n\t\t_fnCallbackFire( oSettings, null, 'preXhr', [oSettings, data] );\r\n\t\r\n\t\tif ( oSettings.fnServerData )\r\n\t\t{\r\n\t\t\t// DataTables 1.9- compatibility\r\n\t\t\toSettings.fnServerData.call( instance,\r\n\t\t\t\toSettings.sAjaxSource,\r\n\t\t\t\t$.map( data, function (val, key) { // Need to convert back to 1.9 trad format\r\n\t\t\t\t\treturn { name: key, value: val };\r\n\t\t\t\t} ),\r\n\t\t\t\tcallback,\r\n\t\t\t\toSettings\r\n\t\t\t);\r\n\t\t}\r\n\t\telse if ( oSettings.sAjaxSource || typeof ajax === 'string' )\r\n\t\t{\r\n\t\t\t// DataTables 1.9- compatibility\r\n\t\t\toSettings.jqXHR = $.ajax( $.extend( baseAjax, {\r\n\t\t\t\turl: ajax || oSettings.sAjaxSource\r\n\t\t\t} ) );\r\n\t\t}\r\n\t\telse if ( typeof ajax === 'function' )\r\n\t\t{\r\n\t\t\t// Is a function - let the caller define what needs to be done\r\n\t\t\toSettings.jqXHR = ajax.call( instance, data, callback, oSettings );\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t// Object to extend the base settings\r\n\t\t\toSettings.jqXHR = $.ajax( $.extend( baseAjax, ajax ) );\r\n\t\r\n\t\t\t// Restore for next time around\r\n\t\t\tajax.data = ajaxData;\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Update the table using an Ajax call\r\n\t * @param {object} settings dataTables settings object\r\n\t * @returns {boolean} Block the table drawing or not\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnAjaxUpdate( settings )\r\n\t{\r\n\t\tif ( settings.bAjaxDataGet ) {\r\n\t\t\tsettings.iDraw++;\r\n\t\t\t_fnProcessingDisplay( settings, true );\r\n\t\r\n\t\t\t_fnBuildAjax(\r\n\t\t\t\tsettings,\r\n\t\t\t\t_fnAjaxParameters( settings ),\r\n\t\t\t\tfunction(json) {\r\n\t\t\t\t\t_fnAjaxUpdateDraw( settings, json );\r\n\t\t\t\t}\r\n\t\t\t);\r\n\t\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Build up the parameters in an object needed for a server-side processing\r\n\t * request. Note that this is basically done twice, is different ways - a modern\r\n\t * method which is used by default in DataTables 1.10 which uses objects and\r\n\t * arrays, or the 1.9- method with is name / value pairs. 1.9 method is used if\r\n\t * the sAjaxSource option is used in the initialisation, or the legacyAjax\r\n\t * option is set.\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @returns {bool} block the table drawing or not\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnAjaxParameters( settings )\r\n\t{\r\n\t\tvar\r\n\t\t\tcolumns = settings.aoColumns,\r\n\t\t\tcolumnCount = columns.length,\r\n\t\t\tfeatures = settings.oFeatures,\r\n\t\t\tpreSearch = settings.oPreviousSearch,\r\n\t\t\tpreColSearch = settings.aoPreSearchCols,\r\n\t\t\ti, data = [], dataProp, column, columnSearch,\r\n\t\t\tsort = _fnSortFlatten( settings ),\r\n\t\t\tdisplayStart = settings._iDisplayStart,\r\n\t\t\tdisplayLength = features.bPaginate !== false ?\r\n\t\t\t\tsettings._iDisplayLength :\r\n\t\t\t\t-1;\r\n\t\r\n\t\tvar param = function ( name, value ) {\r\n\t\t\tdata.push( { 'name': name, 'value': value } );\r\n\t\t};\r\n\t\r\n\t\t// DataTables 1.9- compatible method\r\n\t\tparam( 'sEcho', settings.iDraw );\r\n\t\tparam( 'iColumns', columnCount );\r\n\t\tparam( 'sColumns', _pluck( columns, 'sName' ).join(',') );\r\n\t\tparam( 'iDisplayStart', displayStart );\r\n\t\tparam( 'iDisplayLength', displayLength );\r\n\t\r\n\t\t// DataTables 1.10+ method\r\n\t\tvar d = {\r\n\t\t\tdraw: settings.iDraw,\r\n\t\t\tcolumns: [],\r\n\t\t\torder: [],\r\n\t\t\tstart: displayStart,\r\n\t\t\tlength: displayLength,\r\n\t\t\tsearch: {\r\n\t\t\t\tvalue: preSearch.sSearch,\r\n\t\t\t\tregex: preSearch.bRegex\r\n\t\t\t}\r\n\t\t};\r\n\t\r\n\t\tfor ( i=0 ; i<columnCount ; i++ ) {\r\n\t\t\tcolumn = columns[i];\r\n\t\t\tcolumnSearch = preColSearch[i];\r\n\t\t\tdataProp = typeof column.mData==\"function\" ? 'function' : column.mData ;\r\n\t\r\n\t\t\td.columns.push( {\r\n\t\t\t\tdata: dataProp,\r\n\t\t\t\tname: column.sName,\r\n\t\t\t\tsearchable: column.bSearchable,\r\n\t\t\t\torderable: column.bSortable,\r\n\t\t\t\tsearch: {\r\n\t\t\t\t\tvalue: columnSearch.sSearch,\r\n\t\t\t\t\tregex: columnSearch.bRegex\r\n\t\t\t\t}\r\n\t\t\t} );\r\n\t\r\n\t\t\tparam( \"mDataProp_\"+i, dataProp );\r\n\t\r\n\t\t\tif ( features.bFilter ) {\r\n\t\t\t\tparam( 'sSearch_'+i, columnSearch.sSearch );\r\n\t\t\t\tparam( 'bRegex_'+i, columnSearch.bRegex );\r\n\t\t\t\tparam( 'bSearchable_'+i, column.bSearchable );\r\n\t\t\t}\r\n\t\r\n\t\t\tif ( features.bSort ) {\r\n\t\t\t\tparam( 'bSortable_'+i, column.bSortable );\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\tif ( features.bFilter ) {\r\n\t\t\tparam( 'sSearch', preSearch.sSearch );\r\n\t\t\tparam( 'bRegex', preSearch.bRegex );\r\n\t\t}\r\n\t\r\n\t\tif ( features.bSort ) {\r\n\t\t\t$.each( sort, function ( i, val ) {\r\n\t\t\t\td.order.push( { column: val.col, dir: val.dir } );\r\n\t\r\n\t\t\t\tparam( 'iSortCol_'+i, val.col );\r\n\t\t\t\tparam( 'sSortDir_'+i, val.dir );\r\n\t\t\t} );\r\n\t\r\n\t\t\tparam( 'iSortingCols', sort.length );\r\n\t\t}\r\n\t\r\n\t\t// If the legacy.ajax parameter is null, then we automatically decide which\r\n\t\t// form to use, based on sAjaxSource\r\n\t\tvar legacy = DataTable.ext.legacy.ajax;\r\n\t\tif ( legacy === null ) {\r\n\t\t\treturn settings.sAjaxSource ? data : d;\r\n\t\t}\r\n\t\r\n\t\t// Otherwise, if legacy has been specified then we use that to decide on the\r\n\t\t// form\r\n\t\treturn legacy ? data : d;\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Data the data from the server (nuking the old) and redraw the table\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @param {object} json json data return from the server.\r\n\t * @param {string} json.sEcho Tracking flag for DataTables to match requests\r\n\t * @param {int} json.iTotalRecords Number of records in the data set, not accounting for filtering\r\n\t * @param {int} json.iTotalDisplayRecords Number of records in the data set, accounting for filtering\r\n\t * @param {array} json.aaData The data to display on this page\r\n\t * @param {string} [json.sColumns] Column ordering (sName, comma separated)\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnAjaxUpdateDraw ( settings, json )\r\n\t{\r\n\t\t// v1.10 uses camelCase variables, while 1.9 uses Hungarian notation.\r\n\t\t// Support both\r\n\t\tvar compat = function ( old, modern ) {\r\n\t\t\treturn json[old] !== undefined ? json[old] : json[modern];\r\n\t\t};\r\n\t\r\n\t\tvar data = _fnAjaxDataSrc( settings, json );\r\n\t\tvar draw = compat( 'sEcho', 'draw' );\r\n\t\tvar recordsTotal = compat( 'iTotalRecords', 'recordsTotal' );\r\n\t\tvar recordsFiltered = compat( 'iTotalDisplayRecords', 'recordsFiltered' );\r\n\t\r\n\t\tif ( draw ) {\r\n\t\t\t// Protect against out of sequence returns\r\n\t\t\tif ( draw*1 < settings.iDraw ) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tsettings.iDraw = draw * 1;\r\n\t\t}\r\n\t\r\n\t\t_fnClearTable( settings );\r\n\t\tsettings._iRecordsTotal = parseInt(recordsTotal, 10);\r\n\t\tsettings._iRecordsDisplay = parseInt(recordsFiltered, 10);\r\n\t\r\n\t\tfor ( var i=0, ien=data.length ; i<ien ; i++ ) {\r\n\t\t\t_fnAddData( settings, data[i] );\r\n\t\t}\r\n\t\tsettings.aiDisplay = settings.aiDisplayMaster.slice();\r\n\t\r\n\t\tsettings.bAjaxDataGet = false;\r\n\t\t_fnDraw( settings );\r\n\t\r\n\t\tif ( ! settings._bInitComplete ) {\r\n\t\t\t_fnInitComplete( settings, json );\r\n\t\t}\r\n\t\r\n\t\tsettings.bAjaxDataGet = true;\r\n\t\t_fnProcessingDisplay( settings, false );\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Get the data from the JSON data source to use for drawing a table. Using\r\n\t * `_fnGetObjectDataFn` allows the data to be sourced from a property of the\r\n\t * source object, or from a processing function.\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @param {object} json Data source object / array from the server\r\n\t * @return {array} Array of data to use\r\n\t */\r\n\tfunction _fnAjaxDataSrc ( oSettings, json )\r\n\t{\r\n\t\tvar dataSrc = $.isPlainObject( oSettings.ajax ) && oSettings.ajax.dataSrc !== undefined ?\r\n\t\t\toSettings.ajax.dataSrc :\r\n\t\t\toSettings.sAjaxDataProp; // Compatibility with 1.9-.\r\n\t\r\n\t\t// Compatibility with 1.9-. In order to read from aaData, check if the\r\n\t\t// default has been changed, if not, check for aaData\r\n\t\tif ( dataSrc === 'data' ) {\r\n\t\t\treturn json.aaData || json[dataSrc];\r\n\t\t}\r\n\t\r\n\t\treturn dataSrc !== \"\" ?\r\n\t\t\t_fnGetObjectDataFn( dataSrc )( json ) :\r\n\t\t\tjson;\r\n\t}\r\n\t\r\n\t/**\r\n\t * Generate the node required for filtering text\r\n\t * @returns {node} Filter control element\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnFeatureHtmlFilter ( settings )\r\n\t{\r\n\t\tvar classes = settings.oClasses;\r\n\t\tvar tableId = settings.sTableId;\r\n\t\tvar language = settings.oLanguage;\r\n\t\tvar previousSearch = settings.oPreviousSearch;\r\n\t\tvar features = settings.aanFeatures;\r\n\t\tvar input = '<input type=\"search\" class=\"'+classes.sFilterInput+'\"/>';\r\n\t\r\n\t\tvar str = language.sSearch;\r\n\t\tstr = str.match(/_INPUT_/) ?\r\n\t\t\tstr.replace('_INPUT_', input) :\r\n\t\t\tstr+input;\r\n\t\r\n\t\tvar filter = $('<div/>', {\r\n\t\t\t\t'id': ! features.f ? tableId+'_filter' : null,\r\n\t\t\t\t'class': classes.sFilter\r\n\t\t\t} )\r\n\t\t\t.append( $('<label/>' ).append( str ) );\r\n\t\r\n\t\tvar searchFn = function() {\r\n\t\t\t/* Update all other filter input elements for the new display */\r\n\t\t\tvar n = features.f;\r\n\t\t\tvar val = !this.value ? \"\" : this.value; // mental IE8 fix :-(\r\n\t\r\n\t\t\t/* Now do the filter */\r\n\t\t\tif ( val != previousSearch.sSearch ) {\r\n\t\t\t\t_fnFilterComplete( settings, {\r\n\t\t\t\t\t\"sSearch\": val,\r\n\t\t\t\t\t\"bRegex\": previousSearch.bRegex,\r\n\t\t\t\t\t\"bSmart\": previousSearch.bSmart ,\r\n\t\t\t\t\t\"bCaseInsensitive\": previousSearch.bCaseInsensitive\r\n\t\t\t\t} );\r\n\t\r\n\t\t\t\t// Need to redraw, without resorting\r\n\t\t\t\tsettings._iDisplayStart = 0;\r\n\t\t\t\t_fnDraw( settings );\r\n\t\t\t}\r\n\t\t};\r\n\t\r\n\t\tvar searchDelay = settings.searchDelay !== null ?\r\n\t\t\tsettings.searchDelay :\r\n\t\t\t_fnDataSource( settings ) === 'ssp' ?\r\n\t\t\t\t400 :\r\n\t\t\t\t0;\r\n\t\r\n\t\tvar jqFilter = $('input', filter)\r\n\t\t\t.val( previousSearch.sSearch )\r\n\t\t\t.attr( 'placeholder', language.sSearchPlaceholder )\r\n\t\t\t.on(\r\n\t\t\t\t'keyup.DT search.DT input.DT paste.DT cut.DT',\r\n\t\t\t\tsearchDelay ?\r\n\t\t\t\t\t_fnThrottle( searchFn, searchDelay ) :\r\n\t\t\t\t\tsearchFn\r\n\t\t\t)\r\n\t\t\t.on( 'keypress.DT', function(e) {\r\n\t\t\t\t/* Prevent form submission */\r\n\t\t\t\tif ( e.keyCode == 13 ) {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t} )\r\n\t\t\t.attr('aria-controls', tableId);\r\n\t\r\n\t\t// Update the input elements whenever the table is filtered\r\n\t\t$(settings.nTable).on( 'search.dt.DT', function ( ev, s ) {\r\n\t\t\tif ( settings === s ) {\r\n\t\t\t\t// IE9 throws an 'unknown error' if document.activeElement is used\r\n\t\t\t\t// inside an iframe or frame...\r\n\t\t\t\ttry {\r\n\t\t\t\t\tif ( jqFilter[0] !== document.activeElement ) {\r\n\t\t\t\t\t\tjqFilter.val( previousSearch.sSearch );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tcatch ( e ) {}\r\n\t\t\t}\r\n\t\t} );\r\n\t\r\n\t\treturn filter[0];\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Filter the table using both the global filter and column based filtering\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @param {object} oSearch search information\r\n\t * @param {int} [iForce] force a research of the master array (1) or not (undefined or 0)\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnFilterComplete ( oSettings, oInput, iForce )\r\n\t{\r\n\t\tvar oPrevSearch = oSettings.oPreviousSearch;\r\n\t\tvar aoPrevSearch = oSettings.aoPreSearchCols;\r\n\t\tvar fnSaveFilter = function ( oFilter ) {\r\n\t\t\t/* Save the filtering values */\r\n\t\t\toPrevSearch.sSearch = oFilter.sSearch;\r\n\t\t\toPrevSearch.bRegex = oFilter.bRegex;\r\n\t\t\toPrevSearch.bSmart = oFilter.bSmart;\r\n\t\t\toPrevSearch.bCaseInsensitive = oFilter.bCaseInsensitive;\r\n\t\t};\r\n\t\tvar fnRegex = function ( o ) {\r\n\t\t\t// Backwards compatibility with the bEscapeRegex option\r\n\t\t\treturn o.bEscapeRegex !== undefined ? !o.bEscapeRegex : o.bRegex;\r\n\t\t};\r\n\t\r\n\t\t// Resolve any column types that are unknown due to addition or invalidation\r\n\t\t// @todo As per sort - can this be moved into an event handler?\r\n\t\t_fnColumnTypes( oSettings );\r\n\t\r\n\t\t/* In server-side processing all filtering is done by the server, so no point hanging around here */\r\n\t\tif ( _fnDataSource( oSettings ) != 'ssp' )\r\n\t\t{\r\n\t\t\t/* Global filter */\r\n\t\t\t_fnFilter( oSettings, oInput.sSearch, iForce, fnRegex(oInput), oInput.bSmart, oInput.bCaseInsensitive );\r\n\t\t\tfnSaveFilter( oInput );\r\n\t\r\n\t\t\t/* Now do the individual column filter */\r\n\t\t\tfor ( var i=0 ; i<aoPrevSearch.length ; i++ )\r\n\t\t\t{\r\n\t\t\t\t_fnFilterColumn( oSettings, aoPrevSearch[i].sSearch, i, fnRegex(aoPrevSearch[i]),\r\n\t\t\t\t\taoPrevSearch[i].bSmart, aoPrevSearch[i].bCaseInsensitive );\r\n\t\t\t}\r\n\t\r\n\t\t\t/* Custom filtering */\r\n\t\t\t_fnFilterCustom( oSettings );\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tfnSaveFilter( oInput );\r\n\t\t}\r\n\t\r\n\t\t/* Tell the draw function we have been filtering */\r\n\t\toSettings.bFiltered = true;\r\n\t\t_fnCallbackFire( oSettings, null, 'search', [oSettings] );\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Apply custom filtering functions\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnFilterCustom( settings )\r\n\t{\r\n\t\tvar filters = DataTable.ext.search;\r\n\t\tvar displayRows = settings.aiDisplay;\r\n\t\tvar row, rowIdx;\r\n\t\r\n\t\tfor ( var i=0, ien=filters.length ; i<ien ; i++ ) {\r\n\t\t\tvar rows = [];\r\n\t\r\n\t\t\t// Loop over each row and see if it should be included\r\n\t\t\tfor ( var j=0, jen=displayRows.length ; j<jen ; j++ ) {\r\n\t\t\t\trowIdx = displayRows[ j ];\r\n\t\t\t\trow = settings.aoData[ rowIdx ];\r\n\t\r\n\t\t\t\tif ( filters[i]( settings, row._aFilterData, rowIdx, row._aData, j ) ) {\r\n\t\t\t\t\trows.push( rowIdx );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\r\n\t\t\t// So the array reference doesn't break set the results into the\r\n\t\t\t// existing array\r\n\t\t\tdisplayRows.length = 0;\r\n\t\t\t$.merge( displayRows, rows );\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Filter the table on a per-column basis\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @param {string} sInput string to filter on\r\n\t * @param {int} iColumn column to filter\r\n\t * @param {bool} bRegex treat search string as a regular expression or not\r\n\t * @param {bool} bSmart use smart filtering or not\r\n\t * @param {bool} bCaseInsensitive Do case insenstive matching or not\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnFilterColumn ( settings, searchStr, colIdx, regex, smart, caseInsensitive )\r\n\t{\r\n\t\tif ( searchStr === '' ) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\r\n\t\tvar data;\r\n\t\tvar out = [];\r\n\t\tvar display = settings.aiDisplay;\r\n\t\tvar rpSearch = _fnFilterCreateSearch( searchStr, regex, smart, caseInsensitive );\r\n\t\r\n\t\tfor ( var i=0 ; i<display.length ; i++ ) {\r\n\t\t\tdata = settings.aoData[ display[i] ]._aFilterData[ colIdx ];\r\n\t\r\n\t\t\tif ( rpSearch.test( data ) ) {\r\n\t\t\t\tout.push( display[i] );\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\tsettings.aiDisplay = out;\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Filter the data table based on user input and draw the table\r\n\t * @param {object} settings dataTables settings object\r\n\t * @param {string} input string to filter on\r\n\t * @param {int} force optional - force a research of the master array (1) or not (undefined or 0)\r\n\t * @param {bool} regex treat as a regular expression or not\r\n\t * @param {bool} smart perform smart filtering or not\r\n\t * @param {bool} caseInsensitive Do case insenstive matching or not\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnFilter( settings, input, force, regex, smart, caseInsensitive )\r\n\t{\r\n\t\tvar rpSearch = _fnFilterCreateSearch( input, regex, smart, caseInsensitive );\r\n\t\tvar prevSearch = settings.oPreviousSearch.sSearch;\r\n\t\tvar displayMaster = settings.aiDisplayMaster;\r\n\t\tvar display, invalidated, i;\r\n\t\tvar filtered = [];\r\n\t\r\n\t\t// Need to take account of custom filtering functions - always filter\r\n\t\tif ( DataTable.ext.search.length !== 0 ) {\r\n\t\t\tforce = true;\r\n\t\t}\r\n\t\r\n\t\t// Check if any of the rows were invalidated\r\n\t\tinvalidated = _fnFilterData( settings );\r\n\t\r\n\t\t// If the input is blank - we just want the full data set\r\n\t\tif ( input.length <= 0 ) {\r\n\t\t\tsettings.aiDisplay = displayMaster.slice();\r\n\t\t}\r\n\t\telse {\r\n\t\t\t// New search - start from the master array\r\n\t\t\tif ( invalidated ||\r\n\t\t\t\t force ||\r\n\t\t\t\t regex ||\r\n\t\t\t\t prevSearch.length > input.length ||\r\n\t\t\t\t input.indexOf(prevSearch) !== 0 ||\r\n\t\t\t\t settings.bSorted // On resort, the display master needs to be\r\n\t\t\t\t // re-filtered since indexes will have changed\r\n\t\t\t) {\r\n\t\t\t\tsettings.aiDisplay = displayMaster.slice();\r\n\t\t\t}\r\n\t\r\n\t\t\t// Search the display array\r\n\t\t\tdisplay = settings.aiDisplay;\r\n\t\r\n\t\t\tfor ( i=0 ; i<display.length ; i++ ) {\r\n\t\t\t\tif ( rpSearch.test( settings.aoData[ display[i] ]._sFilterRow ) ) {\r\n\t\t\t\t\tfiltered.push( display[i] );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\r\n\t\t\tsettings.aiDisplay = filtered;\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Build a regular expression object suitable for searching a table\r\n\t * @param {string} sSearch string to search for\r\n\t * @param {bool} bRegex treat as a regular expression or not\r\n\t * @param {bool} bSmart perform smart filtering or not\r\n\t * @param {bool} bCaseInsensitive Do case insensitive matching or not\r\n\t * @returns {RegExp} constructed object\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnFilterCreateSearch( search, regex, smart, caseInsensitive )\r\n\t{\r\n\t\tsearch = regex ?\r\n\t\t\tsearch :\r\n\t\t\t_fnEscapeRegex( search );\r\n\t\t\r\n\t\tif ( smart ) {\r\n\t\t\t/* For smart filtering we want to allow the search to work regardless of\r\n\t\t\t * word order. We also want double quoted text to be preserved, so word\r\n\t\t\t * order is important - a la google. So this is what we want to\r\n\t\t\t * generate:\r\n\t\t\t * \r\n\t\t\t * ^(?=.*?\\bone\\b)(?=.*?\\btwo three\\b)(?=.*?\\bfour\\b).*$\r\n\t\t\t */\r\n\t\t\tvar a = $.map( search.match( /\"[^\"]+\"|[^ ]+/g ) || [''], function ( word ) {\r\n\t\t\t\tif ( word.charAt(0) === '\"' ) {\r\n\t\t\t\t\tvar m = word.match( /^\"(.*)\"$/ );\r\n\t\t\t\t\tword = m ? m[1] : word;\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\treturn word.replace('\"', '');\r\n\t\t\t} );\r\n\t\r\n\t\t\tsearch = '^(?=.*?'+a.join( ')(?=.*?' )+').*$';\r\n\t\t}\r\n\t\r\n\t\treturn new RegExp( search, caseInsensitive ? 'i' : '' );\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Escape a string such that it can be used in a regular expression\r\n\t * @param {string} sVal string to escape\r\n\t * @returns {string} escaped string\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tvar _fnEscapeRegex = DataTable.util.escapeRegex;\r\n\t\r\n\tvar __filter_div = $('<div>')[0];\r\n\tvar __filter_div_textContent = __filter_div.textContent !== undefined;\r\n\t\r\n\t// Update the filtering data for each row if needed (by invalidation or first run)\r\n\tfunction _fnFilterData ( settings )\r\n\t{\r\n\t\tvar columns = settings.aoColumns;\r\n\t\tvar column;\r\n\t\tvar i, j, ien, jen, filterData, cellData, row;\r\n\t\tvar fomatters = DataTable.ext.type.search;\r\n\t\tvar wasInvalidated = false;\r\n\t\r\n\t\tfor ( i=0, ien=settings.aoData.length ; i<ien ; i++ ) {\r\n\t\t\trow = settings.aoData[i];\r\n\t\r\n\t\t\tif ( ! row._aFilterData ) {\r\n\t\t\t\tfilterData = [];\r\n\t\r\n\t\t\t\tfor ( j=0, jen=columns.length ; j<jen ; j++ ) {\r\n\t\t\t\t\tcolumn = columns[j];\r\n\t\r\n\t\t\t\t\tif ( column.bSearchable ) {\r\n\t\t\t\t\t\tcellData = _fnGetCellData( settings, i, j, 'filter' );\r\n\t\r\n\t\t\t\t\t\tif ( fomatters[ column.sType ] ) {\r\n\t\t\t\t\t\t\tcellData = fomatters[ column.sType ]( cellData );\r\n\t\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\t\t// Search in DataTables 1.10 is string based. In 1.11 this\r\n\t\t\t\t\t\t// should be altered to also allow strict type checking.\r\n\t\t\t\t\t\tif ( cellData === null ) {\r\n\t\t\t\t\t\t\tcellData = '';\r\n\t\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\t\tif ( typeof cellData !== 'string' && cellData.toString ) {\r\n\t\t\t\t\t\t\tcellData = cellData.toString();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tcellData = '';\r\n\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\t// If it looks like there is an HTML entity in the string,\r\n\t\t\t\t\t// attempt to decode it so sorting works as expected. Note that\r\n\t\t\t\t\t// we could use a single line of jQuery to do this, but the DOM\r\n\t\t\t\t\t// method used here is much faster http://jsperf.com/html-decode\r\n\t\t\t\t\tif ( cellData.indexOf && cellData.indexOf('&') !== -1 ) {\r\n\t\t\t\t\t\t__filter_div.innerHTML = cellData;\r\n\t\t\t\t\t\tcellData = __filter_div_textContent ?\r\n\t\t\t\t\t\t\t__filter_div.textContent :\r\n\t\t\t\t\t\t\t__filter_div.innerText;\r\n\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\tif ( cellData.replace ) {\r\n\t\t\t\t\t\tcellData = cellData.replace(/[\\r\\n\\u2028]/g, '');\r\n\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\tfilterData.push( cellData );\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\trow._aFilterData = filterData;\r\n\t\t\t\trow._sFilterRow = filterData.join(' ');\r\n\t\t\t\twasInvalidated = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\treturn wasInvalidated;\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Convert from the internal Hungarian notation to camelCase for external\r\n\t * interaction\r\n\t * @param {object} obj Object to convert\r\n\t * @returns {object} Inverted object\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnSearchToCamel ( obj )\r\n\t{\r\n\t\treturn {\r\n\t\t\tsearch: obj.sSearch,\r\n\t\t\tsmart: obj.bSmart,\r\n\t\t\tregex: obj.bRegex,\r\n\t\t\tcaseInsensitive: obj.bCaseInsensitive\r\n\t\t};\r\n\t}\r\n\t\r\n\t\r\n\t\r\n\t/**\r\n\t * Convert from camelCase notation to the internal Hungarian. We could use the\r\n\t * Hungarian convert function here, but this is cleaner\r\n\t * @param {object} obj Object to convert\r\n\t * @returns {object} Inverted object\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnSearchToHung ( obj )\r\n\t{\r\n\t\treturn {\r\n\t\t\tsSearch: obj.search,\r\n\t\t\tbSmart: obj.smart,\r\n\t\t\tbRegex: obj.regex,\r\n\t\t\tbCaseInsensitive: obj.caseInsensitive\r\n\t\t};\r\n\t}\r\n\t\r\n\t/**\r\n\t * Generate the node required for the info display\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @returns {node} Information element\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnFeatureHtmlInfo ( settings )\r\n\t{\r\n\t\tvar\r\n\t\t\ttid = settings.sTableId,\r\n\t\t\tnodes = settings.aanFeatures.i,\r\n\t\t\tn = $('<div/>', {\r\n\t\t\t\t'class': settings.oClasses.sInfo,\r\n\t\t\t\t'id': ! nodes ? tid+'_info' : null\r\n\t\t\t} );\r\n\t\r\n\t\tif ( ! nodes ) {\r\n\t\t\t// Update display on each draw\r\n\t\t\tsettings.aoDrawCallback.push( {\r\n\t\t\t\t\"fn\": _fnUpdateInfo,\r\n\t\t\t\t\"sName\": \"information\"\r\n\t\t\t} );\r\n\t\r\n\t\t\tn\r\n\t\t\t\t.attr( 'role', 'status' )\r\n\t\t\t\t.attr( 'aria-live', 'polite' );\r\n\t\r\n\t\t\t// Table is described by our info div\r\n\t\t\t$(settings.nTable).attr( 'aria-describedby', tid+'_info' );\r\n\t\t}\r\n\t\r\n\t\treturn n[0];\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Update the information elements in the display\r\n\t * @param {object} settings dataTables settings object\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnUpdateInfo ( settings )\r\n\t{\r\n\t\t/* Show information about the table */\r\n\t\tvar nodes = settings.aanFeatures.i;\r\n\t\tif ( nodes.length === 0 ) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\r\n\t\tvar\r\n\t\t\tlang = settings.oLanguage,\r\n\t\t\tstart = settings._iDisplayStart+1,\r\n\t\t\tend = settings.fnDisplayEnd(),\r\n\t\t\tmax = settings.fnRecordsTotal(),\r\n\t\t\ttotal = settings.fnRecordsDisplay(),\r\n\t\t\tout = total ?\r\n\t\t\t\tlang.sInfo :\r\n\t\t\t\tlang.sInfoEmpty;\r\n\t\r\n\t\tif ( total !== max ) {\r\n\t\t\t/* Record set after filtering */\r\n\t\t\tout += ' ' + lang.sInfoFiltered;\r\n\t\t}\r\n\t\r\n\t\t// Convert the macros\r\n\t\tout += lang.sInfoPostFix;\r\n\t\tout = _fnInfoMacros( settings, out );\r\n\t\r\n\t\tvar callback = lang.fnInfoCallback;\r\n\t\tif ( callback !== null ) {\r\n\t\t\tout = callback.call( settings.oInstance,\r\n\t\t\t\tsettings, start, end, max, total, out\r\n\t\t\t);\r\n\t\t}\r\n\t\r\n\t\t$(nodes).html( out );\r\n\t}\r\n\t\r\n\t\r\n\tfunction _fnInfoMacros ( settings, str )\r\n\t{\r\n\t\t// When infinite scrolling, we are always starting at 1. _iDisplayStart is used only\r\n\t\t// internally\r\n\t\tvar\r\n\t\t\tformatter = settings.fnFormatNumber,\r\n\t\t\tstart = settings._iDisplayStart+1,\r\n\t\t\tlen = settings._iDisplayLength,\r\n\t\t\tvis = settings.fnRecordsDisplay(),\r\n\t\t\tall = len === -1;\r\n\t\r\n\t\treturn str.\r\n\t\t\treplace(/_START_/g, formatter.call( settings, start ) ).\r\n\t\t\treplace(/_END_/g, formatter.call( settings, settings.fnDisplayEnd() ) ).\r\n\t\t\treplace(/_MAX_/g, formatter.call( settings, settings.fnRecordsTotal() ) ).\r\n\t\t\treplace(/_TOTAL_/g, formatter.call( settings, vis ) ).\r\n\t\t\treplace(/_PAGE_/g, formatter.call( settings, all ? 1 : Math.ceil( start / len ) ) ).\r\n\t\t\treplace(/_PAGES_/g, formatter.call( settings, all ? 1 : Math.ceil( vis / len ) ) );\r\n\t}\r\n\t\r\n\t\r\n\t\r\n\t/**\r\n\t * Draw the table for the first time, adding all required features\r\n\t * @param {object} settings dataTables settings object\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnInitialise ( settings )\r\n\t{\r\n\t\tvar i, iLen, iAjaxStart=settings.iInitDisplayStart;\r\n\t\tvar columns = settings.aoColumns, column;\r\n\t\tvar features = settings.oFeatures;\r\n\t\tvar deferLoading = settings.bDeferLoading; // value modified by the draw\r\n\t\r\n\t\t/* Ensure that the table data is fully initialised */\r\n\t\tif ( ! settings.bInitialised ) {\r\n\t\t\tsetTimeout( function(){ _fnInitialise( settings ); }, 200 );\r\n\t\t\treturn;\r\n\t\t}\r\n\t\r\n\t\t/* Show the display HTML options */\r\n\t\t_fnAddOptionsHtml( settings );\r\n\t\r\n\t\t/* Build and draw the header / footer for the table */\r\n\t\t_fnBuildHead( settings );\r\n\t\t_fnDrawHead( settings, settings.aoHeader );\r\n\t\t_fnDrawHead( settings, settings.aoFooter );\r\n\t\r\n\t\t/* Okay to show that something is going on now */\r\n\t\t_fnProcessingDisplay( settings, true );\r\n\t\r\n\t\t/* Calculate sizes for columns */\r\n\t\tif ( features.bAutoWidth ) {\r\n\t\t\t_fnCalculateColumnWidths( settings );\r\n\t\t}\r\n\t\r\n\t\tfor ( i=0, iLen=columns.length ; i<iLen ; i++ ) {\r\n\t\t\tcolumn = columns[i];\r\n\t\r\n\t\t\tif ( column.sWidth ) {\r\n\t\t\t\tcolumn.nTh.style.width = _fnStringToCss( column.sWidth );\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\t_fnCallbackFire( settings, null, 'preInit', [settings] );\r\n\t\r\n\t\t// If there is default sorting required - let's do it. The sort function\r\n\t\t// will do the drawing for us. Otherwise we draw the table regardless of the\r\n\t\t// Ajax source - this allows the table to look initialised for Ajax sourcing\r\n\t\t// data (show 'loading' message possibly)\r\n\t\t_fnReDraw( settings );\r\n\t\r\n\t\t// Server-side processing init complete is done by _fnAjaxUpdateDraw\r\n\t\tvar dataSrc = _fnDataSource( settings );\r\n\t\tif ( dataSrc != 'ssp' || deferLoading ) {\r\n\t\t\t// if there is an ajax source load the data\r\n\t\t\tif ( dataSrc == 'ajax' ) {\r\n\t\t\t\t_fnBuildAjax( settings, [], function(json) {\r\n\t\t\t\t\tvar aData = _fnAjaxDataSrc( settings, json );\r\n\t\r\n\t\t\t\t\t// Got the data - add it to the table\r\n\t\t\t\t\tfor ( i=0 ; i<aData.length ; i++ ) {\r\n\t\t\t\t\t\t_fnAddData( settings, aData[i] );\r\n\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\t// Reset the init display for cookie saving. We've already done\r\n\t\t\t\t\t// a filter, and therefore cleared it before. So we need to make\r\n\t\t\t\t\t// it appear 'fresh'\r\n\t\t\t\t\tsettings.iInitDisplayStart = iAjaxStart;\r\n\t\r\n\t\t\t\t\t_fnReDraw( settings );\r\n\t\r\n\t\t\t\t\t_fnProcessingDisplay( settings, false );\r\n\t\t\t\t\t_fnInitComplete( settings, json );\r\n\t\t\t\t}, settings );\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t_fnProcessingDisplay( settings, false );\r\n\t\t\t\t_fnInitComplete( settings );\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Draw the table for the first time, adding all required features\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @param {object} [json] JSON from the server that completed the table, if using Ajax source\r\n\t * with client-side processing (optional)\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnInitComplete ( settings, json )\r\n\t{\r\n\t\tsettings._bInitComplete = true;\r\n\t\r\n\t\t// When data was added after the initialisation (data or Ajax) we need to\r\n\t\t// calculate the column sizing\r\n\t\tif ( json || settings.oInit.aaData ) {\r\n\t\t\t_fnAdjustColumnSizing( settings );\r\n\t\t}\r\n\t\r\n\t\t_fnCallbackFire( settings, null, 'plugin-init', [settings, json] );\r\n\t\t_fnCallbackFire( settings, 'aoInitComplete', 'init', [settings, json] );\r\n\t}\r\n\t\r\n\t\r\n\tfunction _fnLengthChange ( settings, val )\r\n\t{\r\n\t\tvar len = parseInt( val, 10 );\r\n\t\tsettings._iDisplayLength = len;\r\n\t\r\n\t\t_fnLengthOverflow( settings );\r\n\t\r\n\t\t// Fire length change event\r\n\t\t_fnCallbackFire( settings, null, 'length', [settings, len] );\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Generate the node required for user display length changing\r\n\t * @param {object} settings dataTables settings object\r\n\t * @returns {node} Display length feature node\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnFeatureHtmlLength ( settings )\r\n\t{\r\n\t\tvar\r\n\t\t\tclasses = settings.oClasses,\r\n\t\t\ttableId = settings.sTableId,\r\n\t\t\tmenu = settings.aLengthMenu,\r\n\t\t\td2 = $.isArray( menu[0] ),\r\n\t\t\tlengths = d2 ? menu[0] : menu,\r\n\t\t\tlanguage = d2 ? menu[1] : menu;\r\n\t\r\n\t\tvar select = $('<select/>', {\r\n\t\t\t'name': tableId+'_length',\r\n\t\t\t'aria-controls': tableId,\r\n\t\t\t'class': classes.sLengthSelect\r\n\t\t} );\r\n\t\r\n\t\tfor ( var i=0, ien=lengths.length ; i<ien ; i++ ) {\r\n\t\t\tselect[0][ i ] = new Option(\r\n\t\t\t\ttypeof language[i] === 'number' ?\r\n\t\t\t\t\tsettings.fnFormatNumber( language[i] ) :\r\n\t\t\t\t\tlanguage[i],\r\n\t\t\t\tlengths[i]\r\n\t\t\t);\r\n\t\t}\r\n\t\r\n\t\tvar div = $('<div><label/></div>').addClass( classes.sLength );\r\n\t\tif ( ! settings.aanFeatures.l ) {\r\n\t\t\tdiv[0].id = tableId+'_length';\r\n\t\t}\r\n\t\r\n\t\tdiv.children().append(\r\n\t\t\tsettings.oLanguage.sLengthMenu.replace( '_MENU_', select[0].outerHTML )\r\n\t\t);\r\n\t\r\n\t\t// Can't use `select` variable as user might provide their own and the\r\n\t\t// reference is broken by the use of outerHTML\r\n\t\t$('select', div)\r\n\t\t\t.val( settings._iDisplayLength )\r\n\t\t\t.on( 'change.DT', function(e) {\r\n\t\t\t\t_fnLengthChange( settings, $(this).val() );\r\n\t\t\t\t_fnDraw( settings );\r\n\t\t\t} );\r\n\t\r\n\t\t// Update node value whenever anything changes the table's length\r\n\t\t$(settings.nTable).on( 'length.dt.DT', function (e, s, len) {\r\n\t\t\tif ( settings === s ) {\r\n\t\t\t\t$('select', div).val( len );\r\n\t\t\t}\r\n\t\t} );\r\n\t\r\n\t\treturn div[0];\r\n\t}\r\n\t\r\n\t\r\n\t\r\n\t/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n\t * Note that most of the paging logic is done in\r\n\t * DataTable.ext.pager\r\n\t */\r\n\t\r\n\t/**\r\n\t * Generate the node required for default pagination\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @returns {node} Pagination feature node\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnFeatureHtmlPaginate ( settings )\r\n\t{\r\n\t\tvar\r\n\t\t\ttype = settings.sPaginationType,\r\n\t\t\tplugin = DataTable.ext.pager[ type ],\r\n\t\t\tmodern = typeof plugin === 'function',\r\n\t\t\tredraw = function( settings ) {\r\n\t\t\t\t_fnDraw( settings );\r\n\t\t\t},\r\n\t\t\tnode = $('<div/>').addClass( settings.oClasses.sPaging + type )[0],\r\n\t\t\tfeatures = settings.aanFeatures;\r\n\t\r\n\t\tif ( ! modern ) {\r\n\t\t\tplugin.fnInit( settings, node, redraw );\r\n\t\t}\r\n\t\r\n\t\t/* Add a draw callback for the pagination on first instance, to update the paging display */\r\n\t\tif ( ! features.p )\r\n\t\t{\r\n\t\t\tnode.id = settings.sTableId+'_paginate';\r\n\t\r\n\t\t\tsettings.aoDrawCallback.push( {\r\n\t\t\t\t\"fn\": function( settings ) {\r\n\t\t\t\t\tif ( modern ) {\r\n\t\t\t\t\t\tvar\r\n\t\t\t\t\t\t\tstart = settings._iDisplayStart,\r\n\t\t\t\t\t\t\tlen = settings._iDisplayLength,\r\n\t\t\t\t\t\t\tvisRecords = settings.fnRecordsDisplay(),\r\n\t\t\t\t\t\t\tall = len === -1,\r\n\t\t\t\t\t\t\tpage = all ? 0 : Math.ceil( start / len ),\r\n\t\t\t\t\t\t\tpages = all ? 1 : Math.ceil( visRecords / len ),\r\n\t\t\t\t\t\t\tbuttons = plugin(page, pages),\r\n\t\t\t\t\t\t\ti, ien;\r\n\t\r\n\t\t\t\t\t\tfor ( i=0, ien=features.p.length ; i<ien ; i++ ) {\r\n\t\t\t\t\t\t\t_fnRenderer( settings, 'pageButton' )(\r\n\t\t\t\t\t\t\t\tsettings, features.p[i], i, buttons, page, pages\r\n\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tplugin.fnUpdate( settings, redraw );\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\t\"sName\": \"pagination\"\r\n\t\t\t} );\r\n\t\t}\r\n\t\r\n\t\treturn node;\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Alter the display settings to change the page\r\n\t * @param {object} settings DataTables settings object\r\n\t * @param {string|int} action Paging action to take: \"first\", \"previous\",\r\n\t * \"next\" or \"last\" or page number to jump to (integer)\r\n\t * @param [bool] redraw Automatically draw the update or not\r\n\t * @returns {bool} true page has changed, false - no change\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnPageChange ( settings, action, redraw )\r\n\t{\r\n\t\tvar\r\n\t\t\tstart = settings._iDisplayStart,\r\n\t\t\tlen = settings._iDisplayLength,\r\n\t\t\trecords = settings.fnRecordsDisplay();\r\n\t\r\n\t\tif ( records === 0 || len === -1 )\r\n\t\t{\r\n\t\t\tstart = 0;\r\n\t\t}\r\n\t\telse if ( typeof action === \"number\" )\r\n\t\t{\r\n\t\t\tstart = action * len;\r\n\t\r\n\t\t\tif ( start > records )\r\n\t\t\t{\r\n\t\t\t\tstart = 0;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if ( action == \"first\" )\r\n\t\t{\r\n\t\t\tstart = 0;\r\n\t\t}\r\n\t\telse if ( action == \"previous\" )\r\n\t\t{\r\n\t\t\tstart = len >= 0 ?\r\n\t\t\t\tstart - len :\r\n\t\t\t\t0;\r\n\t\r\n\t\t\tif ( start < 0 )\r\n\t\t\t{\r\n\t\t\t start = 0;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if ( action == \"next\" )\r\n\t\t{\r\n\t\t\tif ( start + len < records )\r\n\t\t\t{\r\n\t\t\t\tstart += len;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if ( action == \"last\" )\r\n\t\t{\r\n\t\t\tstart = Math.floor( (records-1) / len) * len;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t_fnLog( settings, 0, \"Unknown paging action: \"+action, 5 );\r\n\t\t}\r\n\t\r\n\t\tvar changed = settings._iDisplayStart !== start;\r\n\t\tsettings._iDisplayStart = start;\r\n\t\r\n\t\tif ( changed ) {\r\n\t\t\t_fnCallbackFire( settings, null, 'page', [settings] );\r\n\t\r\n\t\t\tif ( redraw ) {\r\n\t\t\t\t_fnDraw( settings );\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\treturn changed;\r\n\t}\r\n\t\r\n\t\r\n\t\r\n\t/**\r\n\t * Generate the node required for the processing node\r\n\t * @param {object} settings dataTables settings object\r\n\t * @returns {node} Processing element\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnFeatureHtmlProcessing ( settings )\r\n\t{\r\n\t\treturn $('<div/>', {\r\n\t\t\t\t'id': ! settings.aanFeatures.r ? settings.sTableId+'_processing' : null,\r\n\t\t\t\t'class': settings.oClasses.sProcessing\r\n\t\t\t} )\r\n\t\t\t.html( settings.oLanguage.sProcessing )\r\n\t\t\t.insertBefore( settings.nTable )[0];\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Display or hide the processing indicator\r\n\t * @param {object} settings dataTables settings object\r\n\t * @param {bool} show Show the processing indicator (true) or not (false)\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnProcessingDisplay ( settings, show )\r\n\t{\r\n\t\tif ( settings.oFeatures.bProcessing ) {\r\n\t\t\t$(settings.aanFeatures.r).css( 'display', show ? 'block' : 'none' );\r\n\t\t}\r\n\t\r\n\t\t_fnCallbackFire( settings, null, 'processing', [settings, show] );\r\n\t}\r\n\t\r\n\t/**\r\n\t * Add any control elements for the table - specifically scrolling\r\n\t * @param {object} settings dataTables settings object\r\n\t * @returns {node} Node to add to the DOM\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnFeatureHtmlTable ( settings )\r\n\t{\r\n\t\tvar table = $(settings.nTable);\r\n\t\r\n\t\t// Add the ARIA grid role to the table\r\n\t\ttable.attr( 'role', 'grid' );\r\n\t\r\n\t\t// Scrolling from here on in\r\n\t\tvar scroll = settings.oScroll;\r\n\t\r\n\t\tif ( scroll.sX === '' && scroll.sY === '' ) {\r\n\t\t\treturn settings.nTable;\r\n\t\t}\r\n\t\r\n\t\tvar scrollX = scroll.sX;\r\n\t\tvar scrollY = scroll.sY;\r\n\t\tvar classes = settings.oClasses;\r\n\t\tvar caption = table.children('caption');\r\n\t\tvar captionSide = caption.length ? caption[0]._captionSide : null;\r\n\t\tvar headerClone = $( table[0].cloneNode(false) );\r\n\t\tvar footerClone = $( table[0].cloneNode(false) );\r\n\t\tvar footer = table.children('tfoot');\r\n\t\tvar _div = '<div/>';\r\n\t\tvar size = function ( s ) {\r\n\t\t\treturn !s ? null : _fnStringToCss( s );\r\n\t\t};\r\n\t\r\n\t\tif ( ! footer.length ) {\r\n\t\t\tfooter = null;\r\n\t\t}\r\n\t\r\n\t\t/*\r\n\t\t * The HTML structure that we want to generate in this function is:\r\n\t\t * div - scroller\r\n\t\t * div - scroll head\r\n\t\t * div - scroll head inner\r\n\t\t * table - scroll head table\r\n\t\t * thead - thead\r\n\t\t * div - scroll body\r\n\t\t * table - table (master table)\r\n\t\t * thead - thead clone for sizing\r\n\t\t * tbody - tbody\r\n\t\t * div - scroll foot\r\n\t\t * div - scroll foot inner\r\n\t\t * table - scroll foot table\r\n\t\t * tfoot - tfoot\r\n\t\t */\r\n\t\tvar scroller = $( _div, { 'class': classes.sScrollWrapper } )\r\n\t\t\t.append(\r\n\t\t\t\t$(_div, { 'class': classes.sScrollHead } )\r\n\t\t\t\t\t.css( {\r\n\t\t\t\t\t\toverflow: 'hidden',\r\n\t\t\t\t\t\tposition: 'relative',\r\n\t\t\t\t\t\tborder: 0,\r\n\t\t\t\t\t\twidth: scrollX ? size(scrollX) : '100%'\r\n\t\t\t\t\t} )\r\n\t\t\t\t\t.append(\r\n\t\t\t\t\t\t$(_div, { 'class': classes.sScrollHeadInner } )\r\n\t\t\t\t\t\t\t.css( {\r\n\t\t\t\t\t\t\t\t'box-sizing': 'content-box',\r\n\t\t\t\t\t\t\t\twidth: scroll.sXInner || '100%'\r\n\t\t\t\t\t\t\t} )\r\n\t\t\t\t\t\t\t.append(\r\n\t\t\t\t\t\t\t\theaderClone\r\n\t\t\t\t\t\t\t\t\t.removeAttr('id')\r\n\t\t\t\t\t\t\t\t\t.css( 'margin-left', 0 )\r\n\t\t\t\t\t\t\t\t\t.append( captionSide === 'top' ? caption : null )\r\n\t\t\t\t\t\t\t\t\t.append(\r\n\t\t\t\t\t\t\t\t\t\ttable.children('thead')\r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t)\r\n\t\t\t\t\t)\r\n\t\t\t)\r\n\t\t\t.append(\r\n\t\t\t\t$(_div, { 'class': classes.sScrollBody } )\r\n\t\t\t\t\t.css( {\r\n\t\t\t\t\t\tposition: 'relative',\r\n\t\t\t\t\t\toverflow: 'auto',\r\n\t\t\t\t\t\twidth: size( scrollX )\r\n\t\t\t\t\t} )\r\n\t\t\t\t\t.append( table )\r\n\t\t\t);\r\n\t\r\n\t\tif ( footer ) {\r\n\t\t\tscroller.append(\r\n\t\t\t\t$(_div, { 'class': classes.sScrollFoot } )\r\n\t\t\t\t\t.css( {\r\n\t\t\t\t\t\toverflow: 'hidden',\r\n\t\t\t\t\t\tborder: 0,\r\n\t\t\t\t\t\twidth: scrollX ? size(scrollX) : '100%'\r\n\t\t\t\t\t} )\r\n\t\t\t\t\t.append(\r\n\t\t\t\t\t\t$(_div, { 'class': classes.sScrollFootInner } )\r\n\t\t\t\t\t\t\t.append(\r\n\t\t\t\t\t\t\t\tfooterClone\r\n\t\t\t\t\t\t\t\t\t.removeAttr('id')\r\n\t\t\t\t\t\t\t\t\t.css( 'margin-left', 0 )\r\n\t\t\t\t\t\t\t\t\t.append( captionSide === 'bottom' ? caption : null )\r\n\t\t\t\t\t\t\t\t\t.append(\r\n\t\t\t\t\t\t\t\t\t\ttable.children('tfoot')\r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t)\r\n\t\t\t\t\t)\r\n\t\t\t);\r\n\t\t}\r\n\t\r\n\t\tvar children = scroller.children();\r\n\t\tvar scrollHead = children[0];\r\n\t\tvar scrollBody = children[1];\r\n\t\tvar scrollFoot = footer ? children[2] : null;\r\n\t\r\n\t\t// When the body is scrolled, then we also want to scroll the headers\r\n\t\tif ( scrollX ) {\r\n\t\t\t$(scrollBody).on( 'scroll.DT', function (e) {\r\n\t\t\t\tvar scrollLeft = this.scrollLeft;\r\n\t\r\n\t\t\t\tscrollHead.scrollLeft = scrollLeft;\r\n\t\r\n\t\t\t\tif ( footer ) {\r\n\t\t\t\t\tscrollFoot.scrollLeft = scrollLeft;\r\n\t\t\t\t}\r\n\t\t\t} );\r\n\t\t}\r\n\t\r\n\t\t$(scrollBody).css(\r\n\t\t\tscrollY && scroll.bCollapse ? 'max-height' : 'height', \r\n\t\t\tscrollY\r\n\t\t);\r\n\t\r\n\t\tsettings.nScrollHead = scrollHead;\r\n\t\tsettings.nScrollBody = scrollBody;\r\n\t\tsettings.nScrollFoot = scrollFoot;\r\n\t\r\n\t\t// On redraw - align columns\r\n\t\tsettings.aoDrawCallback.push( {\r\n\t\t\t\"fn\": _fnScrollDraw,\r\n\t\t\t\"sName\": \"scrolling\"\r\n\t\t} );\r\n\t\r\n\t\treturn scroller[0];\r\n\t}\r\n\t\r\n\t\r\n\t\r\n\t/**\r\n\t * Update the header, footer and body tables for resizing - i.e. column\r\n\t * alignment.\r\n\t *\r\n\t * Welcome to the most horrible function DataTables. The process that this\r\n\t * function follows is basically:\r\n\t * 1. Re-create the table inside the scrolling div\r\n\t * 2. Take live measurements from the DOM\r\n\t * 3. Apply the measurements to align the columns\r\n\t * 4. Clean up\r\n\t *\r\n\t * @param {object} settings dataTables settings object\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnScrollDraw ( settings )\r\n\t{\r\n\t\t// Given that this is such a monster function, a lot of variables are use\r\n\t\t// to try and keep the minimised size as small as possible\r\n\t\tvar\r\n\t\t\tscroll = settings.oScroll,\r\n\t\t\tscrollX = scroll.sX,\r\n\t\t\tscrollXInner = scroll.sXInner,\r\n\t\t\tscrollY = scroll.sY,\r\n\t\t\tbarWidth = scroll.iBarWidth,\r\n\t\t\tdivHeader = $(settings.nScrollHead),\r\n\t\t\tdivHeaderStyle = divHeader[0].style,\r\n\t\t\tdivHeaderInner = divHeader.children('div'),\r\n\t\t\tdivHeaderInnerStyle = divHeaderInner[0].style,\r\n\t\t\tdivHeaderTable = divHeaderInner.children('table'),\r\n\t\t\tdivBodyEl = settings.nScrollBody,\r\n\t\t\tdivBody = $(divBodyEl),\r\n\t\t\tdivBodyStyle = divBodyEl.style,\r\n\t\t\tdivFooter = $(settings.nScrollFoot),\r\n\t\t\tdivFooterInner = divFooter.children('div'),\r\n\t\t\tdivFooterTable = divFooterInner.children('table'),\r\n\t\t\theader = $(settings.nTHead),\r\n\t\t\ttable = $(settings.nTable),\r\n\t\t\ttableEl = table[0],\r\n\t\t\ttableStyle = tableEl.style,\r\n\t\t\tfooter = settings.nTFoot ? $(settings.nTFoot) : null,\r\n\t\t\tbrowser = settings.oBrowser,\r\n\t\t\tie67 = browser.bScrollOversize,\r\n\t\t\tdtHeaderCells = _pluck( settings.aoColumns, 'nTh' ),\r\n\t\t\theaderTrgEls, footerTrgEls,\r\n\t\t\theaderSrcEls, footerSrcEls,\r\n\t\t\theaderCopy, footerCopy,\r\n\t\t\theaderWidths=[], footerWidths=[],\r\n\t\t\theaderContent=[], footerContent=[],\r\n\t\t\tidx, correction, sanityWidth,\r\n\t\t\tzeroOut = function(nSizer) {\r\n\t\t\t\tvar style = nSizer.style;\r\n\t\t\t\tstyle.paddingTop = \"0\";\r\n\t\t\t\tstyle.paddingBottom = \"0\";\r\n\t\t\t\tstyle.borderTopWidth = \"0\";\r\n\t\t\t\tstyle.borderBottomWidth = \"0\";\r\n\t\t\t\tstyle.height = 0;\r\n\t\t\t};\r\n\t\r\n\t\t// If the scrollbar visibility has changed from the last draw, we need to\r\n\t\t// adjust the column sizes as the table width will have changed to account\r\n\t\t// for the scrollbar\r\n\t\tvar scrollBarVis = divBodyEl.scrollHeight > divBodyEl.clientHeight;\r\n\t\t\r\n\t\tif ( settings.scrollBarVis !== scrollBarVis && settings.scrollBarVis !== undefined ) {\r\n\t\t\tsettings.scrollBarVis = scrollBarVis;\r\n\t\t\t_fnAdjustColumnSizing( settings );\r\n\t\t\treturn; // adjust column sizing will call this function again\r\n\t\t}\r\n\t\telse {\r\n\t\t\tsettings.scrollBarVis = scrollBarVis;\r\n\t\t}\r\n\t\r\n\t\t/*\r\n\t\t * 1. Re-create the table inside the scrolling div\r\n\t\t */\r\n\t\r\n\t\t// Remove the old minimised thead and tfoot elements in the inner table\r\n\t\ttable.children('thead, tfoot').remove();\r\n\t\r\n\t\tif ( footer ) {\r\n\t\t\tfooterCopy = footer.clone().prependTo( table );\r\n\t\t\tfooterTrgEls = footer.find('tr'); // the original tfoot is in its own table and must be sized\r\n\t\t\tfooterSrcEls = footerCopy.find('tr');\r\n\t\t}\r\n\t\r\n\t\t// Clone the current header and footer elements and then place it into the inner table\r\n\t\theaderCopy = header.clone().prependTo( table );\r\n\t\theaderTrgEls = header.find('tr'); // original header is in its own table\r\n\t\theaderSrcEls = headerCopy.find('tr');\r\n\t\theaderCopy.find('th, td').removeAttr('tabindex');\r\n\t\r\n\t\r\n\t\t/*\r\n\t\t * 2. Take live measurements from the DOM - do not alter the DOM itself!\r\n\t\t */\r\n\t\r\n\t\t// Remove old sizing and apply the calculated column widths\r\n\t\t// Get the unique column headers in the newly created (cloned) header. We want to apply the\r\n\t\t// calculated sizes to this header\r\n\t\tif ( ! scrollX )\r\n\t\t{\r\n\t\t\tdivBodyStyle.width = '100%';\r\n\t\t\tdivHeader[0].style.width = '100%';\r\n\t\t}\r\n\t\r\n\t\t$.each( _fnGetUniqueThs( settings, headerCopy ), function ( i, el ) {\r\n\t\t\tidx = _fnVisibleToColumnIndex( settings, i );\r\n\t\t\tel.style.width = settings.aoColumns[idx].sWidth;\r\n\t\t} );\r\n\t\r\n\t\tif ( footer ) {\r\n\t\t\t_fnApplyToChildren( function(n) {\r\n\t\t\t\tn.style.width = \"\";\r\n\t\t\t}, footerSrcEls );\r\n\t\t}\r\n\t\r\n\t\t// Size the table as a whole\r\n\t\tsanityWidth = table.outerWidth();\r\n\t\tif ( scrollX === \"\" ) {\r\n\t\t\t// No x scrolling\r\n\t\t\ttableStyle.width = \"100%\";\r\n\t\r\n\t\t\t// IE7 will make the width of the table when 100% include the scrollbar\r\n\t\t\t// - which is shouldn't. When there is a scrollbar we need to take this\r\n\t\t\t// into account.\r\n\t\t\tif ( ie67 && (table.find('tbody').height() > divBodyEl.offsetHeight ||\r\n\t\t\t\tdivBody.css('overflow-y') == \"scroll\")\r\n\t\t\t) {\r\n\t\t\t\ttableStyle.width = _fnStringToCss( table.outerWidth() - barWidth);\r\n\t\t\t}\r\n\t\r\n\t\t\t// Recalculate the sanity width\r\n\t\t\tsanityWidth = table.outerWidth();\r\n\t\t}\r\n\t\telse if ( scrollXInner !== \"\" ) {\r\n\t\t\t// legacy x scroll inner has been given - use it\r\n\t\t\ttableStyle.width = _fnStringToCss(scrollXInner);\r\n\t\r\n\t\t\t// Recalculate the sanity width\r\n\t\t\tsanityWidth = table.outerWidth();\r\n\t\t}\r\n\t\r\n\t\t// Hidden header should have zero height, so remove padding and borders. Then\r\n\t\t// set the width based on the real headers\r\n\t\r\n\t\t// Apply all styles in one pass\r\n\t\t_fnApplyToChildren( zeroOut, headerSrcEls );\r\n\t\r\n\t\t// Read all widths in next pass\r\n\t\t_fnApplyToChildren( function(nSizer) {\r\n\t\t\theaderContent.push( nSizer.innerHTML );\r\n\t\t\theaderWidths.push( _fnStringToCss( $(nSizer).css('width') ) );\r\n\t\t}, headerSrcEls );\r\n\t\r\n\t\t// Apply all widths in final pass\r\n\t\t_fnApplyToChildren( function(nToSize, i) {\r\n\t\t\t// Only apply widths to the DataTables detected header cells - this\r\n\t\t\t// prevents complex headers from having contradictory sizes applied\r\n\t\t\tif ( $.inArray( nToSize, dtHeaderCells ) !== -1 ) {\r\n\t\t\t\tnToSize.style.width = headerWidths[i];\r\n\t\t\t}\r\n\t\t}, headerTrgEls );\r\n\t\r\n\t\t$(headerSrcEls).height(0);\r\n\t\r\n\t\t/* Same again with the footer if we have one */\r\n\t\tif ( footer )\r\n\t\t{\r\n\t\t\t_fnApplyToChildren( zeroOut, footerSrcEls );\r\n\t\r\n\t\t\t_fnApplyToChildren( function(nSizer) {\r\n\t\t\t\tfooterContent.push( nSizer.innerHTML );\r\n\t\t\t\tfooterWidths.push( _fnStringToCss( $(nSizer).css('width') ) );\r\n\t\t\t}, footerSrcEls );\r\n\t\r\n\t\t\t_fnApplyToChildren( function(nToSize, i) {\r\n\t\t\t\tnToSize.style.width = footerWidths[i];\r\n\t\t\t}, footerTrgEls );\r\n\t\r\n\t\t\t$(footerSrcEls).height(0);\r\n\t\t}\r\n\t\r\n\t\r\n\t\t/*\r\n\t\t * 3. Apply the measurements\r\n\t\t */\r\n\t\r\n\t\t// \"Hide\" the header and footer that we used for the sizing. We need to keep\r\n\t\t// the content of the cell so that the width applied to the header and body\r\n\t\t// both match, but we want to hide it completely. We want to also fix their\r\n\t\t// width to what they currently are\r\n\t\t_fnApplyToChildren( function(nSizer, i) {\r\n\t\t\tnSizer.innerHTML = '<div class=\"dataTables_sizing\">'+headerContent[i]+'</div>';\r\n\t\t\tnSizer.childNodes[0].style.height = \"0\";\r\n\t\t\tnSizer.childNodes[0].style.overflow = \"hidden\";\r\n\t\t\tnSizer.style.width = headerWidths[i];\r\n\t\t}, headerSrcEls );\r\n\t\r\n\t\tif ( footer )\r\n\t\t{\r\n\t\t\t_fnApplyToChildren( function(nSizer, i) {\r\n\t\t\t\tnSizer.innerHTML = '<div class=\"dataTables_sizing\">'+footerContent[i]+'</div>';\r\n\t\t\t\tnSizer.childNodes[0].style.height = \"0\";\r\n\t\t\t\tnSizer.childNodes[0].style.overflow = \"hidden\";\r\n\t\t\t\tnSizer.style.width = footerWidths[i];\r\n\t\t\t}, footerSrcEls );\r\n\t\t}\r\n\t\r\n\t\t// Sanity check that the table is of a sensible width. If not then we are going to get\r\n\t\t// misalignment - try to prevent this by not allowing the table to shrink below its min width\r\n\t\tif ( table.outerWidth() < sanityWidth )\r\n\t\t{\r\n\t\t\t// The min width depends upon if we have a vertical scrollbar visible or not */\r\n\t\t\tcorrection = ((divBodyEl.scrollHeight > divBodyEl.offsetHeight ||\r\n\t\t\t\tdivBody.css('overflow-y') == \"scroll\")) ?\r\n\t\t\t\t\tsanityWidth+barWidth :\r\n\t\t\t\t\tsanityWidth;\r\n\t\r\n\t\t\t// IE6/7 are a law unto themselves...\r\n\t\t\tif ( ie67 && (divBodyEl.scrollHeight >\r\n\t\t\t\tdivBodyEl.offsetHeight || divBody.css('overflow-y') == \"scroll\")\r\n\t\t\t) {\r\n\t\t\t\ttableStyle.width = _fnStringToCss( correction-barWidth );\r\n\t\t\t}\r\n\t\r\n\t\t\t// And give the user a warning that we've stopped the table getting too small\r\n\t\t\tif ( scrollX === \"\" || scrollXInner !== \"\" ) {\r\n\t\t\t\t_fnLog( settings, 1, 'Possible column misalignment', 6 );\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tcorrection = '100%';\r\n\t\t}\r\n\t\r\n\t\t// Apply to the container elements\r\n\t\tdivBodyStyle.width = _fnStringToCss( correction );\r\n\t\tdivHeaderStyle.width = _fnStringToCss( correction );\r\n\t\r\n\t\tif ( footer ) {\r\n\t\t\tsettings.nScrollFoot.style.width = _fnStringToCss( correction );\r\n\t\t}\r\n\t\r\n\t\r\n\t\t/*\r\n\t\t * 4. Clean up\r\n\t\t */\r\n\t\tif ( ! scrollY ) {\r\n\t\t\t/* IE7< puts a vertical scrollbar in place (when it shouldn't be) due to subtracting\r\n\t\t\t * the scrollbar height from the visible display, rather than adding it on. We need to\r\n\t\t\t * set the height in order to sort this. Don't want to do it in any other browsers.\r\n\t\t\t */\r\n\t\t\tif ( ie67 ) {\r\n\t\t\t\tdivBodyStyle.height = _fnStringToCss( tableEl.offsetHeight+barWidth );\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\t/* Finally set the width's of the header and footer tables */\r\n\t\tvar iOuterWidth = table.outerWidth();\r\n\t\tdivHeaderTable[0].style.width = _fnStringToCss( iOuterWidth );\r\n\t\tdivHeaderInnerStyle.width = _fnStringToCss( iOuterWidth );\r\n\t\r\n\t\t// Figure out if there are scrollbar present - if so then we need a the header and footer to\r\n\t\t// provide a bit more space to allow \"overflow\" scrolling (i.e. past the scrollbar)\r\n\t\tvar bScrolling = table.height() > divBodyEl.clientHeight || divBody.css('overflow-y') == \"scroll\";\r\n\t\tvar padding = 'padding' + (browser.bScrollbarLeft ? 'Left' : 'Right' );\r\n\t\tdivHeaderInnerStyle[ padding ] = bScrolling ? barWidth+\"px\" : \"0px\";\r\n\t\r\n\t\tif ( footer ) {\r\n\t\t\tdivFooterTable[0].style.width = _fnStringToCss( iOuterWidth );\r\n\t\t\tdivFooterInner[0].style.width = _fnStringToCss( iOuterWidth );\r\n\t\t\tdivFooterInner[0].style[padding] = bScrolling ? barWidth+\"px\" : \"0px\";\r\n\t\t}\r\n\t\r\n\t\t// Correct DOM ordering for colgroup - comes before the thead\r\n\t\ttable.children('colgroup').insertBefore( table.children('thead') );\r\n\t\r\n\t\t/* Adjust the position of the header in case we loose the y-scrollbar */\r\n\t\tdivBody.trigger('scroll');\r\n\t\r\n\t\t// If sorting or filtering has occurred, jump the scrolling back to the top\r\n\t\t// only if we aren't holding the position\r\n\t\tif ( (settings.bSorted || settings.bFiltered) && ! settings._drawHold ) {\r\n\t\t\tdivBodyEl.scrollTop = 0;\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t\r\n\t/**\r\n\t * Apply a given function to the display child nodes of an element array (typically\r\n\t * TD children of TR rows\r\n\t * @param {function} fn Method to apply to the objects\r\n\t * @param array {nodes} an1 List of elements to look through for display children\r\n\t * @param array {nodes} an2 Another list (identical structure to the first) - optional\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnApplyToChildren( fn, an1, an2 )\r\n\t{\r\n\t\tvar index=0, i=0, iLen=an1.length;\r\n\t\tvar nNode1, nNode2;\r\n\t\r\n\t\twhile ( i < iLen ) {\r\n\t\t\tnNode1 = an1[i].firstChild;\r\n\t\t\tnNode2 = an2 ? an2[i].firstChild : null;\r\n\t\r\n\t\t\twhile ( nNode1 ) {\r\n\t\t\t\tif ( nNode1.nodeType === 1 ) {\r\n\t\t\t\t\tif ( an2 ) {\r\n\t\t\t\t\t\tfn( nNode1, nNode2, index );\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tfn( nNode1, index );\r\n\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\tindex++;\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\tnNode1 = nNode1.nextSibling;\r\n\t\t\t\tnNode2 = an2 ? nNode2.nextSibling : null;\r\n\t\t\t}\r\n\t\r\n\t\t\ti++;\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t\r\n\tvar __re_html_remove = /<.*?>/g;\r\n\t\r\n\t\r\n\t/**\r\n\t * Calculate the width of columns for the table\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnCalculateColumnWidths ( oSettings )\r\n\t{\r\n\t\tvar\r\n\t\t\ttable = oSettings.nTable,\r\n\t\t\tcolumns = oSettings.aoColumns,\r\n\t\t\tscroll = oSettings.oScroll,\r\n\t\t\tscrollY = scroll.sY,\r\n\t\t\tscrollX = scroll.sX,\r\n\t\t\tscrollXInner = scroll.sXInner,\r\n\t\t\tcolumnCount = columns.length,\r\n\t\t\tvisibleColumns = _fnGetColumns( oSettings, 'bVisible' ),\r\n\t\t\theaderCells = $('th', oSettings.nTHead),\r\n\t\t\ttableWidthAttr = table.getAttribute('width'), // from DOM element\r\n\t\t\ttableContainer = table.parentNode,\r\n\t\t\tuserInputs = false,\r\n\t\t\ti, column, columnIdx, width, outerWidth,\r\n\t\t\tbrowser = oSettings.oBrowser,\r\n\t\t\tie67 = browser.bScrollOversize;\r\n\t\r\n\t\tvar styleWidth = table.style.width;\r\n\t\tif ( styleWidth && styleWidth.indexOf('%') !== -1 ) {\r\n\t\t\ttableWidthAttr = styleWidth;\r\n\t\t}\r\n\t\r\n\t\t/* Convert any user input sizes into pixel sizes */\r\n\t\tfor ( i=0 ; i<visibleColumns.length ; i++ ) {\r\n\t\t\tcolumn = columns[ visibleColumns[i] ];\r\n\t\r\n\t\t\tif ( column.sWidth !== null ) {\r\n\t\t\t\tcolumn.sWidth = _fnConvertToWidth( column.sWidthOrig, tableContainer );\r\n\t\r\n\t\t\t\tuserInputs = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\t/* If the number of columns in the DOM equals the number that we have to\r\n\t\t * process in DataTables, then we can use the offsets that are created by\r\n\t\t * the web- browser. No custom sizes can be set in order for this to happen,\r\n\t\t * nor scrolling used\r\n\t\t */\r\n\t\tif ( ie67 || ! userInputs && ! scrollX && ! scrollY &&\r\n\t\t columnCount == _fnVisbleColumns( oSettings ) &&\r\n\t\t columnCount == headerCells.length\r\n\t\t) {\r\n\t\t\tfor ( i=0 ; i<columnCount ; i++ ) {\r\n\t\t\t\tvar colIdx = _fnVisibleToColumnIndex( oSettings, i );\r\n\t\r\n\t\t\t\tif ( colIdx !== null ) {\r\n\t\t\t\t\tcolumns[ colIdx ].sWidth = _fnStringToCss( headerCells.eq(i).width() );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t// Otherwise construct a single row, worst case, table with the widest\r\n\t\t\t// node in the data, assign any user defined widths, then insert it into\r\n\t\t\t// the DOM and allow the browser to do all the hard work of calculating\r\n\t\t\t// table widths\r\n\t\t\tvar tmpTable = $(table).clone() // don't use cloneNode - IE8 will remove events on the main table\r\n\t\t\t\t.css( 'visibility', 'hidden' )\r\n\t\t\t\t.removeAttr( 'id' );\r\n\t\r\n\t\t\t// Clean up the table body\r\n\t\t\ttmpTable.find('tbody tr').remove();\r\n\t\t\tvar tr = $('<tr/>').appendTo( tmpTable.find('tbody') );\r\n\t\r\n\t\t\t// Clone the table header and footer - we can't use the header / footer\r\n\t\t\t// from the cloned table, since if scrolling is active, the table's\r\n\t\t\t// real header and footer are contained in different table tags\r\n\t\t\ttmpTable.find('thead, tfoot').remove();\r\n\t\t\ttmpTable\r\n\t\t\t\t.append( $(oSettings.nTHead).clone() )\r\n\t\t\t\t.append( $(oSettings.nTFoot).clone() );\r\n\t\r\n\t\t\t// Remove any assigned widths from the footer (from scrolling)\r\n\t\t\ttmpTable.find('tfoot th, tfoot td').css('width', '');\r\n\t\r\n\t\t\t// Apply custom sizing to the cloned header\r\n\t\t\theaderCells = _fnGetUniqueThs( oSettings, tmpTable.find('thead')[0] );\r\n\t\r\n\t\t\tfor ( i=0 ; i<visibleColumns.length ; i++ ) {\r\n\t\t\t\tcolumn = columns[ visibleColumns[i] ];\r\n\t\r\n\t\t\t\theaderCells[i].style.width = column.sWidthOrig !== null && column.sWidthOrig !== '' ?\r\n\t\t\t\t\t_fnStringToCss( column.sWidthOrig ) :\r\n\t\t\t\t\t'';\r\n\t\r\n\t\t\t\t// For scrollX we need to force the column width otherwise the\r\n\t\t\t\t// browser will collapse it. If this width is smaller than the\r\n\t\t\t\t// width the column requires, then it will have no effect\r\n\t\t\t\tif ( column.sWidthOrig && scrollX ) {\r\n\t\t\t\t\t$( headerCells[i] ).append( $('<div/>').css( {\r\n\t\t\t\t\t\twidth: column.sWidthOrig,\r\n\t\t\t\t\t\tmargin: 0,\r\n\t\t\t\t\t\tpadding: 0,\r\n\t\t\t\t\t\tborder: 0,\r\n\t\t\t\t\t\theight: 1\r\n\t\t\t\t\t} ) );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\r\n\t\t\t// Find the widest cell for each column and put it into the table\r\n\t\t\tif ( oSettings.aoData.length ) {\r\n\t\t\t\tfor ( i=0 ; i<visibleColumns.length ; i++ ) {\r\n\t\t\t\t\tcolumnIdx = visibleColumns[i];\r\n\t\t\t\t\tcolumn = columns[ columnIdx ];\r\n\t\r\n\t\t\t\t\t$( _fnGetWidestNode( oSettings, columnIdx ) )\r\n\t\t\t\t\t\t.clone( false )\r\n\t\t\t\t\t\t.append( column.sContentPadding )\r\n\t\t\t\t\t\t.appendTo( tr );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\r\n\t\t\t// Tidy the temporary table - remove name attributes so there aren't\r\n\t\t\t// duplicated in the dom (radio elements for example)\r\n\t\t\t$('[name]', tmpTable).removeAttr('name');\r\n\t\r\n\t\t\t// Table has been built, attach to the document so we can work with it.\r\n\t\t\t// A holding element is used, positioned at the top of the container\r\n\t\t\t// with minimal height, so it has no effect on if the container scrolls\r\n\t\t\t// or not. Otherwise it might trigger scrolling when it actually isn't\r\n\t\t\t// needed\r\n\t\t\tvar holder = $('<div/>').css( scrollX || scrollY ?\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tposition: 'absolute',\r\n\t\t\t\t\t\ttop: 0,\r\n\t\t\t\t\t\tleft: 0,\r\n\t\t\t\t\t\theight: 1,\r\n\t\t\t\t\t\tright: 0,\r\n\t\t\t\t\t\toverflow: 'hidden'\r\n\t\t\t\t\t} :\r\n\t\t\t\t\t{}\r\n\t\t\t\t)\r\n\t\t\t\t.append( tmpTable )\r\n\t\t\t\t.appendTo( tableContainer );\r\n\t\r\n\t\t\t// When scrolling (X or Y) we want to set the width of the table as \r\n\t\t\t// appropriate. However, when not scrolling leave the table width as it\r\n\t\t\t// is. This results in slightly different, but I think correct behaviour\r\n\t\t\tif ( scrollX && scrollXInner ) {\r\n\t\t\t\ttmpTable.width( scrollXInner );\r\n\t\t\t}\r\n\t\t\telse if ( scrollX ) {\r\n\t\t\t\ttmpTable.css( 'width', 'auto' );\r\n\t\t\t\ttmpTable.removeAttr('width');\r\n\t\r\n\t\t\t\t// If there is no width attribute or style, then allow the table to\r\n\t\t\t\t// collapse\r\n\t\t\t\tif ( tmpTable.width() < tableContainer.clientWidth && tableWidthAttr ) {\r\n\t\t\t\t\ttmpTable.width( tableContainer.clientWidth );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse if ( scrollY ) {\r\n\t\t\t\ttmpTable.width( tableContainer.clientWidth );\r\n\t\t\t}\r\n\t\t\telse if ( tableWidthAttr ) {\r\n\t\t\t\ttmpTable.width( tableWidthAttr );\r\n\t\t\t}\r\n\t\r\n\t\t\t// Get the width of each column in the constructed table - we need to\r\n\t\t\t// know the inner width (so it can be assigned to the other table's\r\n\t\t\t// cells) and the outer width so we can calculate the full width of the\r\n\t\t\t// table. This is safe since DataTables requires a unique cell for each\r\n\t\t\t// column, but if ever a header can span multiple columns, this will\r\n\t\t\t// need to be modified.\r\n\t\t\tvar total = 0;\r\n\t\t\tfor ( i=0 ; i<visibleColumns.length ; i++ ) {\r\n\t\t\t\tvar cell = $(headerCells[i]);\r\n\t\t\t\tvar border = cell.outerWidth() - cell.width();\r\n\t\r\n\t\t\t\t// Use getBounding... where possible (not IE8-) because it can give\r\n\t\t\t\t// sub-pixel accuracy, which we then want to round up!\r\n\t\t\t\tvar bounding = browser.bBounding ?\r\n\t\t\t\t\tMath.ceil( headerCells[i].getBoundingClientRect().width ) :\r\n\t\t\t\t\tcell.outerWidth();\r\n\t\r\n\t\t\t\t// Total is tracked to remove any sub-pixel errors as the outerWidth\r\n\t\t\t\t// of the table might not equal the total given here (IE!).\r\n\t\t\t\ttotal += bounding;\r\n\t\r\n\t\t\t\t// Width for each column to use\r\n\t\t\t\tcolumns[ visibleColumns[i] ].sWidth = _fnStringToCss( bounding - border );\r\n\t\t\t}\r\n\t\r\n\t\t\ttable.style.width = _fnStringToCss( total );\r\n\t\r\n\t\t\t// Finished with the table - ditch it\r\n\t\t\tholder.remove();\r\n\t\t}\r\n\t\r\n\t\t// If there is a width attr, we want to attach an event listener which\r\n\t\t// allows the table sizing to automatically adjust when the window is\r\n\t\t// resized. Use the width attr rather than CSS, since we can't know if the\r\n\t\t// CSS is a relative value or absolute - DOM read is always px.\r\n\t\tif ( tableWidthAttr ) {\r\n\t\t\ttable.style.width = _fnStringToCss( tableWidthAttr );\r\n\t\t}\r\n\t\r\n\t\tif ( (tableWidthAttr || scrollX) && ! oSettings._reszEvt ) {\r\n\t\t\tvar bindResize = function () {\r\n\t\t\t\t$(window).on('resize.DT-'+oSettings.sInstance, _fnThrottle( function () {\r\n\t\t\t\t\t_fnAdjustColumnSizing( oSettings );\r\n\t\t\t\t} ) );\r\n\t\t\t};\r\n\t\r\n\t\t\t// IE6/7 will crash if we bind a resize event handler on page load.\r\n\t\t\t// To be removed in 1.11 which drops IE6/7 support\r\n\t\t\tif ( ie67 ) {\r\n\t\t\t\tsetTimeout( bindResize, 1000 );\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tbindResize();\r\n\t\t\t}\r\n\t\r\n\t\t\toSettings._reszEvt = true;\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Throttle the calls to a function. Arguments and context are maintained for\r\n\t * the throttled function\r\n\t * @param {function} fn Function to be called\r\n\t * @param {int} [freq=200] call frequency in mS\r\n\t * @returns {function} wrapped function\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tvar _fnThrottle = DataTable.util.throttle;\r\n\t\r\n\t\r\n\t/**\r\n\t * Convert a CSS unit width to pixels (e.g. 2em)\r\n\t * @param {string} width width to be converted\r\n\t * @param {node} parent parent to get the with for (required for relative widths) - optional\r\n\t * @returns {int} width in pixels\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnConvertToWidth ( width, parent )\r\n\t{\r\n\t\tif ( ! width ) {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\r\n\t\tvar n = $('<div/>')\r\n\t\t\t.css( 'width', _fnStringToCss( width ) )\r\n\t\t\t.appendTo( parent || document.body );\r\n\t\r\n\t\tvar val = n[0].offsetWidth;\r\n\t\tn.remove();\r\n\t\r\n\t\treturn val;\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Get the widest node\r\n\t * @param {object} settings dataTables settings object\r\n\t * @param {int} colIdx column of interest\r\n\t * @returns {node} widest table node\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnGetWidestNode( settings, colIdx )\r\n\t{\r\n\t\tvar idx = _fnGetMaxLenString( settings, colIdx );\r\n\t\tif ( idx < 0 ) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\r\n\t\tvar data = settings.aoData[ idx ];\r\n\t\treturn ! data.nTr ? // Might not have been created when deferred rendering\r\n\t\t\t$('<td/>').html( _fnGetCellData( settings, idx, colIdx, 'display' ) )[0] :\r\n\t\t\tdata.anCells[ colIdx ];\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Get the maximum strlen for each data column\r\n\t * @param {object} settings dataTables settings object\r\n\t * @param {int} colIdx column of interest\r\n\t * @returns {string} max string length for each column\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnGetMaxLenString( settings, colIdx )\r\n\t{\r\n\t\tvar s, max=-1, maxIdx = -1;\r\n\t\r\n\t\tfor ( var i=0, ien=settings.aoData.length ; i<ien ; i++ ) {\r\n\t\t\ts = _fnGetCellData( settings, i, colIdx, 'display' )+'';\r\n\t\t\ts = s.replace( __re_html_remove, '' );\r\n\t\t\ts = s.replace( / /g, ' ' );\r\n\t\r\n\t\t\tif ( s.length > max ) {\r\n\t\t\t\tmax = s.length;\r\n\t\t\t\tmaxIdx = i;\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\treturn maxIdx;\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Append a CSS unit (only if required) to a string\r\n\t * @param {string} value to css-ify\r\n\t * @returns {string} value with css unit\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnStringToCss( s )\r\n\t{\r\n\t\tif ( s === null ) {\r\n\t\t\treturn '0px';\r\n\t\t}\r\n\t\r\n\t\tif ( typeof s == 'number' ) {\r\n\t\t\treturn s < 0 ?\r\n\t\t\t\t'0px' :\r\n\t\t\t\ts+'px';\r\n\t\t}\r\n\t\r\n\t\t// Check it has a unit character already\r\n\t\treturn s.match(/\\d$/) ?\r\n\t\t\ts+'px' :\r\n\t\t\ts;\r\n\t}\r\n\t\r\n\t\r\n\t\r\n\tfunction _fnSortFlatten ( settings )\r\n\t{\r\n\t\tvar\r\n\t\t\ti, iLen, k, kLen,\r\n\t\t\taSort = [],\r\n\t\t\taiOrig = [],\r\n\t\t\taoColumns = settings.aoColumns,\r\n\t\t\taDataSort, iCol, sType, srcCol,\r\n\t\t\tfixed = settings.aaSortingFixed,\r\n\t\t\tfixedObj = $.isPlainObject( fixed ),\r\n\t\t\tnestedSort = [],\r\n\t\t\tadd = function ( a ) {\r\n\t\t\t\tif ( a.length && ! $.isArray( a[0] ) ) {\r\n\t\t\t\t\t// 1D array\r\n\t\t\t\t\tnestedSort.push( a );\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\t// 2D array\r\n\t\t\t\t\t$.merge( nestedSort, a );\r\n\t\t\t\t}\r\n\t\t\t};\r\n\t\r\n\t\t// Build the sort array, with pre-fix and post-fix options if they have been\r\n\t\t// specified\r\n\t\tif ( $.isArray( fixed ) ) {\r\n\t\t\tadd( fixed );\r\n\t\t}\r\n\t\r\n\t\tif ( fixedObj && fixed.pre ) {\r\n\t\t\tadd( fixed.pre );\r\n\t\t}\r\n\t\r\n\t\tadd( settings.aaSorting );\r\n\t\r\n\t\tif (fixedObj && fixed.post ) {\r\n\t\t\tadd( fixed.post );\r\n\t\t}\r\n\t\r\n\t\tfor ( i=0 ; i<nestedSort.length ; i++ )\r\n\t\t{\r\n\t\t\tsrcCol = nestedSort[i][0];\r\n\t\t\taDataSort = aoColumns[ srcCol ].aDataSort;\r\n\t\r\n\t\t\tfor ( k=0, kLen=aDataSort.length ; k<kLen ; k++ )\r\n\t\t\t{\r\n\t\t\t\tiCol = aDataSort[k];\r\n\t\t\t\tsType = aoColumns[ iCol ].sType || 'string';\r\n\t\r\n\t\t\t\tif ( nestedSort[i]._idx === undefined ) {\r\n\t\t\t\t\tnestedSort[i]._idx = $.inArray( nestedSort[i][1], aoColumns[iCol].asSorting );\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\taSort.push( {\r\n\t\t\t\t\tsrc: srcCol,\r\n\t\t\t\t\tcol: iCol,\r\n\t\t\t\t\tdir: nestedSort[i][1],\r\n\t\t\t\t\tindex: nestedSort[i]._idx,\r\n\t\t\t\t\ttype: sType,\r\n\t\t\t\t\tformatter: DataTable.ext.type.order[ sType+\"-pre\" ]\r\n\t\t\t\t} );\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\treturn aSort;\r\n\t}\r\n\t\r\n\t/**\r\n\t * Change the order of the table\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @memberof DataTable#oApi\r\n\t * @todo This really needs split up!\r\n\t */\r\n\tfunction _fnSort ( oSettings )\r\n\t{\r\n\t\tvar\r\n\t\t\ti, ien, iLen, j, jLen, k, kLen,\r\n\t\t\tsDataType, nTh,\r\n\t\t\taiOrig = [],\r\n\t\t\toExtSort = DataTable.ext.type.order,\r\n\t\t\taoData = oSettings.aoData,\r\n\t\t\taoColumns = oSettings.aoColumns,\r\n\t\t\taDataSort, data, iCol, sType, oSort,\r\n\t\t\tformatters = 0,\r\n\t\t\tsortCol,\r\n\t\t\tdisplayMaster = oSettings.aiDisplayMaster,\r\n\t\t\taSort;\r\n\t\r\n\t\t// Resolve any column types that are unknown due to addition or invalidation\r\n\t\t// @todo Can this be moved into a 'data-ready' handler which is called when\r\n\t\t// data is going to be used in the table?\r\n\t\t_fnColumnTypes( oSettings );\r\n\t\r\n\t\taSort = _fnSortFlatten( oSettings );\r\n\t\r\n\t\tfor ( i=0, ien=aSort.length ; i<ien ; i++ ) {\r\n\t\t\tsortCol = aSort[i];\r\n\t\r\n\t\t\t// Track if we can use the fast sort algorithm\r\n\t\t\tif ( sortCol.formatter ) {\r\n\t\t\t\tformatters++;\r\n\t\t\t}\r\n\t\r\n\t\t\t// Load the data needed for the sort, for each cell\r\n\t\t\t_fnSortData( oSettings, sortCol.col );\r\n\t\t}\r\n\t\r\n\t\t/* No sorting required if server-side or no sorting array */\r\n\t\tif ( _fnDataSource( oSettings ) != 'ssp' && aSort.length !== 0 )\r\n\t\t{\r\n\t\t\t// Create a value - key array of the current row positions such that we can use their\r\n\t\t\t// current position during the sort, if values match, in order to perform stable sorting\r\n\t\t\tfor ( i=0, iLen=displayMaster.length ; i<iLen ; i++ ) {\r\n\t\t\t\taiOrig[ displayMaster[i] ] = i;\r\n\t\t\t}\r\n\t\r\n\t\t\t/* Do the sort - here we want multi-column sorting based on a given data source (column)\r\n\t\t\t * and sorting function (from oSort) in a certain direction. It's reasonably complex to\r\n\t\t\t * follow on it's own, but this is what we want (example two column sorting):\r\n\t\t\t * fnLocalSorting = function(a,b){\r\n\t\t\t * var iTest;\r\n\t\t\t * iTest = oSort['string-asc']('data11', 'data12');\r\n\t\t\t * if (iTest !== 0)\r\n\t\t\t * return iTest;\r\n\t\t\t * iTest = oSort['numeric-desc']('data21', 'data22');\r\n\t\t\t * if (iTest !== 0)\r\n\t\t\t * return iTest;\r\n\t\t\t * return oSort['numeric-asc']( aiOrig[a], aiOrig[b] );\r\n\t\t\t * }\r\n\t\t\t * Basically we have a test for each sorting column, if the data in that column is equal,\r\n\t\t\t * test the next column. If all columns match, then we use a numeric sort on the row\r\n\t\t\t * positions in the original data array to provide a stable sort.\r\n\t\t\t *\r\n\t\t\t * Note - I know it seems excessive to have two sorting methods, but the first is around\r\n\t\t\t * 15% faster, so the second is only maintained for backwards compatibility with sorting\r\n\t\t\t * methods which do not have a pre-sort formatting function.\r\n\t\t\t */\r\n\t\t\tif ( formatters === aSort.length ) {\r\n\t\t\t\t// All sort types have formatting functions\r\n\t\t\t\tdisplayMaster.sort( function ( a, b ) {\r\n\t\t\t\t\tvar\r\n\t\t\t\t\t\tx, y, k, test, sort,\r\n\t\t\t\t\t\tlen=aSort.length,\r\n\t\t\t\t\t\tdataA = aoData[a]._aSortData,\r\n\t\t\t\t\t\tdataB = aoData[b]._aSortData;\r\n\t\r\n\t\t\t\t\tfor ( k=0 ; k<len ; k++ ) {\r\n\t\t\t\t\t\tsort = aSort[k];\r\n\t\r\n\t\t\t\t\t\tx = dataA[ sort.col ];\r\n\t\t\t\t\t\ty = dataB[ sort.col ];\r\n\t\r\n\t\t\t\t\t\ttest = x<y ? -1 : x>y ? 1 : 0;\r\n\t\t\t\t\t\tif ( test !== 0 ) {\r\n\t\t\t\t\t\t\treturn sort.dir === 'asc' ? test : -test;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\tx = aiOrig[a];\r\n\t\t\t\t\ty = aiOrig[b];\r\n\t\t\t\t\treturn x<y ? -1 : x>y ? 1 : 0;\r\n\t\t\t\t} );\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t// Depreciated - remove in 1.11 (providing a plug-in option)\r\n\t\t\t\t// Not all sort types have formatting methods, so we have to call their sorting\r\n\t\t\t\t// methods.\r\n\t\t\t\tdisplayMaster.sort( function ( a, b ) {\r\n\t\t\t\t\tvar\r\n\t\t\t\t\t\tx, y, k, l, test, sort, fn,\r\n\t\t\t\t\t\tlen=aSort.length,\r\n\t\t\t\t\t\tdataA = aoData[a]._aSortData,\r\n\t\t\t\t\t\tdataB = aoData[b]._aSortData;\r\n\t\r\n\t\t\t\t\tfor ( k=0 ; k<len ; k++ ) {\r\n\t\t\t\t\t\tsort = aSort[k];\r\n\t\r\n\t\t\t\t\t\tx = dataA[ sort.col ];\r\n\t\t\t\t\t\ty = dataB[ sort.col ];\r\n\t\r\n\t\t\t\t\t\tfn = oExtSort[ sort.type+\"-\"+sort.dir ] || oExtSort[ \"string-\"+sort.dir ];\r\n\t\t\t\t\t\ttest = fn( x, y );\r\n\t\t\t\t\t\tif ( test !== 0 ) {\r\n\t\t\t\t\t\t\treturn test;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\tx = aiOrig[a];\r\n\t\t\t\t\ty = aiOrig[b];\r\n\t\t\t\t\treturn x<y ? -1 : x>y ? 1 : 0;\r\n\t\t\t\t} );\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\t/* Tell the draw function that we have sorted the data */\r\n\t\toSettings.bSorted = true;\r\n\t}\r\n\t\r\n\t\r\n\tfunction _fnSortAria ( settings )\r\n\t{\r\n\t\tvar label;\r\n\t\tvar nextSort;\r\n\t\tvar columns = settings.aoColumns;\r\n\t\tvar aSort = _fnSortFlatten( settings );\r\n\t\tvar oAria = settings.oLanguage.oAria;\r\n\t\r\n\t\t// ARIA attributes - need to loop all columns, to update all (removing old\r\n\t\t// attributes as needed)\r\n\t\tfor ( var i=0, iLen=columns.length ; i<iLen ; i++ )\r\n\t\t{\r\n\t\t\tvar col = columns[i];\r\n\t\t\tvar asSorting = col.asSorting;\r\n\t\t\tvar sTitle = col.sTitle.replace( /<.*?>/g, \"\" );\r\n\t\t\tvar th = col.nTh;\r\n\t\r\n\t\t\t// IE7 is throwing an error when setting these properties with jQuery's\r\n\t\t\t// attr() and removeAttr() methods...\r\n\t\t\tth.removeAttribute('aria-sort');\r\n\t\r\n\t\t\t/* In ARIA only the first sorting column can be marked as sorting - no multi-sort option */\r\n\t\t\tif ( col.bSortable ) {\r\n\t\t\t\tif ( aSort.length > 0 && aSort[0].col == i ) {\r\n\t\t\t\t\tth.setAttribute('aria-sort', aSort[0].dir==\"asc\" ? \"ascending\" : \"descending\" );\r\n\t\t\t\t\tnextSort = asSorting[ aSort[0].index+1 ] || asSorting[0];\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tnextSort = asSorting[0];\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\tlabel = sTitle + ( nextSort === \"asc\" ?\r\n\t\t\t\t\toAria.sSortAscending :\r\n\t\t\t\t\toAria.sSortDescending\r\n\t\t\t\t);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tlabel = sTitle;\r\n\t\t\t}\r\n\t\r\n\t\t\tth.setAttribute('aria-label', label);\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Function to run on user sort request\r\n\t * @param {object} settings dataTables settings object\r\n\t * @param {node} attachTo node to attach the handler to\r\n\t * @param {int} colIdx column sorting index\r\n\t * @param {boolean} [append=false] Append the requested sort to the existing\r\n\t * sort if true (i.e. multi-column sort)\r\n\t * @param {function} [callback] callback function\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnSortListener ( settings, colIdx, append, callback )\r\n\t{\r\n\t\tvar col = settings.aoColumns[ colIdx ];\r\n\t\tvar sorting = settings.aaSorting;\r\n\t\tvar asSorting = col.asSorting;\r\n\t\tvar nextSortIdx;\r\n\t\tvar next = function ( a, overflow ) {\r\n\t\t\tvar idx = a._idx;\r\n\t\t\tif ( idx === undefined ) {\r\n\t\t\t\tidx = $.inArray( a[1], asSorting );\r\n\t\t\t}\r\n\t\r\n\t\t\treturn idx+1 < asSorting.length ?\r\n\t\t\t\tidx+1 :\r\n\t\t\t\toverflow ?\r\n\t\t\t\t\tnull :\r\n\t\t\t\t\t0;\r\n\t\t};\r\n\t\r\n\t\t// Convert to 2D array if needed\r\n\t\tif ( typeof sorting[0] === 'number' ) {\r\n\t\t\tsorting = settings.aaSorting = [ sorting ];\r\n\t\t}\r\n\t\r\n\t\t// If appending the sort then we are multi-column sorting\r\n\t\tif ( append && settings.oFeatures.bSortMulti ) {\r\n\t\t\t// Are we already doing some kind of sort on this column?\r\n\t\t\tvar sortIdx = $.inArray( colIdx, _pluck(sorting, '0') );\r\n\t\r\n\t\t\tif ( sortIdx !== -1 ) {\r\n\t\t\t\t// Yes, modify the sort\r\n\t\t\t\tnextSortIdx = next( sorting[sortIdx], true );\r\n\t\r\n\t\t\t\tif ( nextSortIdx === null && sorting.length === 1 ) {\r\n\t\t\t\t\tnextSortIdx = 0; // can't remove sorting completely\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\tif ( nextSortIdx === null ) {\r\n\t\t\t\t\tsorting.splice( sortIdx, 1 );\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tsorting[sortIdx][1] = asSorting[ nextSortIdx ];\r\n\t\t\t\t\tsorting[sortIdx]._idx = nextSortIdx;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t// No sort on this column yet\r\n\t\t\t\tsorting.push( [ colIdx, asSorting[0], 0 ] );\r\n\t\t\t\tsorting[sorting.length-1]._idx = 0;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if ( sorting.length && sorting[0][0] == colIdx ) {\r\n\t\t\t// Single column - already sorting on this column, modify the sort\r\n\t\t\tnextSortIdx = next( sorting[0] );\r\n\t\r\n\t\t\tsorting.length = 1;\r\n\t\t\tsorting[0][1] = asSorting[ nextSortIdx ];\r\n\t\t\tsorting[0]._idx = nextSortIdx;\r\n\t\t}\r\n\t\telse {\r\n\t\t\t// Single column - sort only on this column\r\n\t\t\tsorting.length = 0;\r\n\t\t\tsorting.push( [ colIdx, asSorting[0] ] );\r\n\t\t\tsorting[0]._idx = 0;\r\n\t\t}\r\n\t\r\n\t\t// Run the sort by calling a full redraw\r\n\t\t_fnReDraw( settings );\r\n\t\r\n\t\t// callback used for async user interaction\r\n\t\tif ( typeof callback == 'function' ) {\r\n\t\t\tcallback( settings );\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Attach a sort handler (click) to a node\r\n\t * @param {object} settings dataTables settings object\r\n\t * @param {node} attachTo node to attach the handler to\r\n\t * @param {int} colIdx column sorting index\r\n\t * @param {function} [callback] callback function\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnSortAttachListener ( settings, attachTo, colIdx, callback )\r\n\t{\r\n\t\tvar col = settings.aoColumns[ colIdx ];\r\n\t\r\n\t\t_fnBindAction( attachTo, {}, function (e) {\r\n\t\t\t/* If the column is not sortable - don't to anything */\r\n\t\t\tif ( col.bSortable === false ) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\r\n\t\t\t// If processing is enabled use a timeout to allow the processing\r\n\t\t\t// display to be shown - otherwise to it synchronously\r\n\t\t\tif ( settings.oFeatures.bProcessing ) {\r\n\t\t\t\t_fnProcessingDisplay( settings, true );\r\n\t\r\n\t\t\t\tsetTimeout( function() {\r\n\t\t\t\t\t_fnSortListener( settings, colIdx, e.shiftKey, callback );\r\n\t\r\n\t\t\t\t\t// In server-side processing, the draw callback will remove the\r\n\t\t\t\t\t// processing display\r\n\t\t\t\t\tif ( _fnDataSource( settings ) !== 'ssp' ) {\r\n\t\t\t\t\t\t_fnProcessingDisplay( settings, false );\r\n\t\t\t\t\t}\r\n\t\t\t\t}, 0 );\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t_fnSortListener( settings, colIdx, e.shiftKey, callback );\r\n\t\t\t}\r\n\t\t} );\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Set the sorting classes on table's body, Note: it is safe to call this function\r\n\t * when bSort and bSortClasses are false\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnSortingClasses( settings )\r\n\t{\r\n\t\tvar oldSort = settings.aLastSort;\r\n\t\tvar sortClass = settings.oClasses.sSortColumn;\r\n\t\tvar sort = _fnSortFlatten( settings );\r\n\t\tvar features = settings.oFeatures;\r\n\t\tvar i, ien, colIdx;\r\n\t\r\n\t\tif ( features.bSort && features.bSortClasses ) {\r\n\t\t\t// Remove old sorting classes\r\n\t\t\tfor ( i=0, ien=oldSort.length ; i<ien ; i++ ) {\r\n\t\t\t\tcolIdx = oldSort[i].src;\r\n\t\r\n\t\t\t\t// Remove column sorting\r\n\t\t\t\t$( _pluck( settings.aoData, 'anCells', colIdx ) )\r\n\t\t\t\t\t.removeClass( sortClass + (i<2 ? i+1 : 3) );\r\n\t\t\t}\r\n\t\r\n\t\t\t// Add new column sorting\r\n\t\t\tfor ( i=0, ien=sort.length ; i<ien ; i++ ) {\r\n\t\t\t\tcolIdx = sort[i].src;\r\n\t\r\n\t\t\t\t$( _pluck( settings.aoData, 'anCells', colIdx ) )\r\n\t\t\t\t\t.addClass( sortClass + (i<2 ? i+1 : 3) );\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\tsettings.aLastSort = sort;\r\n\t}\r\n\t\r\n\t\r\n\t// Get the data to sort a column, be it from cache, fresh (populating the\r\n\t// cache), or from a sort formatter\r\n\tfunction _fnSortData( settings, idx )\r\n\t{\r\n\t\t// Custom sorting function - provided by the sort data type\r\n\t\tvar column = settings.aoColumns[ idx ];\r\n\t\tvar customSort = DataTable.ext.order[ column.sSortDataType ];\r\n\t\tvar customData;\r\n\t\r\n\t\tif ( customSort ) {\r\n\t\t\tcustomData = customSort.call( settings.oInstance, settings, idx,\r\n\t\t\t\t_fnColumnIndexToVisible( settings, idx )\r\n\t\t\t);\r\n\t\t}\r\n\t\r\n\t\t// Use / populate cache\r\n\t\tvar row, cellData;\r\n\t\tvar formatter = DataTable.ext.type.order[ column.sType+\"-pre\" ];\r\n\t\r\n\t\tfor ( var i=0, ien=settings.aoData.length ; i<ien ; i++ ) {\r\n\t\t\trow = settings.aoData[i];\r\n\t\r\n\t\t\tif ( ! row._aSortData ) {\r\n\t\t\t\trow._aSortData = [];\r\n\t\t\t}\r\n\t\r\n\t\t\tif ( ! row._aSortData[idx] || customSort ) {\r\n\t\t\t\tcellData = customSort ?\r\n\t\t\t\t\tcustomData[i] : // If there was a custom sort function, use data from there\r\n\t\t\t\t\t_fnGetCellData( settings, i, idx, 'sort' );\r\n\t\r\n\t\t\t\trow._aSortData[ idx ] = formatter ?\r\n\t\t\t\t\tformatter( cellData ) :\r\n\t\t\t\t\tcellData;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t\r\n\t/**\r\n\t * Save the state of a table\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnSaveState ( settings )\r\n\t{\r\n\t\tif ( !settings.oFeatures.bStateSave || settings.bDestroying )\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\t\r\n\t\t/* Store the interesting variables */\r\n\t\tvar state = {\r\n\t\t\ttime: +new Date(),\r\n\t\t\tstart: settings._iDisplayStart,\r\n\t\t\tlength: settings._iDisplayLength,\r\n\t\t\torder: $.extend( true, [], settings.aaSorting ),\r\n\t\t\tsearch: _fnSearchToCamel( settings.oPreviousSearch ),\r\n\t\t\tcolumns: $.map( settings.aoColumns, function ( col, i ) {\r\n\t\t\t\treturn {\r\n\t\t\t\t\tvisible: col.bVisible,\r\n\t\t\t\t\tsearch: _fnSearchToCamel( settings.aoPreSearchCols[i] )\r\n\t\t\t\t};\r\n\t\t\t} )\r\n\t\t};\r\n\t\r\n\t\t_fnCallbackFire( settings, \"aoStateSaveParams\", 'stateSaveParams', [settings, state] );\r\n\t\r\n\t\tsettings.oSavedState = state;\r\n\t\tsettings.fnStateSaveCallback.call( settings.oInstance, settings, state );\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Attempt to load a saved table state\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @param {object} oInit DataTables init object so we can override settings\r\n\t * @param {function} callback Callback to execute when the state has been loaded\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnLoadState ( settings, oInit, callback )\r\n\t{\r\n\t\tvar i, ien;\r\n\t\tvar columns = settings.aoColumns;\r\n\t\tvar loaded = function ( s ) {\r\n\t\t\tif ( ! s || ! s.time ) {\r\n\t\t\t\tcallback();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\r\n\t\t\t// Allow custom and plug-in manipulation functions to alter the saved data set and\r\n\t\t\t// cancelling of loading by returning false\r\n\t\t\tvar abStateLoad = _fnCallbackFire( settings, 'aoStateLoadParams', 'stateLoadParams', [settings, s] );\r\n\t\t\tif ( $.inArray( false, abStateLoad ) !== -1 ) {\r\n\t\t\t\tcallback();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\r\n\t\t\t// Reject old data\r\n\t\t\tvar duration = settings.iStateDuration;\r\n\t\t\tif ( duration > 0 && s.time < +new Date() - (duration*1000) ) {\r\n\t\t\t\tcallback();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\r\n\t\t\t// Number of columns have changed - all bets are off, no restore of settings\r\n\t\t\tif ( s.columns && columns.length !== s.columns.length ) {\r\n\t\t\t\tcallback();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\r\n\t\t\t// Store the saved state so it might be accessed at any time\r\n\t\t\tsettings.oLoadedState = $.extend( true, {}, s );\r\n\t\r\n\t\t\t// Restore key features - todo - for 1.11 this needs to be done by\r\n\t\t\t// subscribed events\r\n\t\t\tif ( s.start !== undefined ) {\r\n\t\t\t\tsettings._iDisplayStart = s.start;\r\n\t\t\t\tsettings.iInitDisplayStart = s.start;\r\n\t\t\t}\r\n\t\t\tif ( s.length !== undefined ) {\r\n\t\t\t\tsettings._iDisplayLength = s.length;\r\n\t\t\t}\r\n\t\r\n\t\t\t// Order\r\n\t\t\tif ( s.order !== undefined ) {\r\n\t\t\t\tsettings.aaSorting = [];\r\n\t\t\t\t$.each( s.order, function ( i, col ) {\r\n\t\t\t\t\tsettings.aaSorting.push( col[0] >= columns.length ?\r\n\t\t\t\t\t\t[ 0, col[1] ] :\r\n\t\t\t\t\t\tcol\r\n\t\t\t\t\t);\r\n\t\t\t\t} );\r\n\t\t\t}\r\n\t\r\n\t\t\t// Search\r\n\t\t\tif ( s.search !== undefined ) {\r\n\t\t\t\t$.extend( settings.oPreviousSearch, _fnSearchToHung( s.search ) );\r\n\t\t\t}\r\n\t\r\n\t\t\t// Columns\r\n\t\t\t//\r\n\t\t\tif ( s.columns ) {\r\n\t\t\t\tfor ( i=0, ien=s.columns.length ; i<ien ; i++ ) {\r\n\t\t\t\t\tvar col = s.columns[i];\r\n\t\r\n\t\t\t\t\t// Visibility\r\n\t\t\t\t\tif ( col.visible !== undefined ) {\r\n\t\t\t\t\t\tcolumns[i].bVisible = col.visible;\r\n\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\t// Search\r\n\t\t\t\t\tif ( col.search !== undefined ) {\r\n\t\t\t\t\t\t$.extend( settings.aoPreSearchCols[i], _fnSearchToHung( col.search ) );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\r\n\t\t\t_fnCallbackFire( settings, 'aoStateLoaded', 'stateLoaded', [settings, s] );\r\n\t\t\tcallback();\r\n\t\t};\r\n\t\r\n\t\tif ( ! settings.oFeatures.bStateSave ) {\r\n\t\t\tcallback();\r\n\t\t\treturn;\r\n\t\t}\r\n\t\r\n\t\tvar state = settings.fnStateLoadCallback.call( settings.oInstance, settings, loaded );\r\n\t\r\n\t\tif ( state !== undefined ) {\r\n\t\t\tloaded( state );\r\n\t\t}\r\n\t\t// otherwise, wait for the loaded callback to be executed\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Return the settings object for a particular table\r\n\t * @param {node} table table we are using as a dataTable\r\n\t * @returns {object} Settings object - or null if not found\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnSettingsFromNode ( table )\r\n\t{\r\n\t\tvar settings = DataTable.settings;\r\n\t\tvar idx = $.inArray( table, _pluck( settings, 'nTable' ) );\r\n\t\r\n\t\treturn idx !== -1 ?\r\n\t\t\tsettings[ idx ] :\r\n\t\t\tnull;\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Log an error message\r\n\t * @param {object} settings dataTables settings object\r\n\t * @param {int} level log error messages, or display them to the user\r\n\t * @param {string} msg error message\r\n\t * @param {int} tn Technical note id to get more information about the error.\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnLog( settings, level, msg, tn )\r\n\t{\r\n\t\tmsg = 'DataTables warning: '+\r\n\t\t\t(settings ? 'table id='+settings.sTableId+' - ' : '')+msg;\r\n\t\r\n\t\tif ( tn ) {\r\n\t\t\tmsg += '. For more information about this error, please see '+\r\n\t\t\t'http://datatables.net/tn/'+tn;\r\n\t\t}\r\n\t\r\n\t\tif ( ! level ) {\r\n\t\t\t// Backwards compatibility pre 1.10\r\n\t\t\tvar ext = DataTable.ext;\r\n\t\t\tvar type = ext.sErrMode || ext.errMode;\r\n\t\r\n\t\t\tif ( settings ) {\r\n\t\t\t\t_fnCallbackFire( settings, null, 'error', [ settings, tn, msg ] );\r\n\t\t\t}\r\n\t\r\n\t\t\tif ( type == 'alert' ) {\r\n\t\t\t\talert( msg );\r\n\t\t\t}\r\n\t\t\telse if ( type == 'throw' ) {\r\n\t\t\t\tthrow new Error(msg);\r\n\t\t\t}\r\n\t\t\telse if ( typeof type == 'function' ) {\r\n\t\t\t\ttype( settings, tn, msg );\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if ( window.console && console.log ) {\r\n\t\t\tconsole.log( msg );\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * See if a property is defined on one object, if so assign it to the other object\r\n\t * @param {object} ret target object\r\n\t * @param {object} src source object\r\n\t * @param {string} name property\r\n\t * @param {string} [mappedName] name to map too - optional, name used if not given\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnMap( ret, src, name, mappedName )\r\n\t{\r\n\t\tif ( $.isArray( name ) ) {\r\n\t\t\t$.each( name, function (i, val) {\r\n\t\t\t\tif ( $.isArray( val ) ) {\r\n\t\t\t\t\t_fnMap( ret, src, val[0], val[1] );\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\t_fnMap( ret, src, val );\r\n\t\t\t\t}\r\n\t\t\t} );\r\n\t\r\n\t\t\treturn;\r\n\t\t}\r\n\t\r\n\t\tif ( mappedName === undefined ) {\r\n\t\t\tmappedName = name;\r\n\t\t}\r\n\t\r\n\t\tif ( src[name] !== undefined ) {\r\n\t\t\tret[mappedName] = src[name];\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Extend objects - very similar to jQuery.extend, but deep copy objects, and\r\n\t * shallow copy arrays. The reason we need to do this, is that we don't want to\r\n\t * deep copy array init values (such as aaSorting) since the dev wouldn't be\r\n\t * able to override them, but we do want to deep copy arrays.\r\n\t * @param {object} out Object to extend\r\n\t * @param {object} extender Object from which the properties will be applied to\r\n\t * out\r\n\t * @param {boolean} breakRefs If true, then arrays will be sliced to take an\r\n\t * independent copy with the exception of the `data` or `aaData` parameters\r\n\t * if they are present. This is so you can pass in a collection to\r\n\t * DataTables and have that used as your data source without breaking the\r\n\t * references\r\n\t * @returns {object} out Reference, just for convenience - out === the return.\r\n\t * @memberof DataTable#oApi\r\n\t * @todo This doesn't take account of arrays inside the deep copied objects.\r\n\t */\r\n\tfunction _fnExtend( out, extender, breakRefs )\r\n\t{\r\n\t\tvar val;\r\n\t\r\n\t\tfor ( var prop in extender ) {\r\n\t\t\tif ( extender.hasOwnProperty(prop) ) {\r\n\t\t\t\tval = extender[prop];\r\n\t\r\n\t\t\t\tif ( $.isPlainObject( val ) ) {\r\n\t\t\t\t\tif ( ! $.isPlainObject( out[prop] ) ) {\r\n\t\t\t\t\t\tout[prop] = {};\r\n\t\t\t\t\t}\r\n\t\t\t\t\t$.extend( true, out[prop], val );\r\n\t\t\t\t}\r\n\t\t\t\telse if ( breakRefs && prop !== 'data' && prop !== 'aaData' && $.isArray(val) ) {\r\n\t\t\t\t\tout[prop] = val.slice();\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tout[prop] = val;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\treturn out;\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Bind an event handers to allow a click or return key to activate the callback.\r\n\t * This is good for accessibility since a return on the keyboard will have the\r\n\t * same effect as a click, if the element has focus.\r\n\t * @param {element} n Element to bind the action to\r\n\t * @param {object} oData Data object to pass to the triggered function\r\n\t * @param {function} fn Callback function for when the event is triggered\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnBindAction( n, oData, fn )\r\n\t{\r\n\t\t$(n)\r\n\t\t\t.on( 'click.DT', oData, function (e) {\r\n\t\t\t\t\t$(n).blur(); // Remove focus outline for mouse users\r\n\t\t\t\t\tfn(e);\r\n\t\t\t\t} )\r\n\t\t\t.on( 'keypress.DT', oData, function (e){\r\n\t\t\t\t\tif ( e.which === 13 ) {\r\n\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\tfn(e);\r\n\t\t\t\t\t}\r\n\t\t\t\t} )\r\n\t\t\t.on( 'selectstart.DT', function () {\r\n\t\t\t\t\t/* Take the brutal approach to cancelling text selection */\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t} );\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Register a callback function. Easily allows a callback function to be added to\r\n\t * an array store of callback functions that can then all be called together.\r\n\t * @param {object} oSettings dataTables settings object\r\n\t * @param {string} sStore Name of the array storage for the callbacks in oSettings\r\n\t * @param {function} fn Function to be called back\r\n\t * @param {string} sName Identifying name for the callback (i.e. a label)\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnCallbackReg( oSettings, sStore, fn, sName )\r\n\t{\r\n\t\tif ( fn )\r\n\t\t{\r\n\t\t\toSettings[sStore].push( {\r\n\t\t\t\t\"fn\": fn,\r\n\t\t\t\t\"sName\": sName\r\n\t\t\t} );\r\n\t\t}\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Fire callback functions and trigger events. Note that the loop over the\r\n\t * callback array store is done backwards! Further note that you do not want to\r\n\t * fire off triggers in time sensitive applications (for example cell creation)\r\n\t * as its slow.\r\n\t * @param {object} settings dataTables settings object\r\n\t * @param {string} callbackArr Name of the array storage for the callbacks in\r\n\t * oSettings\r\n\t * @param {string} eventName Name of the jQuery custom event to trigger. If\r\n\t * null no trigger is fired\r\n\t * @param {array} args Array of arguments to pass to the callback function /\r\n\t * trigger\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnCallbackFire( settings, callbackArr, eventName, args )\r\n\t{\r\n\t\tvar ret = [];\r\n\t\r\n\t\tif ( callbackArr ) {\r\n\t\t\tret = $.map( settings[callbackArr].slice().reverse(), function (val, i) {\r\n\t\t\t\treturn val.fn.apply( settings.oInstance, args );\r\n\t\t\t} );\r\n\t\t}\r\n\t\r\n\t\tif ( eventName !== null ) {\r\n\t\t\tvar e = $.Event( eventName+'.dt' );\r\n\t\r\n\t\t\t$(settings.nTable).trigger( e, args );\r\n\t\r\n\t\t\tret.push( e.result );\r\n\t\t}\r\n\t\r\n\t\treturn ret;\r\n\t}\r\n\t\r\n\t\r\n\tfunction _fnLengthOverflow ( settings )\r\n\t{\r\n\t\tvar\r\n\t\t\tstart = settings._iDisplayStart,\r\n\t\t\tend = settings.fnDisplayEnd(),\r\n\t\t\tlen = settings._iDisplayLength;\r\n\t\r\n\t\t/* If we have space to show extra rows (backing up from the end point - then do so */\r\n\t\tif ( start >= end )\r\n\t\t{\r\n\t\t\tstart = end - len;\r\n\t\t}\r\n\t\r\n\t\t// Keep the start record on the current page\r\n\t\tstart -= (start % len);\r\n\t\r\n\t\tif ( len === -1 || start < 0 )\r\n\t\t{\r\n\t\t\tstart = 0;\r\n\t\t}\r\n\t\r\n\t\tsettings._iDisplayStart = start;\r\n\t}\r\n\t\r\n\t\r\n\tfunction _fnRenderer( settings, type )\r\n\t{\r\n\t\tvar renderer = settings.renderer;\r\n\t\tvar host = DataTable.ext.renderer[type];\r\n\t\r\n\t\tif ( $.isPlainObject( renderer ) && renderer[type] ) {\r\n\t\t\t// Specific renderer for this type. If available use it, otherwise use\r\n\t\t\t// the default.\r\n\t\t\treturn host[renderer[type]] || host._;\r\n\t\t}\r\n\t\telse if ( typeof renderer === 'string' ) {\r\n\t\t\t// Common renderer - if there is one available for this type use it,\r\n\t\t\t// otherwise use the default\r\n\t\t\treturn host[renderer] || host._;\r\n\t\t}\r\n\t\r\n\t\t// Use the default\r\n\t\treturn host._;\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Detect the data source being used for the table. Used to simplify the code\r\n\t * a little (ajax) and to make it compress a little smaller.\r\n\t *\r\n\t * @param {object} settings dataTables settings object\r\n\t * @returns {string} Data source\r\n\t * @memberof DataTable#oApi\r\n\t */\r\n\tfunction _fnDataSource ( settings )\r\n\t{\r\n\t\tif ( settings.oFeatures.bServerSide ) {\r\n\t\t\treturn 'ssp';\r\n\t\t}\r\n\t\telse if ( settings.ajax || settings.sAjaxSource ) {\r\n\t\t\treturn 'ajax';\r\n\t\t}\r\n\t\treturn 'dom';\r\n\t}\r\n\t\r\n\r\n\t\r\n\t\r\n\t/**\r\n\t * Computed structure of the DataTables API, defined by the options passed to\r\n\t * `DataTable.Api.register()` when building the API.\r\n\t *\r\n\t * The structure is built in order to speed creation and extension of the Api\r\n\t * objects since the extensions are effectively pre-parsed.\r\n\t *\r\n\t * The array is an array of objects with the following structure, where this\r\n\t * base array represents the Api prototype base:\r\n\t *\r\n\t * [\r\n\t * {\r\n\t * name: 'data' -- string - Property name\r\n\t * val: function () {}, -- function - Api method (or undefined if just an object\r\n\t * methodExt: [ ... ], -- array - Array of Api object definitions to extend the method result\r\n\t * propExt: [ ... ] -- array - Array of Api object definitions to extend the property\r\n\t * },\r\n\t * {\r\n\t * name: 'row'\r\n\t * val: {},\r\n\t * methodExt: [ ... ],\r\n\t * propExt: [\r\n\t * {\r\n\t * name: 'data'\r\n\t * val: function () {},\r\n\t * methodExt: [ ... ],\r\n\t * propExt: [ ... ]\r\n\t * },\r\n\t * ...\r\n\t * ]\r\n\t * }\r\n\t * ]\r\n\t *\r\n\t * @type {Array}\r\n\t * @ignore\r\n\t */\r\n\tvar __apiStruct = [];\r\n\t\r\n\t\r\n\t/**\r\n\t * `Array.prototype` reference.\r\n\t *\r\n\t * @type object\r\n\t * @ignore\r\n\t */\r\n\tvar __arrayProto = Array.prototype;\r\n\t\r\n\t\r\n\t/**\r\n\t * Abstraction for `context` parameter of the `Api` constructor to allow it to\r\n\t * take several different forms for ease of use.\r\n\t *\r\n\t * Each of the input parameter types will be converted to a DataTables settings\r\n\t * object where possible.\r\n\t *\r\n\t * @param {string|node|jQuery|object} mixed DataTable identifier. Can be one\r\n\t * of:\r\n\t *\r\n\t * * `string` - jQuery selector. Any DataTables' matching the given selector\r\n\t * with be found and used.\r\n\t * * `node` - `TABLE` node which has already been formed into a DataTable.\r\n\t * * `jQuery` - A jQuery object of `TABLE` nodes.\r\n\t * * `object` - DataTables settings object\r\n\t * * `DataTables.Api` - API instance\r\n\t * @return {array|null} Matching DataTables settings objects. `null` or\r\n\t * `undefined` is returned if no matching DataTable is found.\r\n\t * @ignore\r\n\t */\r\n\tvar _toSettings = function ( mixed )\r\n\t{\r\n\t\tvar idx, jq;\r\n\t\tvar settings = DataTable.settings;\r\n\t\tvar tables = $.map( settings, function (el, i) {\r\n\t\t\treturn el.nTable;\r\n\t\t} );\r\n\t\r\n\t\tif ( ! mixed ) {\r\n\t\t\treturn [];\r\n\t\t}\r\n\t\telse if ( mixed.nTable && mixed.oApi ) {\r\n\t\t\t// DataTables settings object\r\n\t\t\treturn [ mixed ];\r\n\t\t}\r\n\t\telse if ( mixed.nodeName && mixed.nodeName.toLowerCase() === 'table' ) {\r\n\t\t\t// Table node\r\n\t\t\tidx = $.inArray( mixed, tables );\r\n\t\t\treturn idx !== -1 ? [ settings[idx] ] : null;\r\n\t\t}\r\n\t\telse if ( mixed && typeof mixed.settings === 'function' ) {\r\n\t\t\treturn mixed.settings().toArray();\r\n\t\t}\r\n\t\telse if ( typeof mixed === 'string' ) {\r\n\t\t\t// jQuery selector\r\n\t\t\tjq = $(mixed);\r\n\t\t}\r\n\t\telse if ( mixed instanceof $ ) {\r\n\t\t\t// jQuery object (also DataTables instance)\r\n\t\t\tjq = mixed;\r\n\t\t}\r\n\t\r\n\t\tif ( jq ) {\r\n\t\t\treturn jq.map( function(i) {\r\n\t\t\t\tidx = $.inArray( this, tables );\r\n\t\t\t\treturn idx !== -1 ? settings[idx] : null;\r\n\t\t\t} ).toArray();\r\n\t\t}\r\n\t};\r\n\t\r\n\t\r\n\t/**\r\n\t * DataTables API class - used to control and interface with one or more\r\n\t * DataTables enhanced tables.\r\n\t *\r\n\t * The API class is heavily based on jQuery, presenting a chainable interface\r\n\t * that you can use to interact with tables. Each instance of the API class has\r\n\t * a \"context\" - i.e. the tables that it will operate on. This could be a single\r\n\t * table, all tables on a page or a sub-set thereof.\r\n\t *\r\n\t * Additionally the API is designed to allow you to easily work with the data in\r\n\t * the tables, retrieving and manipulating it as required. This is done by\r\n\t * presenting the API class as an array like interface. The contents of the\r\n\t * array depend upon the actions requested by each method (for example\r\n\t * `rows().nodes()` will return an array of nodes, while `rows().data()` will\r\n\t * return an array of objects or arrays depending upon your table's\r\n\t * configuration). The API object has a number of array like methods (`push`,\r\n\t * `pop`, `reverse` etc) as well as additional helper methods (`each`, `pluck`,\r\n\t * `unique` etc) to assist your working with the data held in a table.\r\n\t *\r\n\t * Most methods (those which return an Api instance) are chainable, which means\r\n\t * the return from a method call also has all of the methods available that the\r\n\t * top level object had. For example, these two calls are equivalent:\r\n\t *\r\n\t * // Not chained\r\n\t * api.row.add( {...} );\r\n\t * api.draw();\r\n\t *\r\n\t * // Chained\r\n\t * api.row.add( {...} ).draw();\r\n\t *\r\n\t * @class DataTable.Api\r\n\t * @param {array|object|string|jQuery} context DataTable identifier. This is\r\n\t * used to define which DataTables enhanced tables this API will operate on.\r\n\t * Can be one of:\r\n\t *\r\n\t * * `string` - jQuery selector. Any DataTables' matching the given selector\r\n\t * with be found and used.\r\n\t * * `node` - `TABLE` node which has already been formed into a DataTable.\r\n\t * * `jQuery` - A jQuery object of `TABLE` nodes.\r\n\t * * `object` - DataTables settings object\r\n\t * @param {array} [data] Data to initialise the Api instance with.\r\n\t *\r\n\t * @example\r\n\t * // Direct initialisation during DataTables construction\r\n\t * var api = $('#example').DataTable();\r\n\t *\r\n\t * @example\r\n\t * // Initialisation using a DataTables jQuery object\r\n\t * var api = $('#example').dataTable().api();\r\n\t *\r\n\t * @example\r\n\t * // Initialisation as a constructor\r\n\t * var api = new $.fn.DataTable.Api( 'table.dataTable' );\r\n\t */\r\n\t_Api = function ( context, data )\r\n\t{\r\n\t\tif ( ! (this instanceof _Api) ) {\r\n\t\t\treturn new _Api( context, data );\r\n\t\t}\r\n\t\r\n\t\tvar settings = [];\r\n\t\tvar ctxSettings = function ( o ) {\r\n\t\t\tvar a = _toSettings( o );\r\n\t\t\tif ( a ) {\r\n\t\t\t\tsettings.push.apply( settings, a );\r\n\t\t\t}\r\n\t\t};\r\n\t\r\n\t\tif ( $.isArray( context ) ) {\r\n\t\t\tfor ( var i=0, ien=context.length ; i<ien ; i++ ) {\r\n\t\t\t\tctxSettings( context[i] );\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tctxSettings( context );\r\n\t\t}\r\n\t\r\n\t\t// Remove duplicates\r\n\t\tthis.context = _unique( settings );\r\n\t\r\n\t\t// Initial data\r\n\t\tif ( data ) {\r\n\t\t\t$.merge( this, data );\r\n\t\t}\r\n\t\r\n\t\t// selector\r\n\t\tthis.selector = {\r\n\t\t\trows: null,\r\n\t\t\tcols: null,\r\n\t\t\topts: null\r\n\t\t};\r\n\t\r\n\t\t_Api.extend( this, this, __apiStruct );\r\n\t};\r\n\t\r\n\tDataTable.Api = _Api;\r\n\t\r\n\t// Don't destroy the existing prototype, just extend it. Required for jQuery 2's\r\n\t// isPlainObject.\r\n\t$.extend( _Api.prototype, {\r\n\t\tany: function ()\r\n\t\t{\r\n\t\t\treturn this.count() !== 0;\r\n\t\t},\r\n\t\r\n\t\r\n\t\tconcat: __arrayProto.concat,\r\n\t\r\n\t\r\n\t\tcontext: [], // array of table settings objects\r\n\t\r\n\t\r\n\t\tcount: function ()\r\n\t\t{\r\n\t\t\treturn this.flatten().length;\r\n\t\t},\r\n\t\r\n\t\r\n\t\teach: function ( fn )\r\n\t\t{\r\n\t\t\tfor ( var i=0, ien=this.length ; i<ien; i++ ) {\r\n\t\t\t\tfn.call( this, this[i], i, this );\r\n\t\t\t}\r\n\t\r\n\t\t\treturn this;\r\n\t\t},\r\n\t\r\n\t\r\n\t\teq: function ( idx )\r\n\t\t{\r\n\t\t\tvar ctx = this.context;\r\n\t\r\n\t\t\treturn ctx.length > idx ?\r\n\t\t\t\tnew _Api( ctx[idx], this[idx] ) :\r\n\t\t\t\tnull;\r\n\t\t},\r\n\t\r\n\t\r\n\t\tfilter: function ( fn )\r\n\t\t{\r\n\t\t\tvar a = [];\r\n\t\r\n\t\t\tif ( __arrayProto.filter ) {\r\n\t\t\t\ta = __arrayProto.filter.call( this, fn, this );\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t// Compatibility for browsers without EMCA-252-5 (JS 1.6)\r\n\t\t\t\tfor ( var i=0, ien=this.length ; i<ien ; i++ ) {\r\n\t\t\t\t\tif ( fn.call( this, this[i], i, this ) ) {\r\n\t\t\t\t\t\ta.push( this[i] );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\r\n\t\t\treturn new _Api( this.context, a );\r\n\t\t},\r\n\t\r\n\t\r\n\t\tflatten: function ()\r\n\t\t{\r\n\t\t\tvar a = [];\r\n\t\t\treturn new _Api( this.context, a.concat.apply( a, this.toArray() ) );\r\n\t\t},\r\n\t\r\n\t\r\n\t\tjoin: __arrayProto.join,\r\n\t\r\n\t\r\n\t\tindexOf: __arrayProto.indexOf || function (obj, start)\r\n\t\t{\r\n\t\t\tfor ( var i=(start || 0), ien=this.length ; i<ien ; i++ ) {\r\n\t\t\t\tif ( this[i] === obj ) {\r\n\t\t\t\t\treturn i;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn -1;\r\n\t\t},\r\n\t\r\n\t\titerator: function ( flatten, type, fn, alwaysNew ) {\r\n\t\t\tvar\r\n\t\t\t\ta = [], ret,\r\n\t\t\t\ti, ien, j, jen,\r\n\t\t\t\tcontext = this.context,\r\n\t\t\t\trows, items, item,\r\n\t\t\t\tselector = this.selector;\r\n\t\r\n\t\t\t// Argument shifting\r\n\t\t\tif ( typeof flatten === 'string' ) {\r\n\t\t\t\talwaysNew = fn;\r\n\t\t\t\tfn = type;\r\n\t\t\t\ttype = flatten;\r\n\t\t\t\tflatten = false;\r\n\t\t\t}\r\n\t\r\n\t\t\tfor ( i=0, ien=context.length ; i<ien ; i++ ) {\r\n\t\t\t\tvar apiInst = new _Api( context[i] );\r\n\t\r\n\t\t\t\tif ( type === 'table' ) {\r\n\t\t\t\t\tret = fn.call( apiInst, context[i], i );\r\n\t\r\n\t\t\t\t\tif ( ret !== undefined ) {\r\n\t\t\t\t\t\ta.push( ret );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse if ( type === 'columns' || type === 'rows' ) {\r\n\t\t\t\t\t// this has same length as context - one entry for each table\r\n\t\t\t\t\tret = fn.call( apiInst, context[i], this[i], i );\r\n\t\r\n\t\t\t\t\tif ( ret !== undefined ) {\r\n\t\t\t\t\t\ta.push( ret );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse if ( type === 'column' || type === 'column-rows' || type === 'row' || type === 'cell' ) {\r\n\t\t\t\t\t// columns and rows share the same structure.\r\n\t\t\t\t\t// 'this' is an array of column indexes for each context\r\n\t\t\t\t\titems = this[i];\r\n\t\r\n\t\t\t\t\tif ( type === 'column-rows' ) {\r\n\t\t\t\t\t\trows = _selector_row_indexes( context[i], selector.opts );\r\n\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\tfor ( j=0, jen=items.length ; j<jen ; j++ ) {\r\n\t\t\t\t\t\titem = items[j];\r\n\t\r\n\t\t\t\t\t\tif ( type === 'cell' ) {\r\n\t\t\t\t\t\t\tret = fn.call( apiInst, context[i], item.row, item.column, i, j );\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tret = fn.call( apiInst, context[i], item, i, j, rows );\r\n\t\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\t\tif ( ret !== undefined ) {\r\n\t\t\t\t\t\t\ta.push( ret );\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\r\n\t\t\tif ( a.length || alwaysNew ) {\r\n\t\t\t\tvar api = new _Api( context, flatten ? a.concat.apply( [], a ) : a );\r\n\t\t\t\tvar apiSelector = api.selector;\r\n\t\t\t\tapiSelector.rows = selector.rows;\r\n\t\t\t\tapiSelector.cols = selector.cols;\r\n\t\t\t\tapiSelector.opts = selector.opts;\r\n\t\t\t\treturn api;\r\n\t\t\t}\r\n\t\t\treturn this;\r\n\t\t},\r\n\t\r\n\t\r\n\t\tlastIndexOf: __arrayProto.lastIndexOf || function (obj, start)\r\n\t\t{\r\n\t\t\t// Bit cheeky...\r\n\t\t\treturn this.indexOf.apply( this.toArray.reverse(), arguments );\r\n\t\t},\r\n\t\r\n\t\r\n\t\tlength: 0,\r\n\t\r\n\t\r\n\t\tmap: function ( fn )\r\n\t\t{\r\n\t\t\tvar a = [];\r\n\t\r\n\t\t\tif ( __arrayProto.map ) {\r\n\t\t\t\ta = __arrayProto.map.call( this, fn, this );\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t// Compatibility for browsers without EMCA-252-5 (JS 1.6)\r\n\t\t\t\tfor ( var i=0, ien=this.length ; i<ien ; i++ ) {\r\n\t\t\t\t\ta.push( fn.call( this, this[i], i ) );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\r\n\t\t\treturn new _Api( this.context, a );\r\n\t\t},\r\n\t\r\n\t\r\n\t\tpluck: function ( prop )\r\n\t\t{\r\n\t\t\treturn this.map( function ( el ) {\r\n\t\t\t\treturn el[ prop ];\r\n\t\t\t} );\r\n\t\t},\r\n\t\r\n\t\tpop: __arrayProto.pop,\r\n\t\r\n\t\r\n\t\tpush: __arrayProto.push,\r\n\t\r\n\t\r\n\t\t// Does not return an API instance\r\n\t\treduce: __arrayProto.reduce || function ( fn, init )\r\n\t\t{\r\n\t\t\treturn _fnReduce( this, fn, init, 0, this.length, 1 );\r\n\t\t},\r\n\t\r\n\t\r\n\t\treduceRight: __arrayProto.reduceRight || function ( fn, init )\r\n\t\t{\r\n\t\t\treturn _fnReduce( this, fn, init, this.length-1, -1, -1 );\r\n\t\t},\r\n\t\r\n\t\r\n\t\treverse: __arrayProto.reverse,\r\n\t\r\n\t\r\n\t\t// Object with rows, columns and opts\r\n\t\tselector: null,\r\n\t\r\n\t\r\n\t\tshift: __arrayProto.shift,\r\n\t\r\n\t\r\n\t\tslice: function () {\r\n\t\t\treturn new _Api( this.context, this );\r\n\t\t},\r\n\t\r\n\t\r\n\t\tsort: __arrayProto.sort, // ? name - order?\r\n\t\r\n\t\r\n\t\tsplice: __arrayProto.splice,\r\n\t\r\n\t\r\n\t\ttoArray: function ()\r\n\t\t{\r\n\t\t\treturn __arrayProto.slice.call( this );\r\n\t\t},\r\n\t\r\n\t\r\n\t\tto$: function ()\r\n\t\t{\r\n\t\t\treturn $( this );\r\n\t\t},\r\n\t\r\n\t\r\n\t\ttoJQuery: function ()\r\n\t\t{\r\n\t\t\treturn $( this );\r\n\t\t},\r\n\t\r\n\t\r\n\t\tunique: function ()\r\n\t\t{\r\n\t\t\treturn new _Api( this.context, _unique(this) );\r\n\t\t},\r\n\t\r\n\t\r\n\t\tunshift: __arrayProto.unshift\r\n\t} );\r\n\t\r\n\t\r\n\t_Api.extend = function ( scope, obj, ext )\r\n\t{\r\n\t\t// Only extend API instances and static properties of the API\r\n\t\tif ( ! ext.length || ! obj || ( ! (obj instanceof _Api) && ! obj.__dt_wrapper ) ) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\r\n\t\tvar\r\n\t\t\ti, ien,\r\n\t\t\tstruct,\r\n\t\t\tmethodScoping = function ( scope, fn, struc ) {\r\n\t\t\t\treturn function () {\r\n\t\t\t\t\tvar ret = fn.apply( scope, arguments );\r\n\t\r\n\t\t\t\t\t// Method extension\r\n\t\t\t\t\t_Api.extend( ret, ret, struc.methodExt );\r\n\t\t\t\t\treturn ret;\r\n\t\t\t\t};\r\n\t\t\t};\r\n\t\r\n\t\tfor ( i=0, ien=ext.length ; i<ien ; i++ ) {\r\n\t\t\tstruct = ext[i];\r\n\t\r\n\t\t\t// Value\r\n\t\t\tobj[ struct.name ] = struct.type === 'function' ?\r\n\t\t\t\tmethodScoping( scope, struct.val, struct ) :\r\n\t\t\t\tstruct.type === 'object' ?\r\n\t\t\t\t\t{} :\r\n\t\t\t\t\tstruct.val;\r\n\t\r\n\t\t\tobj[ struct.name ].__dt_wrapper = true;\r\n\t\r\n\t\t\t// Property extension\r\n\t\t\t_Api.extend( scope, obj[ struct.name ], struct.propExt );\r\n\t\t}\r\n\t};\r\n\t\r\n\t\r\n\t// @todo - Is there need for an augment function?\r\n\t// _Api.augment = function ( inst, name )\r\n\t// {\r\n\t// \t// Find src object in the structure from the name\r\n\t// \tvar parts = name.split('.');\r\n\t\r\n\t// \t_Api.extend( inst, obj );\r\n\t// };\r\n\t\r\n\t\r\n\t// [\r\n\t// {\r\n\t// name: 'data' -- string - Property name\r\n\t// val: function () {}, -- function - Api method (or undefined if just an object\r\n\t// methodExt: [ ... ], -- array - Array of Api object definitions to extend the method result\r\n\t// propExt: [ ... ] -- array - Array of Api object definitions to extend the property\r\n\t// },\r\n\t// {\r\n\t// name: 'row'\r\n\t// val: {},\r\n\t// methodExt: [ ... ],\r\n\t// propExt: [\r\n\t// {\r\n\t// name: 'data'\r\n\t// val: function () {},\r\n\t// methodExt: [ ... ],\r\n\t// propExt: [ ... ]\r\n\t// },\r\n\t// ...\r\n\t// ]\r\n\t// }\r\n\t// ]\r\n\t\r\n\t_Api.register = _api_register = function ( name, val )\r\n\t{\r\n\t\tif ( $.isArray( name ) ) {\r\n\t\t\tfor ( var j=0, jen=name.length ; j<jen ; j++ ) {\r\n\t\t\t\t_Api.register( name[j], val );\r\n\t\t\t}\r\n\t\t\treturn;\r\n\t\t}\r\n\t\r\n\t\tvar\r\n\t\t\ti, ien,\r\n\t\t\their = name.split('.'),\r\n\t\t\tstruct = __apiStruct,\r\n\t\t\tkey, method;\r\n\t\r\n\t\tvar find = function ( src, name ) {\r\n\t\t\tfor ( var i=0, ien=src.length ; i<ien ; i++ ) {\r\n\t\t\t\tif ( src[i].name === name ) {\r\n\t\t\t\t\treturn src[i];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn null;\r\n\t\t};\r\n\t\r\n\t\tfor ( i=0, ien=heir.length ; i<ien ; i++ ) {\r\n\t\t\tmethod = heir[i].indexOf('()') !== -1;\r\n\t\t\tkey = method ?\r\n\t\t\t\their[i].replace('()', '') :\r\n\t\t\t\their[i];\r\n\t\r\n\t\t\tvar src = find( struct, key );\r\n\t\t\tif ( ! src ) {\r\n\t\t\t\tsrc = {\r\n\t\t\t\t\tname: key,\r\n\t\t\t\t\tval: {},\r\n\t\t\t\t\tmethodExt: [],\r\n\t\t\t\t\tpropExt: [],\r\n\t\t\t\t\ttype: 'object'\r\n\t\t\t\t};\r\n\t\t\t\tstruct.push( src );\r\n\t\t\t}\r\n\t\r\n\t\t\tif ( i === ien-1 ) {\r\n\t\t\t\tsrc.val = val;\r\n\t\t\t\tsrc.type = typeof val === 'function' ?\r\n\t\t\t\t\t'function' :\r\n\t\t\t\t\t$.isPlainObject( val ) ?\r\n\t\t\t\t\t\t'object' :\r\n\t\t\t\t\t\t'other';\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tstruct = method ?\r\n\t\t\t\t\tsrc.methodExt :\r\n\t\t\t\t\tsrc.propExt;\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n\t\r\n\t_Api.registerPlural = _api_registerPlural = function ( pluralName, singularName, val ) {\r\n\t\t_Api.register( pluralName, val );\r\n\t\r\n\t\t_Api.register( singularName, function () {\r\n\t\t\tvar ret = val.apply( this, arguments );\r\n\t\r\n\t\t\tif ( ret === this ) {\r\n\t\t\t\t// Returned item is the API instance that was passed in, return it\r\n\t\t\t\treturn this;\r\n\t\t\t}\r\n\t\t\telse if ( ret instanceof _Api ) {\r\n\t\t\t\t// New API instance returned, want the value from the first item\r\n\t\t\t\t// in the returned array for the singular result.\r\n\t\t\t\treturn ret.length ?\r\n\t\t\t\t\t$.isArray( ret[0] ) ?\r\n\t\t\t\t\t\tnew _Api( ret.context, ret[0] ) : // Array results are 'enhanced'\r\n\t\t\t\t\t\tret[0] :\r\n\t\t\t\t\tundefined;\r\n\t\t\t}\r\n\t\r\n\t\t\t// Non-API return - just fire it back\r\n\t\t\treturn ret;\r\n\t\t} );\r\n\t};\r\n\t\r\n\t\r\n\t/**\r\n\t * Selector for HTML tables. Apply the given selector to the give array of\r\n\t * DataTables settings objects.\r\n\t *\r\n\t * @param {string|integer} [selector] jQuery selector string or integer\r\n\t * @param {array} Array of DataTables settings objects to be filtered\r\n\t * @return {array}\r\n\t * @ignore\r\n\t */\r\n\tvar __table_selector = function ( selector, a )\r\n\t{\r\n\t\t// Integer is used to pick out a table by index\r\n\t\tif ( typeof selector === 'number' ) {\r\n\t\t\treturn [ a[ selector ] ];\r\n\t\t}\r\n\t\r\n\t\t// Perform a jQuery selector on the table nodes\r\n\t\tvar nodes = $.map( a, function (el, i) {\r\n\t\t\treturn el.nTable;\r\n\t\t} );\r\n\t\r\n\t\treturn $(nodes)\r\n\t\t\t.filter( selector )\r\n\t\t\t.map( function (i) {\r\n\t\t\t\t// Need to translate back from the table node to the settings\r\n\t\t\t\tvar idx = $.inArray( this, nodes );\r\n\t\t\t\treturn a[ idx ];\r\n\t\t\t} )\r\n\t\t\t.toArray();\r\n\t};\r\n\t\r\n\t\r\n\t\r\n\t/**\r\n\t * Context selector for the API's context (i.e. the tables the API instance\r\n\t * refers to.\r\n\t *\r\n\t * @name DataTable.Api#tables\r\n\t * @param {string|integer} [selector] Selector to pick which tables the iterator\r\n\t * should operate on. If not given, all tables in the current context are\r\n\t * used. This can be given as a jQuery selector (for example `':gt(0)'`) to\r\n\t * select multiple tables or as an integer to select a single table.\r\n\t * @returns {DataTable.Api} Returns a new API instance if a selector is given.\r\n\t */\r\n\t_api_register( 'tables()', function ( selector ) {\r\n\t\t// A new instance is created if there was a selector specified\r\n\t\treturn selector ?\r\n\t\t\tnew _Api( __table_selector( selector, this.context ) ) :\r\n\t\t\tthis;\r\n\t} );\r\n\t\r\n\t\r\n\t_api_register( 'table()', function ( selector ) {\r\n\t\tvar tables = this.tables( selector );\r\n\t\tvar ctx = tables.context;\r\n\t\r\n\t\t// Truncate to the first matched table\r\n\t\treturn ctx.length ?\r\n\t\t\tnew _Api( ctx[0] ) :\r\n\t\t\ttables;\r\n\t} );\r\n\t\r\n\t\r\n\t_api_registerPlural( 'tables().nodes()', 'table().node()' , function () {\r\n\t\treturn this.iterator( 'table', function ( ctx ) {\r\n\t\t\treturn ctx.nTable;\r\n\t\t}, 1 );\r\n\t} );\r\n\t\r\n\t\r\n\t_api_registerPlural( 'tables().body()', 'table().body()' , function () {\r\n\t\treturn this.iterator( 'table', function ( ctx ) {\r\n\t\t\treturn ctx.nTBody;\r\n\t\t}, 1 );\r\n\t} );\r\n\t\r\n\t\r\n\t_api_registerPlural( 'tables().header()', 'table().header()' , function () {\r\n\t\treturn this.iterator( 'table', function ( ctx ) {\r\n\t\t\treturn ctx.nTHead;\r\n\t\t}, 1 );\r\n\t} );\r\n\t\r\n\t\r\n\t_api_registerPlural( 'tables().footer()', 'table().footer()' , function () {\r\n\t\treturn this.iterator( 'table', function ( ctx ) {\r\n\t\t\treturn ctx.nTFoot;\r\n\t\t}, 1 );\r\n\t} );\r\n\t\r\n\t\r\n\t_api_registerPlural( 'tables().containers()', 'table().container()' , function () {\r\n\t\treturn this.iterator( 'table', function ( ctx ) {\r\n\t\t\treturn ctx.nTableWrapper;\r\n\t\t}, 1 );\r\n\t} );\r\n\t\r\n\t\r\n\t\r\n\t/**\r\n\t * Redraw the tables in the current context.\r\n\t */\r\n\t_api_register( 'draw()', function ( paging ) {\r\n\t\treturn this.iterator( 'table', function ( settings ) {\r\n\t\t\tif ( paging === 'page' ) {\r\n\t\t\t\t_fnDraw( settings );\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tif ( typeof paging === 'string' ) {\r\n\t\t\t\t\tpaging = paging === 'full-hold' ?\r\n\t\t\t\t\t\tfalse :\r\n\t\t\t\t\t\ttrue;\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t_fnReDraw( settings, paging===false );\r\n\t\t\t}\r\n\t\t} );\r\n\t} );\r\n\t\r\n\t\r\n\t\r\n\t/**\r\n\t * Get the current page index.\r\n\t *\r\n\t * @return {integer} Current page index (zero based)\r\n\t *//**\r\n\t * Set the current page.\r\n\t *\r\n\t * Note that if you attempt to show a page which does not exist, DataTables will\r\n\t * not throw an error, but rather reset the paging.\r\n\t *\r\n\t * @param {integer|string} action The paging action to take. This can be one of:\r\n\t * * `integer` - The page index to jump to\r\n\t * * `string` - An action to take:\r\n\t * * `first` - Jump to first page.\r\n\t * * `next` - Jump to the next page\r\n\t * * `previous` - Jump to previous page\r\n\t * * `last` - Jump to the last page.\r\n\t * @returns {DataTables.Api} this\r\n\t */\r\n\t_api_register( 'page()', function ( action ) {\r\n\t\tif ( action === undefined ) {\r\n\t\t\treturn this.page.info().page; // not an expensive call\r\n\t\t}\r\n\t\r\n\t\t// else, have an action to take on all tables\r\n\t\treturn this.iterator( 'table', function ( settings ) {\r\n\t\t\t_fnPageChange( settings, action );\r\n\t\t} );\r\n\t} );\r\n\t\r\n\t\r\n\t/**\r\n\t * Paging information for the first table in the current context.\r\n\t *\r\n\t * If you require paging information for another table, use the `table()` method\r\n\t * with a suitable selector.\r\n\t *\r\n\t * @return {object} Object with the following properties set:\r\n\t * * `page` - Current page index (zero based - i.e. the first page is `0`)\r\n\t * * `pages` - Total number of pages\r\n\t * * `start` - Display index for the first record shown on the current page\r\n\t * * `end` - Display index for the last record shown on the current page\r\n\t * * `length` - Display length (number of records). Note that generally `start\r\n\t * + length = end`, but this is not always true, for example if there are\r\n\t * only 2 records to show on the final page, with a length of 10.\r\n\t * * `recordsTotal` - Full data set length\r\n\t * * `recordsDisplay` - Data set length once the current filtering criterion\r\n\t * are applied.\r\n\t */\r\n\t_api_register( 'page.info()', function ( action ) {\r\n\t\tif ( this.context.length === 0 ) {\r\n\t\t\treturn undefined;\r\n\t\t}\r\n\t\r\n\t\tvar\r\n\t\t\tsettings = this.context[0],\r\n\t\t\tstart = settings._iDisplayStart,\r\n\t\t\tlen = settings.oFeatures.bPaginate ? settings._iDisplayLength : -1,\r\n\t\t\tvisRecords = settings.fnRecordsDisplay(),\r\n\t\t\tall = len === -1;\r\n\t\r\n\t\treturn {\r\n\t\t\t\"page\": all ? 0 : Math.floor( start / len ),\r\n\t\t\t\"pages\": all ? 1 : Math.ceil( visRecords / len ),\r\n\t\t\t\"start\": start,\r\n\t\t\t\"end\": settings.fnDisplayEnd(),\r\n\t\t\t\"length\": len,\r\n\t\t\t\"recordsTotal\": settings.fnRecordsTotal(),\r\n\t\t\t\"recordsDisplay\": visRecords,\r\n\t\t\t\"serverSide\": _fnDataSource( settings ) === 'ssp'\r\n\t\t};\r\n\t} );\r\n\t\r\n\t\r\n\t/**\r\n\t * Get the current page length.\r\n\t *\r\n\t * @return {integer} Current page length. Note `-1` indicates that all records\r\n\t * are to be shown.\r\n\t *//**\r\n\t * Set the current page length.\r\n\t *\r\n\t * @param {integer} Page length to set. Use `-1` to show all records.\r\n\t * @returns {DataTables.Api} this\r\n\t */\r\n\t_api_register( 'page.len()', function ( len ) {\r\n\t\t// Note that we can't call this function 'length()' because `length`\r\n\t\t// is a Javascript property of functions which defines how many arguments\r\n\t\t// the function expects.\r\n\t\tif ( len === undefined ) {\r\n\t\t\treturn this.context.length !== 0 ?\r\n\t\t\t\tthis.context[0]._iDisplayLength :\r\n\t\t\t\tundefined;\r\n\t\t}\r\n\t\r\n\t\t// else, set the page length\r\n\t\treturn this.iterator( 'table', function ( settings ) {\r\n\t\t\t_fnLengthChange( settings, len );\r\n\t\t} );\r\n\t} );\r\n\t\r\n\t\r\n\t\r\n\tvar __reload = function ( settings, holdPosition, callback ) {\r\n\t\t// Use the draw event to trigger a callback\r\n\t\tif ( callback ) {\r\n\t\t\tvar api = new _Api( settings );\r\n\t\r\n\t\t\tapi.one( 'draw', function () {\r\n\t\t\t\tcallback( api.ajax.json() );\r\n\t\t\t} );\r\n\t\t}\r\n\t\r\n\t\tif ( _fnDataSource( settings ) == 'ssp' ) {\r\n\t\t\t_fnReDraw( settings, holdPosition );\r\n\t\t}\r\n\t\telse {\r\n\t\t\t_fnProcessingDisplay( settings, true );\r\n\t\r\n\t\t\t// Cancel an existing request\r\n\t\t\tvar xhr = settings.jqXHR;\r\n\t\t\tif ( xhr && xhr.readyState !== 4 ) {\r\n\t\t\t\txhr.abort();\r\n\t\t\t}\r\n\t\r\n\t\t\t// Trigger xhr\r\n\t\t\t_fnBuildAjax( settings, [], function( json ) {\r\n\t\t\t\t_fnClearTable( settings );\r\n\t\r\n\t\t\t\tvar data = _fnAjaxDataSrc( settings, json );\r\n\t\t\t\tfor ( var i=0, ien=data.length ; i<ien ; i++ ) {\r\n\t\t\t\t\t_fnAddData( settings, data[i] );\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t_fnReDraw( settings, holdPosition );\r\n\t\t\t\t_fnProcessingDisplay( settings, false );\r\n\t\t\t} );\r\n\t\t}\r\n\t};\r\n\t\r\n\t\r\n\t/**\r\n\t * Get the JSON response from the last Ajax request that DataTables made to the\r\n\t * server. Note that this returns the JSON from the first table in the current\r\n\t * context.\r\n\t *\r\n\t * @return {object} JSON received from the server.\r\n\t */\r\n\t_api_register( 'ajax.json()', function () {\r\n\t\tvar ctx = this.context;\r\n\t\r\n\t\tif ( ctx.length > 0 ) {\r\n\t\t\treturn ctx[0].json;\r\n\t\t}\r\n\t\r\n\t\t// else return undefined;\r\n\t} );\r\n\t\r\n\t\r\n\t/**\r\n\t * Get the data submitted in the last Ajax request\r\n\t */\r\n\t_api_register( 'ajax.params()', function () {\r\n\t\tvar ctx = this.context;\r\n\t\r\n\t\tif ( ctx.length > 0 ) {\r\n\t\t\treturn ctx[0].oAjaxData;\r\n\t\t}\r\n\t\r\n\t\t// else return undefined;\r\n\t} );\r\n\t\r\n\t\r\n\t/**\r\n\t * Reload tables from the Ajax data source. Note that this function will\r\n\t * automatically re-draw the table when the remote data has been loaded.\r\n\t *\r\n\t * @param {boolean} [reset=true] Reset (default) or hold the current paging\r\n\t * position. A full re-sort and re-filter is performed when this method is\r\n\t * called, which is why the pagination reset is the default action.\r\n\t * @returns {DataTables.Api} this\r\n\t */\r\n\t_api_register( 'ajax.reload()', function ( callback, resetPaging ) {\r\n\t\treturn this.iterator( 'table', function (settings) {\r\n\t\t\t__reload( settings, resetPaging===false, callback );\r\n\t\t} );\r\n\t} );\r\n\t\r\n\t\r\n\t/**\r\n\t * Get the current Ajax URL. Note that this returns the URL from the first\r\n\t * table in the current context.\r\n\t *\r\n\t * @return {string} Current Ajax source URL\r\n\t *//**\r\n\t * Set the Ajax URL. Note that this will set the URL for all tables in the\r\n\t * current context.\r\n\t *\r\n\t * @param {string} url URL to set.\r\n\t * @returns {DataTables.Api} this\r\n\t */\r\n\t_api_register( 'ajax.url()', function ( url ) {\r\n\t\tvar ctx = this.context;\r\n\t\r\n\t\tif ( url === undefined ) {\r\n\t\t\t// get\r\n\t\t\tif ( ctx.length === 0 ) {\r\n\t\t\t\treturn undefined;\r\n\t\t\t}\r\n\t\t\tctx = ctx[0];\r\n\t\r\n\t\t\treturn ctx.ajax ?\r\n\t\t\t\t$.isPlainObject( ctx.ajax ) ?\r\n\t\t\t\t\tctx.ajax.url :\r\n\t\t\t\t\tctx.ajax :\r\n\t\t\t\tctx.sAjaxSource;\r\n\t\t}\r\n\t\r\n\t\t// set\r\n\t\treturn this.iterator( 'table', function ( settings ) {\r\n\t\t\tif ( $.isPlainObject( settings.ajax ) ) {\r\n\t\t\t\tsettings.ajax.url = url;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tsettings.ajax = url;\r\n\t\t\t}\r\n\t\t\t// No need to consider sAjaxSource here since DataTables gives priority\r\n\t\t\t// to `ajax` over `sAjaxSource`. So setting `ajax` here, renders any\r\n\t\t\t// value of `sAjaxSource` redundant.\r\n\t\t} );\r\n\t} );\r\n\t\r\n\t\r\n\t/**\r\n\t * Load data from the newly set Ajax URL. Note that this method is only\r\n\t * available when `ajax.url()` is used to set a URL. Additionally, this method\r\n\t * has the same effect as calling `ajax.reload()` but is provided for\r\n\t * convenience when setting a new URL. Like `ajax.reload()` it will\r\n\t * automatically redraw the table once the remote data has been loaded.\r\n\t *\r\n\t * @returns {DataTables.Api} this\r\n\t */\r\n\t_api_register( 'ajax.url().load()', function ( callback, resetPaging ) {\r\n\t\t// Same as a reload, but makes sense to present it for easy access after a\r\n\t\t// url change\r\n\t\treturn this.iterator( 'table', function ( ctx ) {\r\n\t\t\t__reload( ctx, resetPaging===false, callback );\r\n\t\t} );\r\n\t} );\r\n\t\r\n\t\r\n\t\r\n\t\r\n\tvar _selector_run = function ( type, selector, selectFn, settings, opts )\r\n\t{\r\n\t\tvar\r\n\t\t\tout = [], res,\r\n\t\t\ta, i, ien, j, jen,\r\n\t\t\tselectorType = typeof selector;\r\n\t\r\n\t\t// Can't just check for isArray here, as an API or jQuery instance might be\r\n\t\t// given with their array like look\r\n\t\tif ( ! selector || selectorType === 'string' || selectorType === 'function' || selector.length === undefined ) {\r\n\t\t\tselector = [ selector ];\r\n\t\t}\r\n\t\r\n\t\tfor ( i=0, ien=selector.length ; i<ien ; i++ ) {\r\n\t\t\t// Only split on simple strings - complex expressions will be jQuery selectors\r\n\t\t\ta = selector[i] && selector[i].split && ! selector[i].match(/[\\[\\(:]/) ?\r\n\t\t\t\tselector[i].split(',') :\r\n\t\t\t\t[ selector[i] ];\r\n\t\r\n\t\t\tfor ( j=0, jen=a.length ; j<jen ; j++ ) {\r\n\t\t\t\tres = selectFn( typeof a[j] === 'string' ? $.trim(a[j]) : a[j] );\r\n\t\r\n\t\t\t\tif ( res && res.length ) {\r\n\t\t\t\t\tout = out.concat( res );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\t// selector extensions\r\n\t\tvar ext = _ext.selector[ type ];\r\n\t\tif ( ext.length ) {\r\n\t\t\tfor ( i=0, ien=ext.length ; i<ien ; i++ ) {\r\n\t\t\t\tout = ext[i]( settings, opts, out );\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\treturn _unique( out );\r\n\t};\r\n\t\r\n\t\r\n\tvar _selector_opts = function ( opts )\r\n\t{\r\n\t\tif ( ! opts ) {\r\n\t\t\topts = {};\r\n\t\t}\r\n\t\r\n\t\t// Backwards compatibility for 1.9- which used the terminology filter rather\r\n\t\t// than search\r\n\t\tif ( opts.filter && opts.search === undefined ) {\r\n\t\t\topts.search = opts.filter;\r\n\t\t}\r\n\t\r\n\t\treturn $.extend( {\r\n\t\t\tsearch: 'none',\r\n\t\t\torder: 'current',\r\n\t\t\tpage: 'all'\r\n\t\t}, opts );\r\n\t};\r\n\t\r\n\t\r\n\tvar _selector_first = function ( inst )\r\n\t{\r\n\t\t// Reduce the API instance to the first item found\r\n\t\tfor ( var i=0, ien=inst.length ; i<ien ; i++ ) {\r\n\t\t\tif ( inst[i].length > 0 ) {\r\n\t\t\t\t// Assign the first element to the first item in the instance\r\n\t\t\t\t// and truncate the instance and context\r\n\t\t\t\tinst[0] = inst[i];\r\n\t\t\t\tinst[0].length = 1;\r\n\t\t\t\tinst.length = 1;\r\n\t\t\t\tinst.context = [ inst.context[i] ];\r\n\t\r\n\t\t\t\treturn inst;\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\t// Not found - return an empty instance\r\n\t\tinst.length = 0;\r\n\t\treturn inst;\r\n\t};\r\n\t\r\n\t\r\n\tvar _selector_row_indexes = function ( settings, opts )\r\n\t{\r\n\t\tvar\r\n\t\t\ti, ien, tmp, a=[],\r\n\t\t\tdisplayFiltered = settings.aiDisplay,\r\n\t\t\tdisplayMaster = settings.aiDisplayMaster;\r\n\t\r\n\t\tvar\r\n\t\t\tsearch = opts.search, // none, applied, removed\r\n\t\t\torder = opts.order, // applied, current, index (original - compatibility with 1.9)\r\n\t\t\tpage = opts.page; // all, current\r\n\t\r\n\t\tif ( _fnDataSource( settings ) == 'ssp' ) {\r\n\t\t\t// In server-side processing mode, most options are irrelevant since\r\n\t\t\t// rows not shown don't exist and the index order is the applied order\r\n\t\t\t// Removed is a special case - for consistency just return an empty\r\n\t\t\t// array\r\n\t\t\treturn search === 'removed' ?\r\n\t\t\t\t[] :\r\n\t\t\t\t_range( 0, displayMaster.length );\r\n\t\t}\r\n\t\telse if ( page == 'current' ) {\r\n\t\t\t// Current page implies that order=current and fitler=applied, since it is\r\n\t\t\t// fairly senseless otherwise, regardless of what order and search actually\r\n\t\t\t// are\r\n\t\t\tfor ( i=settings._iDisplayStart, ien=settings.fnDisplayEnd() ; i<ien ; i++ ) {\r\n\t\t\t\ta.push( displayFiltered[i] );\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if ( order == 'current' || order == 'applied' ) {\r\n\t\t\tif ( search == 'none') {\r\n\t\t\t\ta = displayMaster.slice();\r\n\t\t\t}\r\n\t\t\telse if ( search == 'applied' ) {\r\n\t\t\t\ta = displayFiltered.slice();\r\n\t\t\t}\r\n\t\t\telse if ( search == 'removed' ) {\r\n\t\t\t\t// O(n+m) solution by creating a hash map\r\n\t\t\t\tvar displayFilteredMap = {};\r\n\t\r\n\t\t\t\tfor ( var i=0, ien=displayFiltered.length ; i<ien ; i++ ) {\r\n\t\t\t\t\tdisplayFilteredMap[displayFiltered[i]] = null;\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\ta = $.map( displayMaster, function (el) {\r\n\t\t\t\t\treturn ! displayFilteredMap.hasOwnProperty(el) ?\r\n\t\t\t\t\t\tel :\r\n\t\t\t\t\t\tnull;\r\n\t\t\t\t} );\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if ( order == 'index' || order == 'original' ) {\r\n\t\t\tfor ( i=0, ien=settings.aoData.length ; i<ien ; i++ ) {\r\n\t\t\t\tif ( search == 'none' ) {\r\n\t\t\t\t\ta.push( i );\r\n\t\t\t\t}\r\n\t\t\t\telse { // applied | removed\r\n\t\t\t\t\ttmp = $.inArray( i, displayFiltered );\r\n\t\r\n\t\t\t\t\tif ((tmp === -1 && search == 'removed') ||\r\n\t\t\t\t\t\t(tmp >= 0 && search == 'applied') )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\ta.push( i );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\treturn a;\r\n\t};\r\n\t\r\n\t\r\n\t/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n\t * Rows\r\n\t *\r\n\t * {} - no selector - use all available rows\r\n\t * {integer} - row aoData index\r\n\t * {node} - TR node\r\n\t * {string} - jQuery selector to apply to the TR elements\r\n\t * {array} - jQuery array of nodes, or simply an array of TR nodes\r\n\t *\r\n\t */\r\n\tvar __row_selector = function ( settings, selector, opts )\r\n\t{\r\n\t\tvar rows;\r\n\t\tvar run = function ( sel ) {\r\n\t\t\tvar selInt = _intVal( sel );\r\n\t\t\tvar i, ien;\r\n\t\t\tvar aoData = settings.aoData;\r\n\t\r\n\t\t\t// Short cut - selector is a number and no options provided (default is\r\n\t\t\t// all records, so no need to check if the index is in there, since it\r\n\t\t\t// must be - dev error if the index doesn't exist).\r\n\t\t\tif ( selInt !== null && ! opts ) {\r\n\t\t\t\treturn [ selInt ];\r\n\t\t\t}\r\n\t\r\n\t\t\tif ( ! rows ) {\r\n\t\t\t\trows = _selector_row_indexes( settings, opts );\r\n\t\t\t}\r\n\t\r\n\t\t\tif ( selInt !== null && $.inArray( selInt, rows ) !== -1 ) {\r\n\t\t\t\t// Selector - integer\r\n\t\t\t\treturn [ selInt ];\r\n\t\t\t}\r\n\t\t\telse if ( sel === null || sel === undefined || sel === '' ) {\r\n\t\t\t\t// Selector - none\r\n\t\t\t\treturn rows;\r\n\t\t\t}\r\n\t\r\n\t\t\t// Selector - function\r\n\t\t\tif ( typeof sel === 'function' ) {\r\n\t\t\t\treturn $.map( rows, function (idx) {\r\n\t\t\t\t\tvar row = aoData[ idx ];\r\n\t\t\t\t\treturn sel( idx, row._aData, row.nTr ) ? idx : null;\r\n\t\t\t\t} );\r\n\t\t\t}\r\n\t\r\n\t\t\t// Selector - node\r\n\t\t\tif ( sel.nodeName ) {\r\n\t\t\t\tvar rowIdx = sel._DT_RowIndex; // Property added by DT for fast lookup\r\n\t\t\t\tvar cellIdx = sel._DT_CellIndex;\r\n\t\r\n\t\t\t\tif ( rowIdx !== undefined ) {\r\n\t\t\t\t\t// Make sure that the row is actually still present in the table\r\n\t\t\t\t\treturn aoData[ rowIdx ] && aoData[ rowIdx ].nTr === sel ?\r\n\t\t\t\t\t\t[ rowIdx ] :\r\n\t\t\t\t\t\t[];\r\n\t\t\t\t}\r\n\t\t\t\telse if ( cellIdx ) {\r\n\t\t\t\t\treturn aoData[ cellIdx.row ] && aoData[ cellIdx.row ].nTr === sel.parentNode ?\r\n\t\t\t\t\t\t[ cellIdx.row ] :\r\n\t\t\t\t\t\t[];\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tvar host = $(sel).closest('*[data-dt-row]');\r\n\t\t\t\t\treturn host.length ?\r\n\t\t\t\t\t\t[ host.data('dt-row') ] :\r\n\t\t\t\t\t\t[];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\r\n\t\t\t// ID selector. Want to always be able to select rows by id, regardless\r\n\t\t\t// of if the tr element has been created or not, so can't rely upon\r\n\t\t\t// jQuery here - hence a custom implementation. This does not match\r\n\t\t\t// Sizzle's fast selector or HTML4 - in HTML5 the ID can be anything,\r\n\t\t\t// but to select it using a CSS selector engine (like Sizzle or\r\n\t\t\t// querySelect) it would need to need to be escaped for some characters.\r\n\t\t\t// DataTables simplifies this for row selectors since you can select\r\n\t\t\t// only a row. A # indicates an id any anything that follows is the id -\r\n\t\t\t// unescaped.\r\n\t\t\tif ( typeof sel === 'string' && sel.charAt(0) === '#' ) {\r\n\t\t\t\t// get row index from id\r\n\t\t\t\tvar rowObj = settings.aIds[ sel.replace( /^#/, '' ) ];\r\n\t\t\t\tif ( rowObj !== undefined ) {\r\n\t\t\t\t\treturn [ rowObj.idx ];\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t// need to fall through to jQuery in case there is DOM id that\r\n\t\t\t\t// matches\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Get nodes in the order from the `rows` array with null values removed\r\n\t\t\tvar nodes = _removeEmpty(\r\n\t\t\t\t_pluck_order( settings.aoData, rows, 'nTr' )\r\n\t\t\t);\r\n\t\r\n\t\t\t// Selector - jQuery selector string, array of nodes or jQuery object/\r\n\t\t\t// As jQuery's .filter() allows jQuery objects to be passed in filter,\r\n\t\t\t// it also allows arrays, so this will cope with all three options\r\n\t\t\treturn $(nodes)\r\n\t\t\t\t.filter( sel )\r\n\t\t\t\t.map( function () {\r\n\t\t\t\t\treturn this._DT_RowIndex;\r\n\t\t\t\t} )\r\n\t\t\t\t.toArray();\r\n\t\t};\r\n\t\r\n\t\treturn _selector_run( 'row', selector, run, settings, opts );\r\n\t};\r\n\t\r\n\t\r\n\t_api_register( 'rows()', function ( selector, opts ) {\r\n\t\t// argument shifting\r\n\t\tif ( selector === undefined ) {\r\n\t\t\tselector = '';\r\n\t\t}\r\n\t\telse if ( $.isPlainObject( selector ) ) {\r\n\t\t\topts = selector;\r\n\t\t\tselector = '';\r\n\t\t}\r\n\t\r\n\t\topts = _selector_opts( opts );\r\n\t\r\n\t\tvar inst = this.iterator( 'table', function ( settings ) {\r\n\t\t\treturn __row_selector( settings, selector, opts );\r\n\t\t}, 1 );\r\n\t\r\n\t\t// Want argument shifting here and in __row_selector?\r\n\t\tinst.selector.rows = selector;\r\n\t\tinst.selector.opts = opts;\r\n\t\r\n\t\treturn inst;\r\n\t} );\r\n\t\r\n\t_api_register( 'rows().nodes()', function () {\r\n\t\treturn this.iterator( 'row', function ( settings, row ) {\r\n\t\t\treturn settings.aoData[ row ].nTr || undefined;\r\n\t\t}, 1 );\r\n\t} );\r\n\t\r\n\t_api_register( 'rows().data()', function () {\r\n\t\treturn this.iterator( true, 'rows', function ( settings, rows ) {\r\n\t\t\treturn _pluck_order( settings.aoData, rows, '_aData' );\r\n\t\t}, 1 );\r\n\t} );\r\n\t\r\n\t_api_registerPlural( 'rows().cache()', 'row().cache()', function ( type ) {\r\n\t\treturn this.iterator( 'row', function ( settings, row ) {\r\n\t\t\tvar r = settings.aoData[ row ];\r\n\t\t\treturn type === 'search' ? r._aFilterData : r._aSortData;\r\n\t\t}, 1 );\r\n\t} );\r\n\t\r\n\t_api_registerPlural( 'rows().invalidate()', 'row().invalidate()', function ( src ) {\r\n\t\treturn this.iterator( 'row', function ( settings, row ) {\r\n\t\t\t_fnInvalidate( settings, row, src );\r\n\t\t} );\r\n\t} );\r\n\t\r\n\t_api_registerPlural( 'rows().indexes()', 'row().index()', function () {\r\n\t\treturn this.iterator( 'row', function ( settings, row ) {\r\n\t\t\treturn row;\r\n\t\t}, 1 );\r\n\t} );\r\n\t\r\n\t_api_registerPlural( 'rows().ids()', 'row().id()', function ( hash ) {\r\n\t\tvar a = [];\r\n\t\tvar context = this.context;\r\n\t\r\n\t\t// `iterator` will drop undefined values, but in this case we want them\r\n\t\tfor ( var i=0, ien=context.length ; i<ien ; i++ ) {\r\n\t\t\tfor ( var j=0, jen=this[i].length ; j<jen ; j++ ) {\r\n\t\t\t\tvar id = context[i].rowIdFn( context[i].aoData[ this[i][j] ]._aData );\r\n\t\t\t\ta.push( (hash === true ? '#' : '' )+ id );\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\treturn new _Api( context, a );\r\n\t} );\r\n\t\r\n\t_api_registerPlural( 'rows().remove()', 'row().remove()', function () {\r\n\t\tvar that = this;\r\n\t\r\n\t\tthis.iterator( 'row', function ( settings, row, thatIdx ) {\r\n\t\t\tvar data = settings.aoData;\r\n\t\t\tvar rowData = data[ row ];\r\n\t\t\tvar i, ien, j, jen;\r\n\t\t\tvar loopRow, loopCells;\r\n\t\r\n\t\t\tdata.splice( row, 1 );\r\n\t\r\n\t\t\t// Update the cached indexes\r\n\t\t\tfor ( i=0, ien=data.length ; i<ien ; i++ ) {\r\n\t\t\t\tloopRow = data[i];\r\n\t\t\t\tloopCells = loopRow.anCells;\r\n\t\r\n\t\t\t\t// Rows\r\n\t\t\t\tif ( loopRow.nTr !== null ) {\r\n\t\t\t\t\tloopRow.nTr._DT_RowIndex = i;\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t// Cells\r\n\t\t\t\tif ( loopCells !== null ) {\r\n\t\t\t\t\tfor ( j=0, jen=loopCells.length ; j<jen ; j++ ) {\r\n\t\t\t\t\t\tloopCells[j]._DT_CellIndex.row = i;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\r\n\t\t\t// Delete from the display arrays\r\n\t\t\t_fnDeleteIndex( settings.aiDisplayMaster, row );\r\n\t\t\t_fnDeleteIndex( settings.aiDisplay, row );\r\n\t\t\t_fnDeleteIndex( that[ thatIdx ], row, false ); // maintain local indexes\r\n\t\r\n\t\t\t// For server-side processing tables - subtract the deleted row from the count\r\n\t\t\tif ( settings._iRecordsDisplay > 0 ) {\r\n\t\t\t\tsettings._iRecordsDisplay--;\r\n\t\t\t}\r\n\t\r\n\t\t\t// Check for an 'overflow' they case for displaying the table\r\n\t\t\t_fnLengthOverflow( settings );\r\n\t\r\n\t\t\t// Remove the row's ID reference if there is one\r\n\t\t\tvar id = settings.rowIdFn( rowData._aData );\r\n\t\t\tif ( id !== undefined ) {\r\n\t\t\t\tdelete settings.aIds[ id ];\r\n\t\t\t}\r\n\t\t} );\r\n\t\r\n\t\tthis.iterator( 'table', function ( settings ) {\r\n\t\t\tfor ( var i=0, ien=settings.aoData.length ; i<ien ; i++ ) {\r\n\t\t\t\tsettings.aoData[i].idx = i;\r\n\t\t\t}\r\n\t\t} );\r\n\t\r\n\t\treturn this;\r\n\t} );\r\n\t\r\n\t\r\n\t_api_register( 'rows.add()', function ( rows ) {\r\n\t\tvar newRows = this.iterator( 'table', function ( settings ) {\r\n\t\t\t\tvar row, i, ien;\r\n\t\t\t\tvar out = [];\r\n\t\r\n\t\t\t\tfor ( i=0, ien=rows.length ; i<ien ; i++ ) {\r\n\t\t\t\t\trow = rows[i];\r\n\t\r\n\t\t\t\t\tif ( row.nodeName && row.nodeName.toUpperCase() === 'TR' ) {\r\n\t\t\t\t\t\tout.push( _fnAddTr( settings, row )[0] );\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tout.push( _fnAddData( settings, row ) );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\treturn out;\r\n\t\t\t}, 1 );\r\n\t\r\n\t\t// Return an Api.rows() extended instance, so rows().nodes() etc can be used\r\n\t\tvar modRows = this.rows( -1 );\r\n\t\tmodRows.pop();\r\n\t\t$.merge( modRows, newRows );\r\n\t\r\n\t\treturn modRows;\r\n\t} );\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t/**\r\n\t *\r\n\t */\r\n\t_api_register( 'row()', function ( selector, opts ) {\r\n\t\treturn _selector_first( this.rows( selector, opts ) );\r\n\t} );\r\n\t\r\n\t\r\n\t_api_register( 'row().data()', function ( data ) {\r\n\t\tvar ctx = this.context;\r\n\t\r\n\t\tif ( data === undefined ) {\r\n\t\t\t// Get\r\n\t\t\treturn ctx.length && this.length ?\r\n\t\t\t\tctx[0].aoData[ this[0] ]._aData :\r\n\t\t\t\tundefined;\r\n\t\t}\r\n\t\r\n\t\t// Set\r\n\t\tvar row = ctx[0].aoData[ this[0] ];\r\n\t\trow._aData = data;\r\n\t\r\n\t\t// If the DOM has an id, and the data source is an array\r\n\t\tif ( $.isArray( data ) && row.nTr.id ) {\r\n\t\t\t_fnSetObjectDataFn( ctx[0].rowId )( data, row.nTr.id );\r\n\t\t}\r\n\t\r\n\t\t// Automatically invalidate\r\n\t\t_fnInvalidate( ctx[0], this[0], 'data' );\r\n\t\r\n\t\treturn this;\r\n\t} );\r\n\t\r\n\t\r\n\t_api_register( 'row().node()', function () {\r\n\t\tvar ctx = this.context;\r\n\t\r\n\t\treturn ctx.length && this.length ?\r\n\t\t\tctx[0].aoData[ this[0] ].nTr || null :\r\n\t\t\tnull;\r\n\t} );\r\n\t\r\n\t\r\n\t_api_register( 'row.add()', function ( row ) {\r\n\t\t// Allow a jQuery object to be passed in - only a single row is added from\r\n\t\t// it though - the first element in the set\r\n\t\tif ( row instanceof $ && row.length ) {\r\n\t\t\trow = row[0];\r\n\t\t}\r\n\t\r\n\t\tvar rows = this.iterator( 'table', function ( settings ) {\r\n\t\t\tif ( row.nodeName && row.nodeName.toUpperCase() === 'TR' ) {\r\n\t\t\t\treturn _fnAddTr( settings, row )[0];\r\n\t\t\t}\r\n\t\t\treturn _fnAddData( settings, row );\r\n\t\t} );\r\n\t\r\n\t\t// Return an Api.rows() extended instance, with the newly added row selected\r\n\t\treturn this.row( rows[0] );\r\n\t} );\r\n\t\r\n\t\r\n\t\r\n\tvar __details_add = function ( ctx, row, data, klass )\r\n\t{\r\n\t\t// Convert to array of TR elements\r\n\t\tvar rows = [];\r\n\t\tvar addRow = function ( r, k ) {\r\n\t\t\t// Recursion to allow for arrays of jQuery objects\r\n\t\t\tif ( $.isArray( r ) || r instanceof $ ) {\r\n\t\t\t\tfor ( var i=0, ien=r.length ; i<ien ; i++ ) {\r\n\t\t\t\t\taddRow( r[i], k );\r\n\t\t\t\t}\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\r\n\t\t\t// If we get a TR element, then just add it directly - up to the dev\r\n\t\t\t// to add the correct number of columns etc\r\n\t\t\tif ( r.nodeName && r.nodeName.toLowerCase() === 'tr' ) {\r\n\t\t\t\trows.push( r );\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t// Otherwise create a row with a wrapper\r\n\t\t\t\tvar created = $('<tr><td/></tr>').addClass( k );\r\n\t\t\t\t$('td', created)\r\n\t\t\t\t\t.addClass( k )\r\n\t\t\t\t\t.html( r )\r\n\t\t\t\t\t[0].colSpan = _fnVisbleColumns( ctx );\r\n\t\r\n\t\t\t\trows.push( created[0] );\r\n\t\t\t}\r\n\t\t};\r\n\t\r\n\t\taddRow( data, klass );\r\n\t\r\n\t\tif ( row._details ) {\r\n\t\t\trow._details.detach();\r\n\t\t}\r\n\t\r\n\t\trow._details = $(rows);\r\n\t\r\n\t\t// If the children were already shown, that state should be retained\r\n\t\tif ( row._detailsShow ) {\r\n\t\t\trow._details.insertAfter( row.nTr );\r\n\t\t}\r\n\t};\r\n\t\r\n\t\r\n\tvar __details_remove = function ( api, idx )\r\n\t{\r\n\t\tvar ctx = api.context;\r\n\t\r\n\t\tif ( ctx.length ) {\r\n\t\t\tvar row = ctx[0].aoData[ idx !== undefined ? idx : api[0] ];\r\n\t\r\n\t\t\tif ( row && row._details ) {\r\n\t\t\t\trow._details.remove();\r\n\t\r\n\t\t\t\trow._detailsShow = undefined;\r\n\t\t\t\trow._details = undefined;\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n\t\r\n\t\r\n\tvar __details_display = function ( api, show ) {\r\n\t\tvar ctx = api.context;\r\n\t\r\n\t\tif ( ctx.length && api.length ) {\r\n\t\t\tvar row = ctx[0].aoData[ api[0] ];\r\n\t\r\n\t\t\tif ( row._details ) {\r\n\t\t\t\trow._detailsShow = show;\r\n\t\r\n\t\t\t\tif ( show ) {\r\n\t\t\t\t\trow._details.insertAfter( row.nTr );\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\trow._details.detach();\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t__details_events( ctx[0] );\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n\t\r\n\t\r\n\tvar __details_events = function ( settings )\r\n\t{\r\n\t\tvar api = new _Api( settings );\r\n\t\tvar namespace = '.dt.DT_details';\r\n\t\tvar drawEvent = 'draw'+namespace;\r\n\t\tvar colvisEvent = 'column-visibility'+namespace;\r\n\t\tvar destroyEvent = 'destroy'+namespace;\r\n\t\tvar data = settings.aoData;\r\n\t\r\n\t\tapi.off( drawEvent +' '+ colvisEvent +' '+ destroyEvent );\r\n\t\r\n\t\tif ( _pluck( data, '_details' ).length > 0 ) {\r\n\t\t\t// On each draw, insert the required elements into the document\r\n\t\t\tapi.on( drawEvent, function ( e, ctx ) {\r\n\t\t\t\tif ( settings !== ctx ) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\tapi.rows( {page:'current'} ).eq(0).each( function (idx) {\r\n\t\t\t\t\t// Internal data grab\r\n\t\t\t\t\tvar row = data[ idx ];\r\n\t\r\n\t\t\t\t\tif ( row._detailsShow ) {\r\n\t\t\t\t\t\trow._details.insertAfter( row.nTr );\r\n\t\t\t\t\t}\r\n\t\t\t\t} );\r\n\t\t\t} );\r\n\t\r\n\t\t\t// Column visibility change - update the colspan\r\n\t\t\tapi.on( colvisEvent, function ( e, ctx, idx, vis ) {\r\n\t\t\t\tif ( settings !== ctx ) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t// Update the colspan for the details rows (note, only if it already has\r\n\t\t\t\t// a colspan)\r\n\t\t\t\tvar row, visible = _fnVisbleColumns( ctx );\r\n\t\r\n\t\t\t\tfor ( var i=0, ien=data.length ; i<ien ; i++ ) {\r\n\t\t\t\t\trow = data[i];\r\n\t\r\n\t\t\t\t\tif ( row._details ) {\r\n\t\t\t\t\t\trow._details.children('td[colspan]').attr('colspan', visible );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} );\r\n\t\r\n\t\t\t// Table destroyed - nuke any child rows\r\n\t\t\tapi.on( destroyEvent, function ( e, ctx ) {\r\n\t\t\t\tif ( settings !== ctx ) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\tfor ( var i=0, ien=data.length ; i<ien ; i++ ) {\r\n\t\t\t\t\tif ( data[i]._details ) {\r\n\t\t\t\t\t\t__details_remove( api, i );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} );\r\n\t\t}\r\n\t};\r\n\t\r\n\t// Strings for the method names to help minification\r\n\tvar _emp = '';\r\n\tvar _child_obj = _emp+'row().child';\r\n\tvar _child_mth = _child_obj+'()';\r\n\t\r\n\t// data can be:\r\n\t// tr\r\n\t// string\r\n\t// jQuery or array of any of the above\r\n\t_api_register( _child_mth, function ( data, klass ) {\r\n\t\tvar ctx = this.context;\r\n\t\r\n\t\tif ( data === undefined ) {\r\n\t\t\t// get\r\n\t\t\treturn ctx.length && this.length ?\r\n\t\t\t\tctx[0].aoData[ this[0] ]._details :\r\n\t\t\t\tundefined;\r\n\t\t}\r\n\t\telse if ( data === true ) {\r\n\t\t\t// show\r\n\t\t\tthis.child.show();\r\n\t\t}\r\n\t\telse if ( data === false ) {\r\n\t\t\t// remove\r\n\t\t\t__details_remove( this );\r\n\t\t}\r\n\t\telse if ( ctx.length && this.length ) {\r\n\t\t\t// set\r\n\t\t\t__details_add( ctx[0], ctx[0].aoData[ this[0] ], data, klass );\r\n\t\t}\r\n\t\r\n\t\treturn this;\r\n\t} );\r\n\t\r\n\t\r\n\t_api_register( [\r\n\t\t_child_obj+'.show()',\r\n\t\t_child_mth+'.show()' // only when `child()` was called with parameters (without\r\n\t], function ( show ) { // it returns an object and this method is not executed)\r\n\t\t__details_display( this, true );\r\n\t\treturn this;\r\n\t} );\r\n\t\r\n\t\r\n\t_api_register( [\r\n\t\t_child_obj+'.hide()',\r\n\t\t_child_mth+'.hide()' // only when `child()` was called with parameters (without\r\n\t], function () { // it returns an object and this method is not executed)\r\n\t\t__details_display( this, false );\r\n\t\treturn this;\r\n\t} );\r\n\t\r\n\t\r\n\t_api_register( [\r\n\t\t_child_obj+'.remove()',\r\n\t\t_child_mth+'.remove()' // only when `child()` was called with parameters (without\r\n\t], function () { // it returns an object and this method is not executed)\r\n\t\t__details_remove( this );\r\n\t\treturn this;\r\n\t} );\r\n\t\r\n\t\r\n\t_api_register( _child_obj+'.isShown()', function () {\r\n\t\tvar ctx = this.context;\r\n\t\r\n\t\tif ( ctx.length && this.length ) {\r\n\t\t\t// _detailsShown as false or undefined will fall through to return false\r\n\t\t\treturn ctx[0].aoData[ this[0] ]._detailsShow || false;\r\n\t\t}\r\n\t\treturn false;\r\n\t} );\r\n\t\r\n\t\r\n\t\r\n\t/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *\r\n\t * Columns\r\n\t *\r\n\t * {integer} - column index (>=0 count from left, <0 count from right)\r\n\t * \"{integer}:visIdx\" - visible column index (i.e. translate to column index) (>=0 count from left, <0 count from right)\r\n\t * \"{integer}:visible\" - alias for {integer}:visIdx (>=0 count from left, <0 count from right)\r\n\t * \"{string}:name\" - column name\r\n\t * \"{string}\" - jQuery selector on column header nodes\r\n\t *\r\n\t */\r\n\t\r\n\t// can be an array of these items, comma separated list, or an array of comma\r\n\t// separated lists\r\n\t\r\n\tvar __re_column_selector = /^([^:]+):(name|visIdx|visible)$/;\r\n\t\r\n\t\r\n\t// r1 and r2 are redundant - but it means that the parameters match for the\r\n\t// iterator callback in columns().data()\r\n\tvar __columnData = function ( settings, column, r1, r2, rows ) {\r\n\t\tvar a = [];\r\n\t\tfor ( var row=0, ien=rows.length ; row<ien ; row++ ) {\r\n\t\t\ta.push( _fnGetCellData( settings, rows[row], column ) );\r\n\t\t}\r\n\t\treturn a;\r\n\t};\r\n\t\r\n\t\r\n\tvar __column_selector = function ( settings, selector, opts )\r\n\t{\r\n\t\tvar\r\n\t\t\tcolumns = settings.aoColumns,\r\n\t\t\tnames = _pluck( columns, 'sName' ),\r\n\t\t\tnodes = _pluck( columns, 'nTh' );\r\n\t\r\n\t\tvar run = function ( s ) {\r\n\t\t\tvar selInt = _intVal( s );\r\n\t\r\n\t\t\t// Selector - all\r\n\t\t\tif ( s === '' ) {\r\n\t\t\t\treturn _range( columns.length );\r\n\t\t\t}\r\n\t\r\n\t\t\t// Selector - index\r\n\t\t\tif ( selInt !== null ) {\r\n\t\t\t\treturn [ selInt >= 0 ?\r\n\t\t\t\t\tselInt : // Count from left\r\n\t\t\t\t\tcolumns.length + selInt // Count from right (+ because its a negative value)\r\n\t\t\t\t];\r\n\t\t\t}\r\n\t\r\n\t\t\t// Selector = function\r\n\t\t\tif ( typeof s === 'function' ) {\r\n\t\t\t\tvar rows = _selector_row_indexes( settings, opts );\r\n\t\r\n\t\t\t\treturn $.map( columns, function (col, idx) {\r\n\t\t\t\t\treturn s(\r\n\t\t\t\t\t\t\tidx,\r\n\t\t\t\t\t\t\t__columnData( settings, idx, 0, 0, rows ),\r\n\t\t\t\t\t\t\tnodes[ idx ]\r\n\t\t\t\t\t\t) ? idx : null;\r\n\t\t\t\t} );\r\n\t\t\t}\r\n\t\r\n\t\t\t// jQuery or string selector\r\n\t\t\tvar match = typeof s === 'string' ?\r\n\t\t\t\ts.match( __re_column_selector ) :\r\n\t\t\t\t'';\r\n\t\r\n\t\t\tif ( match ) {\r\n\t\t\t\tswitch( match[2] ) {\r\n\t\t\t\t\tcase 'visIdx':\r\n\t\t\t\t\tcase 'visible':\r\n\t\t\t\t\t\tvar idx = parseInt( match[1], 10 );\r\n\t\t\t\t\t\t// Visible index given, convert to column index\r\n\t\t\t\t\t\tif ( idx < 0 ) {\r\n\t\t\t\t\t\t\t// Counting from the right\r\n\t\t\t\t\t\t\tvar visColumns = $.map( columns, function (col,i) {\r\n\t\t\t\t\t\t\t\treturn col.bVisible ? i : null;\r\n\t\t\t\t\t\t\t} );\r\n\t\t\t\t\t\t\treturn [ visColumns[ visColumns.length + idx ] ];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t// Counting from the left\r\n\t\t\t\t\t\treturn [ _fnVisibleToColumnIndex( settings, idx ) ];\r\n\t\r\n\t\t\t\t\tcase 'name':\r\n\t\t\t\t\t\t// match by name. `names` is column index complete and in order\r\n\t\t\t\t\t\treturn $.map( names, function (name, i) {\r\n\t\t\t\t\t\t\treturn name === match[1] ? i : null;\r\n\t\t\t\t\t\t} );\r\n\t\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\treturn [];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\r\n\t\t\t// Cell in the table body\r\n\t\t\tif ( s.nodeName && s._DT_CellIndex ) {\r\n\t\t\t\treturn [ s._DT_CellIndex.column ];\r\n\t\t\t}\r\n\t\r\n\t\t\t// jQuery selector on the TH elements for the columns\r\n\t\t\tvar jqResult = $( nodes )\r\n\t\t\t\t.filter( s )\r\n\t\t\t\t.map( function () {\r\n\t\t\t\t\treturn $.inArray( this, nodes ); // `nodes` is column index complete and in order\r\n\t\t\t\t} )\r\n\t\t\t\t.toArray();\r\n\t\r\n\t\t\tif ( jqResult.length || ! s.nodeName ) {\r\n\t\t\t\treturn jqResult;\r\n\t\t\t}\r\n\t\r\n\t\t\t// Otherwise a node which might have a `dt-column` data attribute, or be\r\n\t\t\t// a child or such an element\r\n\t\t\tvar host = $(s).closest('*[data-dt-column]');\r\n\t\t\treturn host.length ?\r\n\t\t\t\t[ host.data('dt-column') ] :\r\n\t\t\t\t[];\r\n\t\t};\r\n\t\r\n\t\treturn _selector_run( 'column', selector, run, settings, opts );\r\n\t};\r\n\t\r\n\t\r\n\tvar __setColumnVis = function ( settings, column, vis ) {\r\n\t\tvar\r\n\t\t\tcols = settings.aoColumns,\r\n\t\t\tcol = cols[ column ],\r\n\t\t\tdata = settings.aoData,\r\n\t\t\trow, cells, i, ien, tr;\r\n\t\r\n\t\t// Get\r\n\t\tif ( vis === undefined ) {\r\n\t\t\treturn col.bVisible;\r\n\t\t}\r\n\t\r\n\t\t// Set\r\n\t\t// No change\r\n\t\tif ( col.bVisible === vis ) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\r\n\t\tif ( vis ) {\r\n\t\t\t// Insert column\r\n\t\t\t// Need to decide if we should use appendChild or insertBefore\r\n\t\t\tvar insertBefore = $.inArray( true, _pluck(cols, 'bVisible'), column+1 );\r\n\t\r\n\t\t\tfor ( i=0, ien=data.length ; i<ien ; i++ ) {\r\n\t\t\t\ttr = data[i].nTr;\r\n\t\t\t\tcells = data[i].anCells;\r\n\t\r\n\t\t\t\tif ( tr ) {\r\n\t\t\t\t\t// insertBefore can act like appendChild if 2nd arg is null\r\n\t\t\t\t\ttr.insertBefore( cells[ column ], cells[ insertBefore ] || null );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\t// Remove column\r\n\t\t\t$( _pluck( settings.aoData, 'anCells', column ) ).detach();\r\n\t\t}\r\n\t\r\n\t\t// Common actions\r\n\t\tcol.bVisible = vis;\r\n\t};\r\n\t\r\n\t\r\n\t_api_register( 'columns()', function ( selector, opts ) {\r\n\t\t// argument shifting\r\n\t\tif ( selector === undefined ) {\r\n\t\t\tselector = '';\r\n\t\t}\r\n\t\telse if ( $.isPlainObject( selector ) ) {\r\n\t\t\topts = selector;\r\n\t\t\tselector = '';\r\n\t\t}\r\n\t\r\n\t\topts = _selector_opts( opts );\r\n\t\r\n\t\tvar inst = this.iterator( 'table', function ( settings ) {\r\n\t\t\treturn __column_selector( settings, selector, opts );\r\n\t\t}, 1 );\r\n\t\r\n\t\t// Want argument shifting here and in _row_selector?\r\n\t\tinst.selector.cols = selector;\r\n\t\tinst.selector.opts = opts;\r\n\t\r\n\t\treturn inst;\r\n\t} );\r\n\t\r\n\t_api_registerPlural( 'columns().header()', 'column().header()', function ( selector, opts ) {\r\n\t\treturn this.iterator( 'column', function ( settings, column ) {\r\n\t\t\treturn settings.aoColumns[column].nTh;\r\n\t\t}, 1 );\r\n\t} );\r\n\t\r\n\t_api_registerPlural( 'columns().footer()', 'column().footer()', function ( selector, opts ) {\r\n\t\treturn this.iterator( 'column', function ( settings, column ) {\r\n\t\t\treturn settings.aoColumns[column].nTf;\r\n\t\t}, 1 );\r\n\t} );\r\n\t\r\n\t_api_registerPlural( 'columns().data()', 'column().data()', function () {\r\n\t\treturn this.iterator( 'column-rows', __columnData, 1 );\r\n\t} );\r\n\t\r\n\t_api_registerPlural( 'columns().dataSrc()', 'column().dataSrc()', function () {\r\n\t\treturn this.iterator( 'column', function ( settings, column ) {\r\n\t\t\treturn settings.aoColumns[column].mData;\r\n\t\t}, 1 );\r\n\t} );\r\n\t\r\n\t_api_registerPlural( 'columns().cache()', 'column().cache()', function ( type ) {\r\n\t\treturn this.iterator( 'column-rows', function ( settings, column, i, j, rows ) {\r\n\t\t\treturn _pluck_order( settings.aoData, rows,\r\n\t\t\t\ttype === 'search' ? '_aFilterData' : '_aSortData', column\r\n\t\t\t);\r\n\t\t}, 1 );\r\n\t} );\r\n\t\r\n\t_api_registerPlural( 'columns().nodes()', 'column().nodes()', function () {\r\n\t\treturn this.iterator( 'column-rows', function ( settings, column, i, j, rows ) {\r\n\t\t\treturn _pluck_order( settings.aoData, rows, 'anCells', column ) ;\r\n\t\t}, 1 );\r\n\t} );\r\n\t\r\n\t_api_registerPlural( 'columns().visible()', 'column().visible()', function ( vis, calc ) {\r\n\t\tvar that = this;\r\n\t\tvar ret = this.iterator( 'column', function ( settings, column ) {\r\n\t\t\tif ( vis === undefined ) {\r\n\t\t\t\treturn settings.aoColumns[ column ].bVisible;\r\n\t\t\t} // else\r\n\t\t\t__setColumnVis( settings, column, vis );\r\n\t\t} );\r\n\t\r\n\t\t// Group the column visibility changes\r\n\t\tif ( vis !== undefined ) {\r\n\t\t\tthis.iterator( 'table', function ( settings ) {\r\n\t\t\t\t// Redraw the header after changes\r\n\t\t\t\t_fnDrawHead( settings, settings.aoHeader );\r\n\t\t\t\t_fnDrawHead( settings, settings.aoFooter );\r\n\t\t\r\n\t\t\t\t// Update colspan for no records display. Child rows and extensions will use their own\r\n\t\t\t\t// listeners to do this - only need to update the empty table item here\r\n\t\t\t\tif ( ! settings.aiDisplay.length ) {\r\n\t\t\t\t\t$(settings.nTBody).find('td[colspan]').attr('colspan', _fnVisbleColumns(settings));\r\n\t\t\t\t}\r\n\t\t\r\n\t\t\t\t_fnSaveState( settings );\r\n\t\r\n\t\t\t\t// Second loop once the first is done for events\r\n\t\t\t\tthat.iterator( 'column', function ( settings, column ) {\r\n\t\t\t\t\t_fnCallbackFire( settings, null, 'column-visibility', [settings, column, vis, calc] );\r\n\t\t\t\t} );\r\n\t\r\n\t\t\t\tif ( calc === undefined || calc ) {\r\n\t\t\t\t\tthat.columns.adjust();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\r\n\t\treturn ret;\r\n\t} );\r\n\t\r\n\t_api_registerPlural( 'columns().indexes()', 'column().index()', function ( type ) {\r\n\t\treturn this.iterator( 'column', function ( settings, column ) {\r\n\t\t\treturn type === 'visible' ?\r\n\t\t\t\t_fnColumnIndexToVisible( settings, column ) :\r\n\t\t\t\tcolumn;\r\n\t\t}, 1 );\r\n\t} );\r\n\t\r\n\t_api_register( 'columns.adjust()', function () {\r\n\t\treturn this.iterator( 'table', function ( settings ) {\r\n\t\t\t_fnAdjustColumnSizing( settings );\r\n\t\t}, 1 );\r\n\t} );\r\n\t\r\n\t_api_register( 'column.index()', function ( type, idx ) {\r\n\t\tif ( this.context.length !== 0 ) {\r\n\t\t\tvar ctx = this.context[0];\r\n\t\r\n\t\t\tif ( type === 'fromVisible' || type === 'toData' ) {\r\n\t\t\t\treturn _fnVisibleToColumnIndex( ctx, idx );\r\n\t\t\t}\r\n\t\t\telse if ( type === 'fromData' || type === 'toVisible' ) {\r\n\t\t\t\treturn _fnColumnIndexToVisible( ctx, idx );\r\n\t\t\t}\r\n\t\t}\r\n\t} );\r\n\t\r\n\t_api_register( 'column()', function ( selector, opts ) {\r\n\t\treturn _selector_first( this.columns( selector, opts ) );\r\n\t} );\r\n\t\r\n\t\r\n\t\r\n\tvar __cell_selector = function ( settings, selector, opts )\r\n\t{\r\n\t\tvar data = settings.aoData;\r\n\t\tvar rows = _selector_row_indexes( settings, opts );\r\n\t\tvar cells = _removeEmpty( _pluck_order( data, rows, 'anCells' ) );\r\n\t\tvar allCells = $( [].concat.apply([], cells) );\r\n\t\tvar row;\r\n\t\tvar columns = settings.aoColumns.length;\r\n\t\tvar a, i, ien, j, o, host;\r\n\t\r\n\t\tvar run = function ( s ) {\r\n\t\t\tvar fnSelector = typeof s === 'function';\r\n\t\r\n\t\t\tif ( s === null || s === undefined || fnSelector ) {\r\n\t\t\t\t// All cells and function selectors\r\n\t\t\t\ta = [];\r\n\t\r\n\t\t\t\tfor ( i=0, ien=rows.length ; i<ien ; i++ ) {\r\n\t\t\t\t\trow = rows[i];\r\n\t\r\n\t\t\t\t\tfor ( j=0 ; j<columns ; j++ ) {\r\n\t\t\t\t\t\to = {\r\n\t\t\t\t\t\t\trow: row,\r\n\t\t\t\t\t\t\tcolumn: j\r\n\t\t\t\t\t\t};\r\n\t\r\n\t\t\t\t\t\tif ( fnSelector ) {\r\n\t\t\t\t\t\t\t// Selector - function\r\n\t\t\t\t\t\t\thost = data[ row ];\r\n\t\r\n\t\t\t\t\t\t\tif ( s( o, _fnGetCellData(settings, row, j), host.anCells ? host.anCells[j] : null ) ) {\r\n\t\t\t\t\t\t\t\ta.push( o );\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t// Selector - all\r\n\t\t\t\t\t\t\ta.push( o );\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\treturn a;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Selector - index\r\n\t\t\tif ( $.isPlainObject( s ) ) {\r\n\t\t\t\t// Valid cell index and its in the array of selectable rows\r\n\t\t\t\treturn s.column !== undefined && s.row !== undefined && $.inArray( s.row, rows ) !== -1 ?\r\n\t\t\t\t\t[s] :\r\n\t\t\t\t\t[];\r\n\t\t\t}\r\n\t\r\n\t\t\t// Selector - jQuery filtered cells\r\n\t\t\tvar jqResult = allCells\r\n\t\t\t\t.filter( s )\r\n\t\t\t\t.map( function (i, el) {\r\n\t\t\t\t\treturn { // use a new object, in case someone changes the values\r\n\t\t\t\t\t\trow: el._DT_CellIndex.row,\r\n\t\t\t\t\t\tcolumn: el._DT_CellIndex.column\r\n\t \t\t\t\t};\r\n\t\t\t\t} )\r\n\t\t\t\t.toArray();\r\n\t\r\n\t\t\tif ( jqResult.length || ! s.nodeName ) {\r\n\t\t\t\treturn jqResult;\r\n\t\t\t}\r\n\t\r\n\t\t\t// Otherwise the selector is a node, and there is one last option - the\r\n\t\t\t// element might be a child of an element which has dt-row and dt-column\r\n\t\t\t// data attributes\r\n\t\t\thost = $(s).closest('*[data-dt-row]');\r\n\t\t\treturn host.length ?\r\n\t\t\t\t[ {\r\n\t\t\t\t\trow: host.data('dt-row'),\r\n\t\t\t\t\tcolumn: host.data('dt-column')\r\n\t\t\t\t} ] :\r\n\t\t\t\t[];\r\n\t\t};\r\n\t\r\n\t\treturn _selector_run( 'cell', selector, run, settings, opts );\r\n\t};\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t_api_register( 'cells()', function ( rowSelector, columnSelector, opts ) {\r\n\t\t// Argument shifting\r\n\t\tif ( $.isPlainObject( rowSelector ) ) {\r\n\t\t\t// Indexes\r\n\t\t\tif ( rowSelector.row === undefined ) {\r\n\t\t\t\t// Selector options in first parameter\r\n\t\t\t\topts = rowSelector;\r\n\t\t\t\trowSelector = null;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t// Cell index objects in first parameter\r\n\t\t\t\topts = columnSelector;\r\n\t\t\t\tcolumnSelector = null;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif ( $.isPlainObject( columnSelector ) ) {\r\n\t\t\topts = columnSelector;\r\n\t\t\tcolumnSelector = null;\r\n\t\t}\r\n\t\r\n\t\t// Cell selector\r\n\t\tif ( columnSelector === null || columnSelector === undefined ) {\r\n\t\t\treturn this.iterator( 'table', function ( settings ) {\r\n\t\t\t\treturn __cell_selector( settings, rowSelector, _selector_opts( opts ) );\r\n\t\t\t} );\r\n\t\t}\r\n\t\r\n\t\t// The default built in options need to apply to row and columns\r\n\t\tvar internalOpts = opts ? {\r\n\t\t\tpage: opts.page,\r\n\t\t\torder: opts.order,\r\n\t\t\tsearch: opts.search\r\n\t\t} : {};\r\n\t\r\n\t\t// Row + column selector\r\n\t\tvar columns = this.columns( columnSelector, internalOpts );\r\n\t\tvar rows = this.rows( rowSelector, internalOpts );\r\n\t\tvar i, ien, j, jen;\r\n\t\r\n\t\tvar cellsNoOpts = this.iterator( 'table', function ( settings, idx ) {\r\n\t\t\tvar a = [];\r\n\t\r\n\t\t\tfor ( i=0, ien=rows[idx].length ; i<ien ; i++ ) {\r\n\t\t\t\tfor ( j=0, jen=columns[idx].length ; j<jen ; j++ ) {\r\n\t\t\t\t\ta.push( {\r\n\t\t\t\t\t\trow: rows[idx][i],\r\n\t\t\t\t\t\tcolumn: columns[idx][j]\r\n\t\t\t\t\t} );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\r\n\t\t\treturn a;\r\n\t\t}, 1 );\r\n\t\r\n\t\t// There is currently only one extension which uses a cell selector extension\r\n\t\t// It is a _major_ performance drag to run this if it isn't needed, so this is\r\n\t\t// an extension specific check at the moment\r\n\t\tvar cells = opts && opts.selected ?\r\n\t\t\tthis.cells( cellsNoOpts, opts ) :\r\n\t\t\tcellsNoOpts;\r\n\t\r\n\t\t$.extend( cells.selector, {\r\n\t\t\tcols: columnSelector,\r\n\t\t\trows: rowSelector,\r\n\t\t\topts: opts\r\n\t\t} );\r\n\t\r\n\t\treturn cells;\r\n\t} );\r\n\t\r\n\t\r\n\t_api_registerPlural( 'cells().nodes()', 'cell().node()', function () {\r\n\t\treturn this.iterator( 'cell', function ( settings, row, column ) {\r\n\t\t\tvar data = settings.aoData[ row ];\r\n\t\r\n\t\t\treturn data && data.anCells ?\r\n\t\t\t\tdata.anCells[ column ] :\r\n\t\t\t\tundefined;\r\n\t\t}, 1 );\r\n\t} );\r\n\t\r\n\t\r\n\t_api_register( 'cells().data()', function () {\r\n\t\treturn this.iterator( 'cell', function ( settings, row, column ) {\r\n\t\t\treturn _fnGetCellData( settings, row, column );\r\n\t\t}, 1 );\r\n\t} );\r\n\t\r\n\t\r\n\t_api_registerPlural( 'cells().cache()', 'cell().cache()', function ( type ) {\r\n\t\ttype = type === 'search' ? '_aFilterData' : '_aSortData';\r\n\t\r\n\t\treturn this.iterator( 'cell', function ( settings, row, column ) {\r\n\t\t\treturn settings.aoData[ row ][ type ][ column ];\r\n\t\t}, 1 );\r\n\t} );\r\n\t\r\n\t\r\n\t_api_registerPlural( 'cells().render()', 'cell().render()', function ( type ) {\r\n\t\treturn this.iterator( 'cell', function ( settings, row, column ) {\r\n\t\t\treturn _fnGetCellData( settings, row, column, type );\r\n\t\t}, 1 );\r\n\t} );\r\n\t\r\n\t\r\n\t_api_registerPlural( 'cells().indexes()', 'cell().index()', function () {\r\n\t\treturn this.iterator( 'cell', function ( settings, row, column ) {\r\n\t\t\treturn {\r\n\t\t\t\trow: row,\r\n\t\t\t\tcolumn: column,\r\n\t\t\t\tcolumnVisible: _fnColumnIndexToVisible( settings, column )\r\n\t\t\t};\r\n\t\t}, 1 );\r\n\t} );\r\n\t\r\n\t\r\n\t_api_registerPlural( 'cells().invalidate()', 'cell().invalidate()', function ( src ) {\r\n\t\treturn this.iterator( 'cell', function ( settings, row, column ) {\r\n\t\t\t_fnInvalidate( settings, row, src, column );\r\n\t\t} );\r\n\t} );\r\n\t\r\n\t\r\n\t\r\n\t_api_register( 'cell()', function ( rowSelector, columnSelector, opts ) {\r\n\t\treturn _selector_first( this.cells( rowSelector, columnSelector, opts ) );\r\n\t} );\r\n\t\r\n\t\r\n\t_api_register( 'cell().data()', function ( data ) {\r\n\t\tvar ctx = this.context;\r\n\t\tvar cell = this[0];\r\n\t\r\n\t\tif ( data === undefined ) {\r\n\t\t\t// Get\r\n\t\t\treturn ctx.length && cell.length ?\r\n\t\t\t\t_fnGetCellData( ctx[0], cell[0].row, cell[0].column ) :\r\n\t\t\t\tundefined;\r\n\t\t}\r\n\t\r\n\t\t// Set\r\n\t\t_fnSetCellData( ctx[0], cell[0].row, cell[0].column, data );\r\n\t\t_fnInvalidate( ctx[0], cell[0].row, 'data', cell[0].column );\r\n\t\r\n\t\treturn this;\r\n\t} );\r\n\t\r\n\t\r\n\t\r\n\t/**\r\n\t * Get current ordering (sorting) that has been applied to the table.\r\n\t *\r\n\t * @returns {array} 2D array containing the sorting information for the first\r\n\t * table in the current context. Each element in the parent array represents\r\n\t * a column being sorted upon (i.e. multi-sorting with two columns would have\r\n\t * 2 inner arrays). The inner arrays may have 2 or 3 elements. The first is\r\n\t * the column index that the sorting condition applies to, the second is the\r\n\t * direction of the sort (`desc` or `asc`) and, optionally, the third is the\r\n\t * index of the sorting order from the `column.sorting` initialisation array.\r\n\t *//**\r\n\t * Set the ordering for the table.\r\n\t *\r\n\t * @param {integer} order Column index to sort upon.\r\n\t * @param {string} direction Direction of the sort to be applied (`asc` or `desc`)\r\n\t * @returns {DataTables.Api} this\r\n\t *//**\r\n\t * Set the ordering for the table.\r\n\t *\r\n\t * @param {array} order 1D array of sorting information to be applied.\r\n\t * @param {array} [...] Optional additional sorting conditions\r\n\t * @returns {DataTables.Api} this\r\n\t *//**\r\n\t * Set the ordering for the table.\r\n\t *\r\n\t * @param {array} order 2D array of sorting information to be applied.\r\n\t * @returns {DataTables.Api} this\r\n\t */\r\n\t_api_register( 'order()', function ( order, dir ) {\r\n\t\tvar ctx = this.context;\r\n\t\r\n\t\tif ( order === undefined ) {\r\n\t\t\t// get\r\n\t\t\treturn ctx.length !== 0 ?\r\n\t\t\t\tctx[0].aaSorting :\r\n\t\t\t\tundefined;\r\n\t\t}\r\n\t\r\n\t\t// set\r\n\t\tif ( typeof order === 'number' ) {\r\n\t\t\t// Simple column / direction passed in\r\n\t\t\torder = [ [ order, dir ] ];\r\n\t\t}\r\n\t\telse if ( order.length && ! $.isArray( order[0] ) ) {\r\n\t\t\t// Arguments passed in (list of 1D arrays)\r\n\t\t\torder = Array.prototype.slice.call( arguments );\r\n\t\t}\r\n\t\t// otherwise a 2D array was passed in\r\n\t\r\n\t\treturn this.iterator( 'table', function ( settings ) {\r\n\t\t\tsettings.aaSorting = order.slice();\r\n\t\t} );\r\n\t} );\r\n\t\r\n\t\r\n\t/**\r\n\t * Attach a sort listener to an element for a given column\r\n\t *\r\n\t * @param {node|jQuery|string} node Identifier for the element(s) to attach the\r\n\t * listener to. This can take the form of a single DOM node, a jQuery\r\n\t * collection of nodes or a jQuery selector which will identify the node(s).\r\n\t * @param {integer} column the column that a click on this node will sort on\r\n\t * @param {function} [callback] callback function when sort is run\r\n\t * @returns {DataTables.Api} this\r\n\t */\r\n\t_api_register( 'order.listener()', function ( node, column, callback ) {\r\n\t\treturn this.iterator( 'table', function ( settings ) {\r\n\t\t\t_fnSortAttachListener( settings, node, column, callback );\r\n\t\t} );\r\n\t} );\r\n\t\r\n\t\r\n\t_api_register( 'order.fixed()', function ( set ) {\r\n\t\tif ( ! set ) {\r\n\t\t\tvar ctx = this.context;\r\n\t\t\tvar fixed = ctx.length ?\r\n\t\t\t\tctx[0].aaSortingFixed :\r\n\t\t\t\tundefined;\r\n\t\r\n\t\t\treturn $.isArray( fixed ) ?\r\n\t\t\t\t{ pre: fixed } :\r\n\t\t\t\tfixed;\r\n\t\t}\r\n\t\r\n\t\treturn this.iterator( 'table', function ( settings ) {\r\n\t\t\tsettings.aaSortingFixed = $.extend( true, {}, set );\r\n\t\t} );\r\n\t} );\r\n\t\r\n\t\r\n\t// Order by the selected column(s)\r\n\t_api_register( [\r\n\t\t'columns().order()',\r\n\t\t'column().order()'\r\n\t], function ( dir ) {\r\n\t\tvar that = this;\r\n\t\r\n\t\treturn this.iterator( 'table', function ( settings, i ) {\r\n\t\t\tvar sort = [];\r\n\t\r\n\t\t\t$.each( that[i], function (j, col) {\r\n\t\t\t\tsort.push( [ col, dir ] );\r\n\t\t\t} );\r\n\t\r\n\t\t\tsettings.aaSorting = sort;\r\n\t\t} );\r\n\t} );\r\n\t\r\n\t\r\n\t\r\n\t_api_register( 'search()', function ( input, regex, smart, caseInsen ) {\r\n\t\tvar ctx = this.context;\r\n\t\r\n\t\tif ( input === undefined ) {\r\n\t\t\t// get\r\n\t\t\treturn ctx.length !== 0 ?\r\n\t\t\t\tctx[0].oPreviousSearch.sSearch :\r\n\t\t\t\tundefined;\r\n\t\t}\r\n\t\r\n\t\t// set\r\n\t\treturn this.iterator( 'table', function ( settings ) {\r\n\t\t\tif ( ! settings.oFeatures.bFilter ) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\r\n\t\t\t_fnFilterComplete( settings, $.extend( {}, settings.oPreviousSearch, {\r\n\t\t\t\t\"sSearch\": input+\"\",\r\n\t\t\t\t\"bRegex\": regex === null ? false : regex,\r\n\t\t\t\t\"bSmart\": smart === null ? true : smart,\r\n\t\t\t\t\"bCaseInsensitive\": caseInsen === null ? true : caseInsen\r\n\t\t\t} ), 1 );\r\n\t\t} );\r\n\t} );\r\n\t\r\n\t\r\n\t_api_registerPlural(\r\n\t\t'columns().search()',\r\n\t\t'column().search()',\r\n\t\tfunction ( input, regex, smart, caseInsen ) {\r\n\t\t\treturn this.iterator( 'column', function ( settings, column ) {\r\n\t\t\t\tvar preSearch = settings.aoPreSearchCols;\r\n\t\r\n\t\t\t\tif ( input === undefined ) {\r\n\t\t\t\t\t// get\r\n\t\t\t\t\treturn preSearch[ column ].sSearch;\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t// set\r\n\t\t\t\tif ( ! settings.oFeatures.bFilter ) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t$.extend( preSearch[ column ], {\r\n\t\t\t\t\t\"sSearch\": input+\"\",\r\n\t\t\t\t\t\"bRegex\": regex === null ? false : regex,\r\n\t\t\t\t\t\"bSmart\": smart === null ? true : smart,\r\n\t\t\t\t\t\"bCaseInsensitive\": caseInsen === null ? true : caseInsen\r\n\t\t\t\t} );\r\n\t\r\n\t\t\t\t_fnFilterComplete( settings, settings.oPreviousSearch, 1 );\r\n\t\t\t} );\r\n\t\t}\r\n\t);\r\n\t\r\n\t/*\r\n\t * State API methods\r\n\t */\r\n\t\r\n\t_api_register( 'state()', function () {\r\n\t\treturn this.context.length ?\r\n\t\t\tthis.context[0].oSavedState :\r\n\t\t\tnull;\r\n\t} );\r\n\t\r\n\t\r\n\t_api_register( 'state.clear()', function () {\r\n\t\treturn this.iterator( 'table', function ( settings ) {\r\n\t\t\t// Save an empty object\r\n\t\t\tsettings.fnStateSaveCallback.call( settings.oInstance, settings, {} );\r\n\t\t} );\r\n\t} );\r\n\t\r\n\t\r\n\t_api_register( 'state.loaded()', function () {\r\n\t\treturn this.context.length ?\r\n\t\t\tthis.context[0].oLoadedState :\r\n\t\t\tnull;\r\n\t} );\r\n\t\r\n\t\r\n\t_api_register( 'state.save()', function () {\r\n\t\treturn this.iterator( 'table', function ( settings ) {\r\n\t\t\t_fnSaveState( settings );\r\n\t\t} );\r\n\t} );\r\n\t\r\n\t\r\n\t\r\n\t/**\r\n\t * Provide a common method for plug-ins to check the version of DataTables being\r\n\t * used, in order to ensure compatibility.\r\n\t *\r\n\t * @param {string} version Version string to check for, in the format \"X.Y.Z\".\r\n\t * Note that the formats \"X\" and \"X.Y\" are also acceptable.\r\n\t * @returns {boolean} true if this version of DataTables is greater or equal to\r\n\t * the required version, or false if this version of DataTales is not\r\n\t * suitable\r\n\t * @static\r\n\t * @dtopt API-Static\r\n\t *\r\n\t * @example\r\n\t * alert( $.fn.dataTable.versionCheck( '1.9.0' ) );\r\n\t */\r\n\tDataTable.versionCheck = DataTable.fnVersionCheck = function( version )\r\n\t{\r\n\t\tvar aThis = DataTable.version.split('.');\r\n\t\tvar aThat = version.split('.');\r\n\t\tvar iThis, iThat;\r\n\t\r\n\t\tfor ( var i=0, iLen=aThat.length ; i<iLen ; i++ ) {\r\n\t\t\tiThis = parseInt( aThis[i], 10 ) || 0;\r\n\t\t\tiThat = parseInt( aThat[i], 10 ) || 0;\r\n\t\r\n\t\t\t// Parts are the same, keep comparing\r\n\t\t\tif (iThis === iThat) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\r\n\t\t\t// Parts are different, return immediately\r\n\t\t\treturn iThis > iThat;\r\n\t\t}\r\n\t\r\n\t\treturn true;\r\n\t};\r\n\t\r\n\t\r\n\t/**\r\n\t * Check if a `<table>` node is a DataTable table already or not.\r\n\t *\r\n\t * @param {node|jquery|string} table Table node, jQuery object or jQuery\r\n\t * selector for the table to test. Note that if more than more than one\r\n\t * table is passed on, only the first will be checked\r\n\t * @returns {boolean} true the table given is a DataTable, or false otherwise\r\n\t * @static\r\n\t * @dtopt API-Static\r\n\t *\r\n\t * @example\r\n\t * if ( ! $.fn.DataTable.isDataTable( '#example' ) ) {\r\n\t * $('#example').dataTable();\r\n\t * }\r\n\t */\r\n\tDataTable.isDataTable = DataTable.fnIsDataTable = function ( table )\r\n\t{\r\n\t\tvar t = $(table).get(0);\r\n\t\tvar is = false;\r\n\t\r\n\t\tif ( table instanceof DataTable.Api ) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\r\n\t\t$.each( DataTable.settings, function (i, o) {\r\n\t\t\tvar head = o.nScrollHead ? $('table', o.nScrollHead)[0] : null;\r\n\t\t\tvar foot = o.nScrollFoot ? $('table', o.nScrollFoot)[0] : null;\r\n\t\r\n\t\t\tif ( o.nTable === t || head === t || foot === t ) {\r\n\t\t\t\tis = true;\r\n\t\t\t}\r\n\t\t} );\r\n\t\r\n\t\treturn is;\r\n\t};\r\n\t\r\n\t\r\n\t/**\r\n\t * Get all DataTable tables that have been initialised - optionally you can\r\n\t * select to get only currently visible tables.\r\n\t *\r\n\t * @param {boolean} [visible=false] Flag to indicate if you want all (default)\r\n\t * or visible tables only.\r\n\t * @returns {array} Array of `table` nodes (not DataTable instances) which are\r\n\t * DataTables\r\n\t * @static\r\n\t * @dtopt API-Static\r\n\t *\r\n\t * @example\r\n\t * $.each( $.fn.dataTable.tables(true), function () {\r\n\t * $(table).DataTable().columns.adjust();\r\n\t * } );\r\n\t */\r\n\tDataTable.tables = DataTable.fnTables = function ( visible )\r\n\t{\r\n\t\tvar api = false;\r\n\t\r\n\t\tif ( $.isPlainObject( visible ) ) {\r\n\t\t\tapi = visible.api;\r\n\t\t\tvisible = visible.visible;\r\n\t\t}\r\n\t\r\n\t\tvar a = $.map( DataTable.settings, function (o) {\r\n\t\t\tif ( !visible || (visible && $(o.nTable).is(':visible')) ) {\r\n\t\t\t\treturn o.nTable;\r\n\t\t\t}\r\n\t\t} );\r\n\t\r\n\t\treturn api ?\r\n\t\t\tnew _Api( a ) :\r\n\t\t\ta;\r\n\t};\r\n\t\r\n\t\r\n\t/**\r\n\t * Convert from camel case parameters to Hungarian notation. This is made public\r\n\t * for the extensions to provide the same ability as DataTables core to accept\r\n\t * either the 1.9 style Hungarian notation, or the 1.10+ style camelCase\r\n\t * parameters.\r\n\t *\r\n\t * @param {object} src The model object which holds all parameters that can be\r\n\t * mapped.\r\n\t * @param {object} user The object to convert from camel case to Hungarian.\r\n\t * @param {boolean} force When set to `true`, properties which already have a\r\n\t * Hungarian value in the `user` object will be overwritten. Otherwise they\r\n\t * won't be.\r\n\t */\r\n\tDataTable.camelToHungarian = _fnCamelToHungarian;\r\n\t\r\n\t\r\n\t\r\n\t/**\r\n\t *\r\n\t */\r\n\t_api_register( '$()', function ( selector, opts ) {\r\n\t\tvar\r\n\t\t\trows = this.rows( opts ).nodes(), // Get all rows\r\n\t\t\tjqRows = $(rows);\r\n\t\r\n\t\treturn $( [].concat(\r\n\t\t\tjqRows.filter( selector ).toArray(),\r\n\t\t\tjqRows.find( selector ).toArray()\r\n\t\t) );\r\n\t} );\r\n\t\r\n\t\r\n\t// jQuery functions to operate on the tables\r\n\t$.each( [ 'on', 'one', 'off' ], function (i, key) {\r\n\t\t_api_register( key+'()', function ( /* event, handler */ ) {\r\n\t\t\tvar args = Array.prototype.slice.call(arguments);\r\n\t\r\n\t\t\t// Add the `dt` namespace automatically if it isn't already present\r\n\t\t\targs[0] = $.map( args[0].split( /\\s/ ), function ( e ) {\r\n\t\t\t\treturn ! e.match(/\\.dt\\b/) ?\r\n\t\t\t\t\te+'.dt' :\r\n\t\t\t\t\te;\r\n\t\t\t\t} ).join( ' ' );\r\n\t\r\n\t\t\tvar inst = $( this.tables().nodes() );\r\n\t\t\tinst[key].apply( inst, args );\r\n\t\t\treturn this;\r\n\t\t} );\r\n\t} );\r\n\t\r\n\t\r\n\t_api_register( 'clear()', function () {\r\n\t\treturn this.iterator( 'table', function ( settings ) {\r\n\t\t\t_fnClearTable( settings );\r\n\t\t} );\r\n\t} );\r\n\t\r\n\t\r\n\t_api_register( 'settings()', function () {\r\n\t\treturn new _Api( this.context, this.context );\r\n\t} );\r\n\t\r\n\t\r\n\t_api_register( 'init()', function () {\r\n\t\tvar ctx = this.context;\r\n\t\treturn ctx.length ? ctx[0].oInit : null;\r\n\t} );\r\n\t\r\n\t\r\n\t_api_register( 'data()', function () {\r\n\t\treturn this.iterator( 'table', function ( settings ) {\r\n\t\t\treturn _pluck( settings.aoData, '_aData' );\r\n\t\t} ).flatten();\r\n\t} );\r\n\t\r\n\t\r\n\t_api_register( 'destroy()', function ( remove ) {\r\n\t\tremove = remove || false;\r\n\t\r\n\t\treturn this.iterator( 'table', function ( settings ) {\r\n\t\t\tvar orig = settings.nTableWrapper.parentNode;\r\n\t\t\tvar classes = settings.oClasses;\r\n\t\t\tvar table = settings.nTable;\r\n\t\t\tvar tbody = settings.nTBody;\r\n\t\t\tvar thead = settings.nTHead;\r\n\t\t\tvar tfoot = settings.nTFoot;\r\n\t\t\tvar jqTable = $(table);\r\n\t\t\tvar jqTbody = $(tbody);\r\n\t\t\tvar jqWrapper = $(settings.nTableWrapper);\r\n\t\t\tvar rows = $.map( settings.aoData, function (r) { return r.nTr; } );\r\n\t\t\tvar i, ien;\r\n\t\r\n\t\t\t// Flag to note that the table is currently being destroyed - no action\r\n\t\t\t// should be taken\r\n\t\t\tsettings.bDestroying = true;\r\n\t\r\n\t\t\t// Fire off the destroy callbacks for plug-ins etc\r\n\t\t\t_fnCallbackFire( settings, \"aoDestroyCallback\", \"destroy\", [settings] );\r\n\t\r\n\t\t\t// If not being removed from the document, make all columns visible\r\n\t\t\tif ( ! remove ) {\r\n\t\t\t\tnew _Api( settings ).columns().visible( true );\r\n\t\t\t}\r\n\t\r\n\t\t\t// Blitz all `DT` namespaced events (these are internal events, the\r\n\t\t\t// lowercase, `dt` events are user subscribed and they are responsible\r\n\t\t\t// for removing them\r\n\t\t\tjqWrapper.off('.DT').find(':not(tbody *)').off('.DT');\r\n\t\t\t$(window).off('.DT-'+settings.sInstance);\r\n\t\r\n\t\t\t// When scrolling we had to break the table up - restore it\r\n\t\t\tif ( table != thead.parentNode ) {\r\n\t\t\t\tjqTable.children('thead').detach();\r\n\t\t\t\tjqTable.append( thead );\r\n\t\t\t}\r\n\t\r\n\t\t\tif ( tfoot && table != tfoot.parentNode ) {\r\n\t\t\t\tjqTable.children('tfoot').detach();\r\n\t\t\t\tjqTable.append( tfoot );\r\n\t\t\t}\r\n\t\r\n\t\t\tsettings.aaSorting = [];\r\n\t\t\tsettings.aaSortingFixed = [];\r\n\t\t\t_fnSortingClasses( settings );\r\n\t\r\n\t\t\t$( rows ).removeClass( settings.asStripeClasses.join(' ') );\r\n\t\r\n\t\t\t$('th, td', thead).removeClass( classes.sSortable+' '+\r\n\t\t\t\tclasses.sSortableAsc+' '+classes.sSortableDesc+' '+classes.sSortableNone\r\n\t\t\t);\r\n\t\r\n\t\t\t// Add the TR elements back into the table in their original order\r\n\t\t\tjqTbody.children().detach();\r\n\t\t\tjqTbody.append( rows );\r\n\t\r\n\t\t\t// Remove the DataTables generated nodes, events and classes\r\n\t\t\tvar removedMethod = remove ? 'remove' : 'detach';\r\n\t\t\tjqTable[ removedMethod ]();\r\n\t\t\tjqWrapper[ removedMethod ]();\r\n\t\r\n\t\t\t// If we need to reattach the table to the document\r\n\t\t\tif ( ! remove && orig ) {\r\n\t\t\t\t// insertBefore acts like appendChild if !arg[1]\r\n\t\t\t\torig.insertBefore( table, settings.nTableReinsertBefore );\r\n\t\r\n\t\t\t\t// Restore the width of the original table - was read from the style property,\r\n\t\t\t\t// so we can restore directly to that\r\n\t\t\t\tjqTable\r\n\t\t\t\t\t.css( 'width', settings.sDestroyWidth )\r\n\t\t\t\t\t.removeClass( classes.sTable );\r\n\t\r\n\t\t\t\t// If the were originally stripe classes - then we add them back here.\r\n\t\t\t\t// Note this is not fool proof (for example if not all rows had stripe\r\n\t\t\t\t// classes - but it's a good effort without getting carried away\r\n\t\t\t\tien = settings.asDestroyStripes.length;\r\n\t\r\n\t\t\t\tif ( ien ) {\r\n\t\t\t\t\tjqTbody.children().each( function (i) {\r\n\t\t\t\t\t\t$(this).addClass( settings.asDestroyStripes[i % ien] );\r\n\t\t\t\t\t} );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\r\n\t\t\t/* Remove the settings object from the settings array */\r\n\t\t\tvar idx = $.inArray( settings, DataTable.settings );\r\n\t\t\tif ( idx !== -1 ) {\r\n\t\t\t\tDataTable.settings.splice( idx, 1 );\r\n\t\t\t}\r\n\t\t} );\r\n\t} );\r\n\t\r\n\t\r\n\t// Add the `every()` method for rows, columns and cells in a compact form\r\n\t$.each( [ 'column', 'row', 'cell' ], function ( i, type ) {\r\n\t\t_api_register( type+'s().every()', function ( fn ) {\r\n\t\t\tvar opts = this.selector.opts;\r\n\t\t\tvar api = this;\r\n\t\r\n\t\t\treturn this.iterator( type, function ( settings, arg1, arg2, arg3, arg4 ) {\r\n\t\t\t\t// Rows and columns:\r\n\t\t\t\t// arg1 - index\r\n\t\t\t\t// arg2 - table counter\r\n\t\t\t\t// arg3 - loop counter\r\n\t\t\t\t// arg4 - undefined\r\n\t\t\t\t// Cells:\r\n\t\t\t\t// arg1 - row index\r\n\t\t\t\t// arg2 - column index\r\n\t\t\t\t// arg3 - table counter\r\n\t\t\t\t// arg4 - loop counter\r\n\t\t\t\tfn.call(\r\n\t\t\t\t\tapi[ type ](\r\n\t\t\t\t\t\targ1,\r\n\t\t\t\t\t\ttype==='cell' ? arg2 : opts,\r\n\t\t\t\t\t\ttype==='cell' ? opts : undefined\r\n\t\t\t\t\t),\r\n\t\t\t\t\targ1, arg2, arg3, arg4\r\n\t\t\t\t);\r\n\t\t\t} );\r\n\t\t} );\r\n\t} );\r\n\t\r\n\t\r\n\t// i18n method for extensions to be able to use the language object from the\r\n\t// DataTable\r\n\t_api_register( 'i18n()', function ( token, def, plural ) {\r\n\t\tvar ctx = this.context[0];\r\n\t\tvar resolved = _fnGetObjectDataFn( token )( ctx.oLanguage );\r\n\t\r\n\t\tif ( resolved === undefined ) {\r\n\t\t\tresolved = def;\r\n\t\t}\r\n\t\r\n\t\tif ( plural !== undefined && $.isPlainObject( resolved ) ) {\r\n\t\t\tresolved = resolved[ plural ] !== undefined ?\r\n\t\t\t\tresolved[ plural ] :\r\n\t\t\t\tresolved._;\r\n\t\t}\r\n\t\r\n\t\treturn resolved.replace( '%d', plural ); // nb: plural might be undefined,\r\n\t} );\r\n\t/**\r\n\t * Version string for plug-ins to check compatibility. Allowed format is\r\n\t * `a.b.c-d` where: a:int, b:int, c:int, d:string(dev|beta|alpha). `d` is used\r\n\t * only for non-release builds. See http://semver.org/ for more information.\r\n\t * @member\r\n\t * @type string\r\n\t * @default Version number\r\n\t */\r\n\tDataTable.version = \"1.10.20\";\r\n\r\n\t/**\r\n\t * Private data store, containing all of the settings objects that are\r\n\t * created for the tables on a given page.\r\n\t *\r\n\t * Note that the `DataTable.settings` object is aliased to\r\n\t * `jQuery.fn.dataTableExt` through which it may be accessed and\r\n\t * manipulated, or `jQuery.fn.dataTable.settings`.\r\n\t * @member\r\n\t * @type array\r\n\t * @default []\r\n\t * @private\r\n\t */\r\n\tDataTable.settings = [];\r\n\r\n\t/**\r\n\t * Object models container, for the various models that DataTables has\r\n\t * available to it. These models define the objects that are used to hold\r\n\t * the active state and configuration of the table.\r\n\t * @namespace\r\n\t */\r\n\tDataTable.models = {};\r\n\t\r\n\t\r\n\t\r\n\t/**\r\n\t * Template object for the way in which DataTables holds information about\r\n\t * search information for the global filter and individual column filters.\r\n\t * @namespace\r\n\t */\r\n\tDataTable.models.oSearch = {\r\n\t\t/**\r\n\t\t * Flag to indicate if the filtering should be case insensitive or not\r\n\t\t * @type boolean\r\n\t\t * @default true\r\n\t\t */\r\n\t\t\"bCaseInsensitive\": true,\r\n\t\r\n\t\t/**\r\n\t\t * Applied search term\r\n\t\t * @type string\r\n\t\t * @default <i>Empty string</i>\r\n\t\t */\r\n\t\t\"sSearch\": \"\",\r\n\t\r\n\t\t/**\r\n\t\t * Flag to indicate if the search term should be interpreted as a\r\n\t\t * regular expression (true) or not (false) and therefore and special\r\n\t\t * regex characters escaped.\r\n\t\t * @type boolean\r\n\t\t * @default false\r\n\t\t */\r\n\t\t\"bRegex\": false,\r\n\t\r\n\t\t/**\r\n\t\t * Flag to indicate if DataTables is to use its smart filtering or not.\r\n\t\t * @type boolean\r\n\t\t * @default true\r\n\t\t */\r\n\t\t\"bSmart\": true\r\n\t};\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t/**\r\n\t * Template object for the way in which DataTables holds information about\r\n\t * each individual row. This is the object format used for the settings\r\n\t * aoData array.\r\n\t * @namespace\r\n\t */\r\n\tDataTable.models.oRow = {\r\n\t\t/**\r\n\t\t * TR element for the row\r\n\t\t * @type node\r\n\t\t * @default null\r\n\t\t */\r\n\t\t\"nTr\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Array of TD elements for each row. This is null until the row has been\r\n\t\t * created.\r\n\t\t * @type array nodes\r\n\t\t * @default []\r\n\t\t */\r\n\t\t\"anCells\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Data object from the original data source for the row. This is either\r\n\t\t * an array if using the traditional form of DataTables, or an object if\r\n\t\t * using mData options. The exact type will depend on the passed in\r\n\t\t * data from the data source, or will be an array if using DOM a data\r\n\t\t * source.\r\n\t\t * @type array|object\r\n\t\t * @default []\r\n\t\t */\r\n\t\t\"_aData\": [],\r\n\t\r\n\t\t/**\r\n\t\t * Sorting data cache - this array is ostensibly the same length as the\r\n\t\t * number of columns (although each index is generated only as it is\r\n\t\t * needed), and holds the data that is used for sorting each column in the\r\n\t\t * row. We do this cache generation at the start of the sort in order that\r\n\t\t * the formatting of the sort data need be done only once for each cell\r\n\t\t * per sort. This array should not be read from or written to by anything\r\n\t\t * other than the master sorting methods.\r\n\t\t * @type array\r\n\t\t * @default null\r\n\t\t * @private\r\n\t\t */\r\n\t\t\"_aSortData\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Per cell filtering data cache. As per the sort data cache, used to\r\n\t\t * increase the performance of the filtering in DataTables\r\n\t\t * @type array\r\n\t\t * @default null\r\n\t\t * @private\r\n\t\t */\r\n\t\t\"_aFilterData\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Filtering data cache. This is the same as the cell filtering cache, but\r\n\t\t * in this case a string rather than an array. This is easily computed with\r\n\t\t * a join on `_aFilterData`, but is provided as a cache so the join isn't\r\n\t\t * needed on every search (memory traded for performance)\r\n\t\t * @type array\r\n\t\t * @default null\r\n\t\t * @private\r\n\t\t */\r\n\t\t\"_sFilterRow\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Cache of the class name that DataTables has applied to the row, so we\r\n\t\t * can quickly look at this variable rather than needing to do a DOM check\r\n\t\t * on className for the nTr property.\r\n\t\t * @type string\r\n\t\t * @default <i>Empty string</i>\r\n\t\t * @private\r\n\t\t */\r\n\t\t\"_sRowStripe\": \"\",\r\n\t\r\n\t\t/**\r\n\t\t * Denote if the original data source was from the DOM, or the data source\r\n\t\t * object. This is used for invalidating data, so DataTables can\r\n\t\t * automatically read data from the original source, unless uninstructed\r\n\t\t * otherwise.\r\n\t\t * @type string\r\n\t\t * @default null\r\n\t\t * @private\r\n\t\t */\r\n\t\t\"src\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Index in the aoData array. This saves an indexOf lookup when we have the\r\n\t\t * object, but want to know the index\r\n\t\t * @type integer\r\n\t\t * @default -1\r\n\t\t * @private\r\n\t\t */\r\n\t\t\"idx\": -1\r\n\t};\r\n\t\r\n\t\r\n\t/**\r\n\t * Template object for the column information object in DataTables. This object\r\n\t * is held in the settings aoColumns array and contains all the information that\r\n\t * DataTables needs about each individual column.\r\n\t *\r\n\t * Note that this object is related to {@link DataTable.defaults.column}\r\n\t * but this one is the internal data store for DataTables's cache of columns.\r\n\t * It should NOT be manipulated outside of DataTables. Any configuration should\r\n\t * be done through the initialisation options.\r\n\t * @namespace\r\n\t */\r\n\tDataTable.models.oColumn = {\r\n\t\t/**\r\n\t\t * Column index. This could be worked out on-the-fly with $.inArray, but it\r\n\t\t * is faster to just hold it as a variable\r\n\t\t * @type integer\r\n\t\t * @default null\r\n\t\t */\r\n\t\t\"idx\": null,\r\n\t\r\n\t\t/**\r\n\t\t * A list of the columns that sorting should occur on when this column\r\n\t\t * is sorted. That this property is an array allows multi-column sorting\r\n\t\t * to be defined for a column (for example first name / last name columns\r\n\t\t * would benefit from this). The values are integers pointing to the\r\n\t\t * columns to be sorted on (typically it will be a single integer pointing\r\n\t\t * at itself, but that doesn't need to be the case).\r\n\t\t * @type array\r\n\t\t */\r\n\t\t\"aDataSort\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Define the sorting directions that are applied to the column, in sequence\r\n\t\t * as the column is repeatedly sorted upon - i.e. the first value is used\r\n\t\t * as the sorting direction when the column if first sorted (clicked on).\r\n\t\t * Sort it again (click again) and it will move on to the next index.\r\n\t\t * Repeat until loop.\r\n\t\t * @type array\r\n\t\t */\r\n\t\t\"asSorting\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Flag to indicate if the column is searchable, and thus should be included\r\n\t\t * in the filtering or not.\r\n\t\t * @type boolean\r\n\t\t */\r\n\t\t\"bSearchable\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Flag to indicate if the column is sortable or not.\r\n\t\t * @type boolean\r\n\t\t */\r\n\t\t\"bSortable\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Flag to indicate if the column is currently visible in the table or not\r\n\t\t * @type boolean\r\n\t\t */\r\n\t\t\"bVisible\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Store for manual type assignment using the `column.type` option. This\r\n\t\t * is held in store so we can manipulate the column's `sType` property.\r\n\t\t * @type string\r\n\t\t * @default null\r\n\t\t * @private\r\n\t\t */\r\n\t\t\"_sManualType\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Flag to indicate if HTML5 data attributes should be used as the data\r\n\t\t * source for filtering or sorting. True is either are.\r\n\t\t * @type boolean\r\n\t\t * @default false\r\n\t\t * @private\r\n\t\t */\r\n\t\t\"_bAttrSrc\": false,\r\n\t\r\n\t\t/**\r\n\t\t * Developer definable function that is called whenever a cell is created (Ajax source,\r\n\t\t * etc) or processed for input (DOM source). This can be used as a compliment to mRender\r\n\t\t * allowing you to modify the DOM element (add background colour for example) when the\r\n\t\t * element is available.\r\n\t\t * @type function\r\n\t\t * @param {element} nTd The TD node that has been created\r\n\t\t * @param {*} sData The Data for the cell\r\n\t\t * @param {array|object} oData The data for the whole row\r\n\t\t * @param {int} iRow The row index for the aoData data store\r\n\t\t * @default null\r\n\t\t */\r\n\t\t\"fnCreatedCell\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Function to get data from a cell in a column. You should <b>never</b>\r\n\t\t * access data directly through _aData internally in DataTables - always use\r\n\t\t * the method attached to this property. It allows mData to function as\r\n\t\t * required. This function is automatically assigned by the column\r\n\t\t * initialisation method\r\n\t\t * @type function\r\n\t\t * @param {array|object} oData The data array/object for the array\r\n\t\t * (i.e. aoData[]._aData)\r\n\t\t * @param {string} sSpecific The specific data type you want to get -\r\n\t\t * 'display', 'type' 'filter' 'sort'\r\n\t\t * @returns {*} The data for the cell from the given row's data\r\n\t\t * @default null\r\n\t\t */\r\n\t\t\"fnGetData\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Function to set data for a cell in the column. You should <b>never</b>\r\n\t\t * set the data directly to _aData internally in DataTables - always use\r\n\t\t * this method. It allows mData to function as required. This function\r\n\t\t * is automatically assigned by the column initialisation method\r\n\t\t * @type function\r\n\t\t * @param {array|object} oData The data array/object for the array\r\n\t\t * (i.e. aoData[]._aData)\r\n\t\t * @param {*} sValue Value to set\r\n\t\t * @default null\r\n\t\t */\r\n\t\t\"fnSetData\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Property to read the value for the cells in the column from the data\r\n\t\t * source array / object. If null, then the default content is used, if a\r\n\t\t * function is given then the return from the function is used.\r\n\t\t * @type function|int|string|null\r\n\t\t * @default null\r\n\t\t */\r\n\t\t\"mData\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Partner property to mData which is used (only when defined) to get\r\n\t\t * the data - i.e. it is basically the same as mData, but without the\r\n\t\t * 'set' option, and also the data fed to it is the result from mData.\r\n\t\t * This is the rendering method to match the data method of mData.\r\n\t\t * @type function|int|string|null\r\n\t\t * @default null\r\n\t\t */\r\n\t\t\"mRender\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Unique header TH/TD element for this column - this is what the sorting\r\n\t\t * listener is attached to (if sorting is enabled.)\r\n\t\t * @type node\r\n\t\t * @default null\r\n\t\t */\r\n\t\t\"nTh\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Unique footer TH/TD element for this column (if there is one). Not used\r\n\t\t * in DataTables as such, but can be used for plug-ins to reference the\r\n\t\t * footer for each column.\r\n\t\t * @type node\r\n\t\t * @default null\r\n\t\t */\r\n\t\t\"nTf\": null,\r\n\t\r\n\t\t/**\r\n\t\t * The class to apply to all TD elements in the table's TBODY for the column\r\n\t\t * @type string\r\n\t\t * @default null\r\n\t\t */\r\n\t\t\"sClass\": null,\r\n\t\r\n\t\t/**\r\n\t\t * When DataTables calculates the column widths to assign to each column,\r\n\t\t * it finds the longest string in each column and then constructs a\r\n\t\t * temporary table and reads the widths from that. The problem with this\r\n\t\t * is that \"mmm\" is much wider then \"iiii\", but the latter is a longer\r\n\t\t * string - thus the calculation can go wrong (doing it properly and putting\r\n\t\t * it into an DOM object and measuring that is horribly(!) slow). Thus as\r\n\t\t * a \"work around\" we provide this option. It will append its value to the\r\n\t\t * text that is found to be the longest string for the column - i.e. padding.\r\n\t\t * @type string\r\n\t\t */\r\n\t\t\"sContentPadding\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Allows a default value to be given for a column's data, and will be used\r\n\t\t * whenever a null data source is encountered (this can be because mData\r\n\t\t * is set to null, or because the data source itself is null).\r\n\t\t * @type string\r\n\t\t * @default null\r\n\t\t */\r\n\t\t\"sDefaultContent\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Name for the column, allowing reference to the column by name as well as\r\n\t\t * by index (needs a lookup to work by name).\r\n\t\t * @type string\r\n\t\t */\r\n\t\t\"sName\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Custom sorting data type - defines which of the available plug-ins in\r\n\t\t * afnSortData the custom sorting will use - if any is defined.\r\n\t\t * @type string\r\n\t\t * @default std\r\n\t\t */\r\n\t\t\"sSortDataType\": 'std',\r\n\t\r\n\t\t/**\r\n\t\t * Class to be applied to the header element when sorting on this column\r\n\t\t * @type string\r\n\t\t * @default null\r\n\t\t */\r\n\t\t\"sSortingClass\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Class to be applied to the header element when sorting on this column -\r\n\t\t * when jQuery UI theming is used.\r\n\t\t * @type string\r\n\t\t * @default null\r\n\t\t */\r\n\t\t\"sSortingClassJUI\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Title of the column - what is seen in the TH element (nTh).\r\n\t\t * @type string\r\n\t\t */\r\n\t\t\"sTitle\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Column sorting and filtering type\r\n\t\t * @type string\r\n\t\t * @default null\r\n\t\t */\r\n\t\t\"sType\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Width of the column\r\n\t\t * @type string\r\n\t\t * @default null\r\n\t\t */\r\n\t\t\"sWidth\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Width of the column when it was first \"encountered\"\r\n\t\t * @type string\r\n\t\t * @default null\r\n\t\t */\r\n\t\t\"sWidthOrig\": null\r\n\t};\r\n\t\r\n\t\r\n\t/*\r\n\t * Developer note: The properties of the object below are given in Hungarian\r\n\t * notation, that was used as the interface for DataTables prior to v1.10, however\r\n\t * from v1.10 onwards the primary interface is camel case. In order to avoid\r\n\t * breaking backwards compatibility utterly with this change, the Hungarian\r\n\t * version is still, internally the primary interface, but is is not documented\r\n\t * - hence the @name tags in each doc comment. This allows a Javascript function\r\n\t * to create a map from Hungarian notation to camel case (going the other direction\r\n\t * would require each property to be listed, which would at around 3K to the size\r\n\t * of DataTables, while this method is about a 0.5K hit.\r\n\t *\r\n\t * Ultimately this does pave the way for Hungarian notation to be dropped\r\n\t * completely, but that is a massive amount of work and will break current\r\n\t * installs (therefore is on-hold until v2).\r\n\t */\r\n\t\r\n\t/**\r\n\t * Initialisation options that can be given to DataTables at initialisation\r\n\t * time.\r\n\t * @namespace\r\n\t */\r\n\tDataTable.defaults = {\r\n\t\t/**\r\n\t\t * An array of data to use for the table, passed in at initialisation which\r\n\t\t * will be used in preference to any data which is already in the DOM. This is\r\n\t\t * particularly useful for constructing tables purely in Javascript, for\r\n\t\t * example with a custom Ajax call.\r\n\t\t * @type array\r\n\t\t * @default null\r\n\t\t *\r\n\t\t * @dtopt Option\r\n\t\t * @name DataTable.defaults.data\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Using a 2D array data source\r\n\t\t * $(document).ready( function () {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"data\": [\r\n\t\t * ['Trident', 'Internet Explorer 4.0', 'Win 95+', 4, 'X'],\r\n\t\t * ['Trident', 'Internet Explorer 5.0', 'Win 95+', 5, 'C'],\r\n\t\t * ],\r\n\t\t * \"columns\": [\r\n\t\t * { \"title\": \"Engine\" },\r\n\t\t * { \"title\": \"Browser\" },\r\n\t\t * { \"title\": \"Platform\" },\r\n\t\t * { \"title\": \"Version\" },\r\n\t\t * { \"title\": \"Grade\" }\r\n\t\t * ]\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Using an array of objects as a data source (`data`)\r\n\t\t * $(document).ready( function () {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"data\": [\r\n\t\t * {\r\n\t\t * \"engine\": \"Trident\",\r\n\t\t * \"browser\": \"Internet Explorer 4.0\",\r\n\t\t * \"platform\": \"Win 95+\",\r\n\t\t * \"version\": 4,\r\n\t\t * \"grade\": \"X\"\r\n\t\t * },\r\n\t\t * {\r\n\t\t * \"engine\": \"Trident\",\r\n\t\t * \"browser\": \"Internet Explorer 5.0\",\r\n\t\t * \"platform\": \"Win 95+\",\r\n\t\t * \"version\": 5,\r\n\t\t * \"grade\": \"C\"\r\n\t\t * }\r\n\t\t * ],\r\n\t\t * \"columns\": [\r\n\t\t * { \"title\": \"Engine\", \"data\": \"engine\" },\r\n\t\t * { \"title\": \"Browser\", \"data\": \"browser\" },\r\n\t\t * { \"title\": \"Platform\", \"data\": \"platform\" },\r\n\t\t * { \"title\": \"Version\", \"data\": \"version\" },\r\n\t\t * { \"title\": \"Grade\", \"data\": \"grade\" }\r\n\t\t * ]\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\"aaData\": null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * If ordering is enabled, then DataTables will perform a first pass sort on\r\n\t\t * initialisation. You can define which column(s) the sort is performed\r\n\t\t * upon, and the sorting direction, with this variable. The `sorting` array\r\n\t\t * should contain an array for each column to be sorted initially containing\r\n\t\t * the column's index and a direction string ('asc' or 'desc').\r\n\t\t * @type array\r\n\t\t * @default [[0,'asc']]\r\n\t\t *\r\n\t\t * @dtopt Option\r\n\t\t * @name DataTable.defaults.order\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Sort by 3rd column first, and then 4th column\r\n\t\t * $(document).ready( function() {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"order\": [[2,'asc'], [3,'desc']]\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t *\r\n\t\t * // No initial sorting\r\n\t\t * $(document).ready( function() {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"order\": []\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\"aaSorting\": [[0,'asc']],\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * This parameter is basically identical to the `sorting` parameter, but\r\n\t\t * cannot be overridden by user interaction with the table. What this means\r\n\t\t * is that you could have a column (visible or hidden) which the sorting\r\n\t\t * will always be forced on first - any sorting after that (from the user)\r\n\t\t * will then be performed as required. This can be useful for grouping rows\r\n\t\t * together.\r\n\t\t * @type array\r\n\t\t * @default null\r\n\t\t *\r\n\t\t * @dtopt Option\r\n\t\t * @name DataTable.defaults.orderFixed\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function() {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"orderFixed\": [[0,'asc']]\r\n\t\t * } );\r\n\t\t * } )\r\n\t\t */\r\n\t\t\"aaSortingFixed\": [],\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * DataTables can be instructed to load data to display in the table from a\r\n\t\t * Ajax source. This option defines how that Ajax call is made and where to.\r\n\t\t *\r\n\t\t * The `ajax` property has three different modes of operation, depending on\r\n\t\t * how it is defined. These are:\r\n\t\t *\r\n\t\t * * `string` - Set the URL from where the data should be loaded from.\r\n\t\t * * `object` - Define properties for `jQuery.ajax`.\r\n\t\t * * `function` - Custom data get function\r\n\t\t *\r\n\t\t * `string`\r\n\t\t * --------\r\n\t\t *\r\n\t\t * As a string, the `ajax` property simply defines the URL from which\r\n\t\t * DataTables will load data.\r\n\t\t *\r\n\t\t * `object`\r\n\t\t * --------\r\n\t\t *\r\n\t\t * As an object, the parameters in the object are passed to\r\n\t\t * [jQuery.ajax](http://api.jquery.com/jQuery.ajax/) allowing fine control\r\n\t\t * of the Ajax request. DataTables has a number of default parameters which\r\n\t\t * you can override using this option. Please refer to the jQuery\r\n\t\t * documentation for a full description of the options available, although\r\n\t\t * the following parameters provide additional options in DataTables or\r\n\t\t * require special consideration:\r\n\t\t *\r\n\t\t * * `data` - As with jQuery, `data` can be provided as an object, but it\r\n\t\t * can also be used as a function to manipulate the data DataTables sends\r\n\t\t * to the server. The function takes a single parameter, an object of\r\n\t\t * parameters with the values that DataTables has readied for sending. An\r\n\t\t * object may be returned which will be merged into the DataTables\r\n\t\t * defaults, or you can add the items to the object that was passed in and\r\n\t\t * not return anything from the function. This supersedes `fnServerParams`\r\n\t\t * from DataTables 1.9-.\r\n\t\t *\r\n\t\t * * `dataSrc` - By default DataTables will look for the property `data` (or\r\n\t\t * `aaData` for compatibility with DataTables 1.9-) when obtaining data\r\n\t\t * from an Ajax source or for server-side processing - this parameter\r\n\t\t * allows that property to be changed. You can use Javascript dotted\r\n\t\t * object notation to get a data source for multiple levels of nesting, or\r\n\t\t * it my be used as a function. As a function it takes a single parameter,\r\n\t\t * the JSON returned from the server, which can be manipulated as\r\n\t\t * required, with the returned value being that used by DataTables as the\r\n\t\t * data source for the table. This supersedes `sAjaxDataProp` from\r\n\t\t * DataTables 1.9-.\r\n\t\t *\r\n\t\t * * `success` - Should not be overridden it is used internally in\r\n\t\t * DataTables. To manipulate / transform the data returned by the server\r\n\t\t * use `ajax.dataSrc`, or use `ajax` as a function (see below).\r\n\t\t *\r\n\t\t * `function`\r\n\t\t * ----------\r\n\t\t *\r\n\t\t * As a function, making the Ajax call is left up to yourself allowing\r\n\t\t * complete control of the Ajax request. Indeed, if desired, a method other\r\n\t\t * than Ajax could be used to obtain the required data, such as Web storage\r\n\t\t * or an AIR database.\r\n\t\t *\r\n\t\t * The function is given four parameters and no return is required. The\r\n\t\t * parameters are:\r\n\t\t *\r\n\t\t * 1. _object_ - Data to send to the server\r\n\t\t * 2. _function_ - Callback function that must be executed when the required\r\n\t\t * data has been obtained. That data should be passed into the callback\r\n\t\t * as the only parameter\r\n\t\t * 3. _object_ - DataTables settings object for the table\r\n\t\t *\r\n\t\t * Note that this supersedes `fnServerData` from DataTables 1.9-.\r\n\t\t *\r\n\t\t * @type string|object|function\r\n\t\t * @default null\r\n\t\t *\r\n\t\t * @dtopt Option\r\n\t\t * @name DataTable.defaults.ajax\r\n\t\t * @since 1.10.0\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Get JSON data from a file via Ajax.\r\n\t\t * // Note DataTables expects data in the form `{ data: [ ...data... ] }` by default).\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"ajax\": \"data.json\"\r\n\t\t * } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Get JSON data from a file via Ajax, using `dataSrc` to change\r\n\t\t * // `data` to `tableData` (i.e. `{ tableData: [ ...data... ] }`)\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"ajax\": {\r\n\t\t * \"url\": \"data.json\",\r\n\t\t * \"dataSrc\": \"tableData\"\r\n\t\t * }\r\n\t\t * } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Get JSON data from a file via Ajax, using `dataSrc` to read data\r\n\t\t * // from a plain array rather than an array in an object\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"ajax\": {\r\n\t\t * \"url\": \"data.json\",\r\n\t\t * \"dataSrc\": \"\"\r\n\t\t * }\r\n\t\t * } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Manipulate the data returned from the server - add a link to data\r\n\t\t * // (note this can, should, be done using `render` for the column - this\r\n\t\t * // is just a simple example of how the data can be manipulated).\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"ajax\": {\r\n\t\t * \"url\": \"data.json\",\r\n\t\t * \"dataSrc\": function ( json ) {\r\n\t\t * for ( var i=0, ien=json.length ; i<ien ; i++ ) {\r\n\t\t * json[i][0] = '<a href=\"/message/'+json[i][0]+'>View message</a>';\r\n\t\t * }\r\n\t\t * return json;\r\n\t\t * }\r\n\t\t * }\r\n\t\t * } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Add data to the request\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"ajax\": {\r\n\t\t * \"url\": \"data.json\",\r\n\t\t * \"data\": function ( d ) {\r\n\t\t * return {\r\n\t\t * \"extra_search\": $('#extra').val()\r\n\t\t * };\r\n\t\t * }\r\n\t\t * }\r\n\t\t * } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Send request as POST\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"ajax\": {\r\n\t\t * \"url\": \"data.json\",\r\n\t\t * \"type\": \"POST\"\r\n\t\t * }\r\n\t\t * } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Get the data from localStorage (could interface with a form for\r\n\t\t * // adding, editing and removing rows).\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"ajax\": function (data, callback, settings) {\r\n\t\t * callback(\r\n\t\t * JSON.parse( localStorage.getItem('dataTablesData') )\r\n\t\t * );\r\n\t\t * }\r\n\t\t * } );\r\n\t\t */\r\n\t\t\"ajax\": null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * This parameter allows you to readily specify the entries in the length drop\r\n\t\t * down menu that DataTables shows when pagination is enabled. It can be\r\n\t\t * either a 1D array of options which will be used for both the displayed\r\n\t\t * option and the value, or a 2D array which will use the array in the first\r\n\t\t * position as the value, and the array in the second position as the\r\n\t\t * displayed options (useful for language strings such as 'All').\r\n\t\t *\r\n\t\t * Note that the `pageLength` property will be automatically set to the\r\n\t\t * first value given in this array, unless `pageLength` is also provided.\r\n\t\t * @type array\r\n\t\t * @default [ 10, 25, 50, 100 ]\r\n\t\t *\r\n\t\t * @dtopt Option\r\n\t\t * @name DataTable.defaults.lengthMenu\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function() {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"lengthMenu\": [[10, 25, 50, -1], [10, 25, 50, \"All\"]]\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\"aLengthMenu\": [ 10, 25, 50, 100 ],\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * The `columns` option in the initialisation parameter allows you to define\r\n\t\t * details about the way individual columns behave. For a full list of\r\n\t\t * column options that can be set, please see\r\n\t\t * {@link DataTable.defaults.column}. Note that if you use `columns` to\r\n\t\t * define your columns, you must have an entry in the array for every single\r\n\t\t * column that you have in your table (these can be null if you don't which\r\n\t\t * to specify any options).\r\n\t\t * @member\r\n\t\t *\r\n\t\t * @name DataTable.defaults.column\r\n\t\t */\r\n\t\t\"aoColumns\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Very similar to `columns`, `columnDefs` allows you to target a specific\r\n\t\t * column, multiple columns, or all columns, using the `targets` property of\r\n\t\t * each object in the array. This allows great flexibility when creating\r\n\t\t * tables, as the `columnDefs` arrays can be of any length, targeting the\r\n\t\t * columns you specifically want. `columnDefs` may use any of the column\r\n\t\t * options available: {@link DataTable.defaults.column}, but it _must_\r\n\t\t * have `targets` defined in each object in the array. Values in the `targets`\r\n\t\t * array may be:\r\n\t\t * <ul>\r\n\t\t * <li>a string - class name will be matched on the TH for the column</li>\r\n\t\t * <li>0 or a positive integer - column index counting from the left</li>\r\n\t\t * <li>a negative integer - column index counting from the right</li>\r\n\t\t * <li>the string \"_all\" - all columns (i.e. assign a default)</li>\r\n\t\t * </ul>\r\n\t\t * @member\r\n\t\t *\r\n\t\t * @name DataTable.defaults.columnDefs\r\n\t\t */\r\n\t\t\"aoColumnDefs\": null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Basically the same as `search`, this parameter defines the individual column\r\n\t\t * filtering state at initialisation time. The array must be of the same size\r\n\t\t * as the number of columns, and each element be an object with the parameters\r\n\t\t * `search` and `escapeRegex` (the latter is optional). 'null' is also\r\n\t\t * accepted and the default will be used.\r\n\t\t * @type array\r\n\t\t * @default []\r\n\t\t *\r\n\t\t * @dtopt Option\r\n\t\t * @name DataTable.defaults.searchCols\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function() {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"searchCols\": [\r\n\t\t * null,\r\n\t\t * { \"search\": \"My filter\" },\r\n\t\t * null,\r\n\t\t * { \"search\": \"^[0-9]\", \"escapeRegex\": false }\r\n\t\t * ]\r\n\t\t * } );\r\n\t\t * } )\r\n\t\t */\r\n\t\t\"aoSearchCols\": [],\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * An array of CSS classes that should be applied to displayed rows. This\r\n\t\t * array may be of any length, and DataTables will apply each class\r\n\t\t * sequentially, looping when required.\r\n\t\t * @type array\r\n\t\t * @default null <i>Will take the values determined by the `oClasses.stripe*`\r\n\t\t * options</i>\r\n\t\t *\r\n\t\t * @dtopt Option\r\n\t\t * @name DataTable.defaults.stripeClasses\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function() {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"stripeClasses\": [ 'strip1', 'strip2', 'strip3' ]\r\n\t\t * } );\r\n\t\t * } )\r\n\t\t */\r\n\t\t\"asStripeClasses\": null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Enable or disable automatic column width calculation. This can be disabled\r\n\t\t * as an optimisation (it takes some time to calculate the widths) if the\r\n\t\t * tables widths are passed in using `columns`.\r\n\t\t * @type boolean\r\n\t\t * @default true\r\n\t\t *\r\n\t\t * @dtopt Features\r\n\t\t * @name DataTable.defaults.autoWidth\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function () {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"autoWidth\": false\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\"bAutoWidth\": true,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Deferred rendering can provide DataTables with a huge speed boost when you\r\n\t\t * are using an Ajax or JS data source for the table. This option, when set to\r\n\t\t * true, will cause DataTables to defer the creation of the table elements for\r\n\t\t * each row until they are needed for a draw - saving a significant amount of\r\n\t\t * time.\r\n\t\t * @type boolean\r\n\t\t * @default false\r\n\t\t *\r\n\t\t * @dtopt Features\r\n\t\t * @name DataTable.defaults.deferRender\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function() {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"ajax\": \"sources/arrays.txt\",\r\n\t\t * \"deferRender\": true\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\"bDeferRender\": false,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Replace a DataTable which matches the given selector and replace it with\r\n\t\t * one which has the properties of the new initialisation object passed. If no\r\n\t\t * table matches the selector, then the new DataTable will be constructed as\r\n\t\t * per normal.\r\n\t\t * @type boolean\r\n\t\t * @default false\r\n\t\t *\r\n\t\t * @dtopt Options\r\n\t\t * @name DataTable.defaults.destroy\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function() {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"srollY\": \"200px\",\r\n\t\t * \"paginate\": false\r\n\t\t * } );\r\n\t\t *\r\n\t\t * // Some time later....\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"filter\": false,\r\n\t\t * \"destroy\": true\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\"bDestroy\": false,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Enable or disable filtering of data. Filtering in DataTables is \"smart\" in\r\n\t\t * that it allows the end user to input multiple words (space separated) and\r\n\t\t * will match a row containing those words, even if not in the order that was\r\n\t\t * specified (this allow matching across multiple columns). Note that if you\r\n\t\t * wish to use filtering in DataTables this must remain 'true' - to remove the\r\n\t\t * default filtering input box and retain filtering abilities, please use\r\n\t\t * {@link DataTable.defaults.dom}.\r\n\t\t * @type boolean\r\n\t\t * @default true\r\n\t\t *\r\n\t\t * @dtopt Features\r\n\t\t * @name DataTable.defaults.searching\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function () {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"searching\": false\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\"bFilter\": true,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Enable or disable the table information display. This shows information\r\n\t\t * about the data that is currently visible on the page, including information\r\n\t\t * about filtered data if that action is being performed.\r\n\t\t * @type boolean\r\n\t\t * @default true\r\n\t\t *\r\n\t\t * @dtopt Features\r\n\t\t * @name DataTable.defaults.info\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function () {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"info\": false\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\"bInfo\": true,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Allows the end user to select the size of a formatted page from a select\r\n\t\t * menu (sizes are 10, 25, 50 and 100). Requires pagination (`paginate`).\r\n\t\t * @type boolean\r\n\t\t * @default true\r\n\t\t *\r\n\t\t * @dtopt Features\r\n\t\t * @name DataTable.defaults.lengthChange\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function () {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"lengthChange\": false\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\"bLengthChange\": true,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Enable or disable pagination.\r\n\t\t * @type boolean\r\n\t\t * @default true\r\n\t\t *\r\n\t\t * @dtopt Features\r\n\t\t * @name DataTable.defaults.paging\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function () {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"paging\": false\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\"bPaginate\": true,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Enable or disable the display of a 'processing' indicator when the table is\r\n\t\t * being processed (e.g. a sort). This is particularly useful for tables with\r\n\t\t * large amounts of data where it can take a noticeable amount of time to sort\r\n\t\t * the entries.\r\n\t\t * @type boolean\r\n\t\t * @default false\r\n\t\t *\r\n\t\t * @dtopt Features\r\n\t\t * @name DataTable.defaults.processing\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function () {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"processing\": true\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\"bProcessing\": false,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Retrieve the DataTables object for the given selector. Note that if the\r\n\t\t * table has already been initialised, this parameter will cause DataTables\r\n\t\t * to simply return the object that has already been set up - it will not take\r\n\t\t * account of any changes you might have made to the initialisation object\r\n\t\t * passed to DataTables (setting this parameter to true is an acknowledgement\r\n\t\t * that you understand this). `destroy` can be used to reinitialise a table if\r\n\t\t * you need.\r\n\t\t * @type boolean\r\n\t\t * @default false\r\n\t\t *\r\n\t\t * @dtopt Options\r\n\t\t * @name DataTable.defaults.retrieve\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function() {\r\n\t\t * initTable();\r\n\t\t * tableActions();\r\n\t\t * } );\r\n\t\t *\r\n\t\t * function initTable ()\r\n\t\t * {\r\n\t\t * return $('#example').dataTable( {\r\n\t\t * \"scrollY\": \"200px\",\r\n\t\t * \"paginate\": false,\r\n\t\t * \"retrieve\": true\r\n\t\t * } );\r\n\t\t * }\r\n\t\t *\r\n\t\t * function tableActions ()\r\n\t\t * {\r\n\t\t * var table = initTable();\r\n\t\t * // perform API operations with oTable\r\n\t\t * }\r\n\t\t */\r\n\t\t\"bRetrieve\": false,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * When vertical (y) scrolling is enabled, DataTables will force the height of\r\n\t\t * the table's viewport to the given height at all times (useful for layout).\r\n\t\t * However, this can look odd when filtering data down to a small data set,\r\n\t\t * and the footer is left \"floating\" further down. This parameter (when\r\n\t\t * enabled) will cause DataTables to collapse the table's viewport down when\r\n\t\t * the result set will fit within the given Y height.\r\n\t\t * @type boolean\r\n\t\t * @default false\r\n\t\t *\r\n\t\t * @dtopt Options\r\n\t\t * @name DataTable.defaults.scrollCollapse\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function() {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"scrollY\": \"200\",\r\n\t\t * \"scrollCollapse\": true\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\"bScrollCollapse\": false,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Configure DataTables to use server-side processing. Note that the\r\n\t\t * `ajax` parameter must also be given in order to give DataTables a\r\n\t\t * source to obtain the required data for each draw.\r\n\t\t * @type boolean\r\n\t\t * @default false\r\n\t\t *\r\n\t\t * @dtopt Features\r\n\t\t * @dtopt Server-side\r\n\t\t * @name DataTable.defaults.serverSide\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function () {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"serverSide\": true,\r\n\t\t * \"ajax\": \"xhr.php\"\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\"bServerSide\": false,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Enable or disable sorting of columns. Sorting of individual columns can be\r\n\t\t * disabled by the `sortable` option for each column.\r\n\t\t * @type boolean\r\n\t\t * @default true\r\n\t\t *\r\n\t\t * @dtopt Features\r\n\t\t * @name DataTable.defaults.ordering\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function () {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"ordering\": false\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\"bSort\": true,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Enable or display DataTables' ability to sort multiple columns at the\r\n\t\t * same time (activated by shift-click by the user).\r\n\t\t * @type boolean\r\n\t\t * @default true\r\n\t\t *\r\n\t\t * @dtopt Options\r\n\t\t * @name DataTable.defaults.orderMulti\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Disable multiple column sorting ability\r\n\t\t * $(document).ready( function () {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"orderMulti\": false\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\"bSortMulti\": true,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Allows control over whether DataTables should use the top (true) unique\r\n\t\t * cell that is found for a single column, or the bottom (false - default).\r\n\t\t * This is useful when using complex headers.\r\n\t\t * @type boolean\r\n\t\t * @default false\r\n\t\t *\r\n\t\t * @dtopt Options\r\n\t\t * @name DataTable.defaults.orderCellsTop\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function() {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"orderCellsTop\": true\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\"bSortCellsTop\": false,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Enable or disable the addition of the classes `sorting\\_1`, `sorting\\_2` and\r\n\t\t * `sorting\\_3` to the columns which are currently being sorted on. This is\r\n\t\t * presented as a feature switch as it can increase processing time (while\r\n\t\t * classes are removed and added) so for large data sets you might want to\r\n\t\t * turn this off.\r\n\t\t * @type boolean\r\n\t\t * @default true\r\n\t\t *\r\n\t\t * @dtopt Features\r\n\t\t * @name DataTable.defaults.orderClasses\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function () {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"orderClasses\": false\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\"bSortClasses\": true,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Enable or disable state saving. When enabled HTML5 `localStorage` will be\r\n\t\t * used to save table display information such as pagination information,\r\n\t\t * display length, filtering and sorting. As such when the end user reloads\r\n\t\t * the page the display display will match what thy had previously set up.\r\n\t\t *\r\n\t\t * Due to the use of `localStorage` the default state saving is not supported\r\n\t\t * in IE6 or 7. If state saving is required in those browsers, use\r\n\t\t * `stateSaveCallback` to provide a storage solution such as cookies.\r\n\t\t * @type boolean\r\n\t\t * @default false\r\n\t\t *\r\n\t\t * @dtopt Features\r\n\t\t * @name DataTable.defaults.stateSave\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function () {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"stateSave\": true\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\"bStateSave\": false,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * This function is called when a TR element is created (and all TD child\r\n\t\t * elements have been inserted), or registered if using a DOM source, allowing\r\n\t\t * manipulation of the TR element (adding classes etc).\r\n\t\t * @type function\r\n\t\t * @param {node} row \"TR\" element for the current row\r\n\t\t * @param {array} data Raw data array for this row\r\n\t\t * @param {int} dataIndex The index of this row in the internal aoData array\r\n\t\t *\r\n\t\t * @dtopt Callbacks\r\n\t\t * @name DataTable.defaults.createdRow\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function() {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"createdRow\": function( row, data, dataIndex ) {\r\n\t\t * // Bold the grade for all 'A' grade browsers\r\n\t\t * if ( data[4] == \"A\" )\r\n\t\t * {\r\n\t\t * $('td:eq(4)', row).html( '<b>A</b>' );\r\n\t\t * }\r\n\t\t * }\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\"fnCreatedRow\": null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * This function is called on every 'draw' event, and allows you to\r\n\t\t * dynamically modify any aspect you want about the created DOM.\r\n\t\t * @type function\r\n\t\t * @param {object} settings DataTables settings object\r\n\t\t *\r\n\t\t * @dtopt Callbacks\r\n\t\t * @name DataTable.defaults.drawCallback\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function() {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"drawCallback\": function( settings ) {\r\n\t\t * alert( 'DataTables has redrawn the table' );\r\n\t\t * }\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\"fnDrawCallback\": null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Identical to fnHeaderCallback() but for the table footer this function\r\n\t\t * allows you to modify the table footer on every 'draw' event.\r\n\t\t * @type function\r\n\t\t * @param {node} foot \"TR\" element for the footer\r\n\t\t * @param {array} data Full table data (as derived from the original HTML)\r\n\t\t * @param {int} start Index for the current display starting point in the\r\n\t\t * display array\r\n\t\t * @param {int} end Index for the current display ending point in the\r\n\t\t * display array\r\n\t\t * @param {array int} display Index array to translate the visual position\r\n\t\t * to the full data array\r\n\t\t *\r\n\t\t * @dtopt Callbacks\r\n\t\t * @name DataTable.defaults.footerCallback\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function() {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"footerCallback\": function( tfoot, data, start, end, display ) {\r\n\t\t * tfoot.getElementsByTagName('th')[0].innerHTML = \"Starting index is \"+start;\r\n\t\t * }\r\n\t\t * } );\r\n\t\t * } )\r\n\t\t */\r\n\t\t\"fnFooterCallback\": null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * When rendering large numbers in the information element for the table\r\n\t\t * (i.e. \"Showing 1 to 10 of 57 entries\") DataTables will render large numbers\r\n\t\t * to have a comma separator for the 'thousands' units (e.g. 1 million is\r\n\t\t * rendered as \"1,000,000\") to help readability for the end user. This\r\n\t\t * function will override the default method DataTables uses.\r\n\t\t * @type function\r\n\t\t * @member\r\n\t\t * @param {int} toFormat number to be formatted\r\n\t\t * @returns {string} formatted string for DataTables to show the number\r\n\t\t *\r\n\t\t * @dtopt Callbacks\r\n\t\t * @name DataTable.defaults.formatNumber\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Format a number using a single quote for the separator (note that\r\n\t\t * // this can also be done with the language.thousands option)\r\n\t\t * $(document).ready( function() {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"formatNumber\": function ( toFormat ) {\r\n\t\t * return toFormat.toString().replace(\r\n\t\t * /\\B(?=(\\d{3})+(?!\\d))/g, \"'\"\r\n\t\t * );\r\n\t\t * };\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\"fnFormatNumber\": function ( toFormat ) {\r\n\t\t\treturn toFormat.toString().replace(\r\n\t\t\t\t/\\B(?=(\\d{3})+(?!\\d))/g,\r\n\t\t\t\tthis.oLanguage.sThousands\r\n\t\t\t);\r\n\t\t},\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * This function is called on every 'draw' event, and allows you to\r\n\t\t * dynamically modify the header row. This can be used to calculate and\r\n\t\t * display useful information about the table.\r\n\t\t * @type function\r\n\t\t * @param {node} head \"TR\" element for the header\r\n\t\t * @param {array} data Full table data (as derived from the original HTML)\r\n\t\t * @param {int} start Index for the current display starting point in the\r\n\t\t * display array\r\n\t\t * @param {int} end Index for the current display ending point in the\r\n\t\t * display array\r\n\t\t * @param {array int} display Index array to translate the visual position\r\n\t\t * to the full data array\r\n\t\t *\r\n\t\t * @dtopt Callbacks\r\n\t\t * @name DataTable.defaults.headerCallback\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function() {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"fheaderCallback\": function( head, data, start, end, display ) {\r\n\t\t * head.getElementsByTagName('th')[0].innerHTML = \"Displaying \"+(end-start)+\" records\";\r\n\t\t * }\r\n\t\t * } );\r\n\t\t * } )\r\n\t\t */\r\n\t\t\"fnHeaderCallback\": null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * The information element can be used to convey information about the current\r\n\t\t * state of the table. Although the internationalisation options presented by\r\n\t\t * DataTables are quite capable of dealing with most customisations, there may\r\n\t\t * be times where you wish to customise the string further. This callback\r\n\t\t * allows you to do exactly that.\r\n\t\t * @type function\r\n\t\t * @param {object} oSettings DataTables settings object\r\n\t\t * @param {int} start Starting position in data for the draw\r\n\t\t * @param {int} end End position in data for the draw\r\n\t\t * @param {int} max Total number of rows in the table (regardless of\r\n\t\t * filtering)\r\n\t\t * @param {int} total Total number of rows in the data set, after filtering\r\n\t\t * @param {string} pre The string that DataTables has formatted using it's\r\n\t\t * own rules\r\n\t\t * @returns {string} The string to be displayed in the information element.\r\n\t\t *\r\n\t\t * @dtopt Callbacks\r\n\t\t * @name DataTable.defaults.infoCallback\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"infoCallback\": function( settings, start, end, max, total, pre ) {\r\n\t\t * return start +\" to \"+ end;\r\n\t\t * }\r\n\t\t * } );\r\n\t\t */\r\n\t\t\"fnInfoCallback\": null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Called when the table has been initialised. Normally DataTables will\r\n\t\t * initialise sequentially and there will be no need for this function,\r\n\t\t * however, this does not hold true when using external language information\r\n\t\t * since that is obtained using an async XHR call.\r\n\t\t * @type function\r\n\t\t * @param {object} settings DataTables settings object\r\n\t\t * @param {object} json The JSON object request from the server - only\r\n\t\t * present if client-side Ajax sourced data is used\r\n\t\t *\r\n\t\t * @dtopt Callbacks\r\n\t\t * @name DataTable.defaults.initComplete\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function() {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"initComplete\": function(settings, json) {\r\n\t\t * alert( 'DataTables has finished its initialisation.' );\r\n\t\t * }\r\n\t\t * } );\r\n\t\t * } )\r\n\t\t */\r\n\t\t\"fnInitComplete\": null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Called at the very start of each table draw and can be used to cancel the\r\n\t\t * draw by returning false, any other return (including undefined) results in\r\n\t\t * the full draw occurring).\r\n\t\t * @type function\r\n\t\t * @param {object} settings DataTables settings object\r\n\t\t * @returns {boolean} False will cancel the draw, anything else (including no\r\n\t\t * return) will allow it to complete.\r\n\t\t *\r\n\t\t * @dtopt Callbacks\r\n\t\t * @name DataTable.defaults.preDrawCallback\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function() {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"preDrawCallback\": function( settings ) {\r\n\t\t * if ( $('#test').val() == 1 ) {\r\n\t\t * return false;\r\n\t\t * }\r\n\t\t * }\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\"fnPreDrawCallback\": null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * This function allows you to 'post process' each row after it have been\r\n\t\t * generated for each table draw, but before it is rendered on screen. This\r\n\t\t * function might be used for setting the row class name etc.\r\n\t\t * @type function\r\n\t\t * @param {node} row \"TR\" element for the current row\r\n\t\t * @param {array} data Raw data array for this row\r\n\t\t * @param {int} displayIndex The display index for the current table draw\r\n\t\t * @param {int} displayIndexFull The index of the data in the full list of\r\n\t\t * rows (after filtering)\r\n\t\t *\r\n\t\t * @dtopt Callbacks\r\n\t\t * @name DataTable.defaults.rowCallback\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function() {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"rowCallback\": function( row, data, displayIndex, displayIndexFull ) {\r\n\t\t * // Bold the grade for all 'A' grade browsers\r\n\t\t * if ( data[4] == \"A\" ) {\r\n\t\t * $('td:eq(4)', row).html( '<b>A</b>' );\r\n\t\t * }\r\n\t\t * }\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\"fnRowCallback\": null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * __Deprecated__ The functionality provided by this parameter has now been\r\n\t\t * superseded by that provided through `ajax`, which should be used instead.\r\n\t\t *\r\n\t\t * This parameter allows you to override the default function which obtains\r\n\t\t * the data from the server so something more suitable for your application.\r\n\t\t * For example you could use POST data, or pull information from a Gears or\r\n\t\t * AIR database.\r\n\t\t * @type function\r\n\t\t * @member\r\n\t\t * @param {string} source HTTP source to obtain the data from (`ajax`)\r\n\t\t * @param {array} data A key/value pair object containing the data to send\r\n\t\t * to the server\r\n\t\t * @param {function} callback to be called on completion of the data get\r\n\t\t * process that will draw the data on the page.\r\n\t\t * @param {object} settings DataTables settings object\r\n\t\t *\r\n\t\t * @dtopt Callbacks\r\n\t\t * @dtopt Server-side\r\n\t\t * @name DataTable.defaults.serverData\r\n\t\t *\r\n\t\t * @deprecated 1.10. Please use `ajax` for this functionality now.\r\n\t\t */\r\n\t\t\"fnServerData\": null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * __Deprecated__ The functionality provided by this parameter has now been\r\n\t\t * superseded by that provided through `ajax`, which should be used instead.\r\n\t\t *\r\n\t\t * It is often useful to send extra data to the server when making an Ajax\r\n\t\t * request - for example custom filtering information, and this callback\r\n\t\t * function makes it trivial to send extra information to the server. The\r\n\t\t * passed in parameter is the data set that has been constructed by\r\n\t\t * DataTables, and you can add to this or modify it as you require.\r\n\t\t * @type function\r\n\t\t * @param {array} data Data array (array of objects which are name/value\r\n\t\t * pairs) that has been constructed by DataTables and will be sent to the\r\n\t\t * server. In the case of Ajax sourced data with server-side processing\r\n\t\t * this will be an empty array, for server-side processing there will be a\r\n\t\t * significant number of parameters!\r\n\t\t * @returns {undefined} Ensure that you modify the data array passed in,\r\n\t\t * as this is passed by reference.\r\n\t\t *\r\n\t\t * @dtopt Callbacks\r\n\t\t * @dtopt Server-side\r\n\t\t * @name DataTable.defaults.serverParams\r\n\t\t *\r\n\t\t * @deprecated 1.10. Please use `ajax` for this functionality now.\r\n\t\t */\r\n\t\t\"fnServerParams\": null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Load the table state. With this function you can define from where, and how, the\r\n\t\t * state of a table is loaded. By default DataTables will load from `localStorage`\r\n\t\t * but you might wish to use a server-side database or cookies.\r\n\t\t * @type function\r\n\t\t * @member\r\n\t\t * @param {object} settings DataTables settings object\r\n\t\t * @param {object} callback Callback that can be executed when done. It\r\n\t\t * should be passed the loaded state object.\r\n\t\t * @return {object} The DataTables state object to be loaded\r\n\t\t *\r\n\t\t * @dtopt Callbacks\r\n\t\t * @name DataTable.defaults.stateLoadCallback\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function() {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"stateSave\": true,\r\n\t\t * \"stateLoadCallback\": function (settings, callback) {\r\n\t\t * $.ajax( {\r\n\t\t * \"url\": \"/state_load\",\r\n\t\t * \"dataType\": \"json\",\r\n\t\t * \"success\": function (json) {\r\n\t\t * callback( json );\r\n\t\t * }\r\n\t\t * } );\r\n\t\t * }\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\"fnStateLoadCallback\": function ( settings ) {\r\n\t\t\ttry {\r\n\t\t\t\treturn JSON.parse(\r\n\t\t\t\t\t(settings.iStateDuration === -1 ? sessionStorage : localStorage).getItem(\r\n\t\t\t\t\t\t'DataTables_'+settings.sInstance+'_'+location.pathname\r\n\t\t\t\t\t)\r\n\t\t\t\t);\r\n\t\t\t} catch (e) {}\r\n\t\t},\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Callback which allows modification of the saved state prior to loading that state.\r\n\t\t * This callback is called when the table is loading state from the stored data, but\r\n\t\t * prior to the settings object being modified by the saved state. Note that for\r\n\t\t * plug-in authors, you should use the `stateLoadParams` event to load parameters for\r\n\t\t * a plug-in.\r\n\t\t * @type function\r\n\t\t * @param {object} settings DataTables settings object\r\n\t\t * @param {object} data The state object that is to be loaded\r\n\t\t *\r\n\t\t * @dtopt Callbacks\r\n\t\t * @name DataTable.defaults.stateLoadParams\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Remove a saved filter, so filtering is never loaded\r\n\t\t * $(document).ready( function() {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"stateSave\": true,\r\n\t\t * \"stateLoadParams\": function (settings, data) {\r\n\t\t * data.oSearch.sSearch = \"\";\r\n\t\t * }\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Disallow state loading by returning false\r\n\t\t * $(document).ready( function() {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"stateSave\": true,\r\n\t\t * \"stateLoadParams\": function (settings, data) {\r\n\t\t * return false;\r\n\t\t * }\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\"fnStateLoadParams\": null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Callback that is called when the state has been loaded from the state saving method\r\n\t\t * and the DataTables settings object has been modified as a result of the loaded state.\r\n\t\t * @type function\r\n\t\t * @param {object} settings DataTables settings object\r\n\t\t * @param {object} data The state object that was loaded\r\n\t\t *\r\n\t\t * @dtopt Callbacks\r\n\t\t * @name DataTable.defaults.stateLoaded\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Show an alert with the filtering value that was saved\r\n\t\t * $(document).ready( function() {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"stateSave\": true,\r\n\t\t * \"stateLoaded\": function (settings, data) {\r\n\t\t * alert( 'Saved filter was: '+data.oSearch.sSearch );\r\n\t\t * }\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\"fnStateLoaded\": null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Save the table state. This function allows you to define where and how the state\r\n\t\t * information for the table is stored By default DataTables will use `localStorage`\r\n\t\t * but you might wish to use a server-side database or cookies.\r\n\t\t * @type function\r\n\t\t * @member\r\n\t\t * @param {object} settings DataTables settings object\r\n\t\t * @param {object} data The state object to be saved\r\n\t\t *\r\n\t\t * @dtopt Callbacks\r\n\t\t * @name DataTable.defaults.stateSaveCallback\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function() {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"stateSave\": true,\r\n\t\t * \"stateSaveCallback\": function (settings, data) {\r\n\t\t * // Send an Ajax request to the server with the state object\r\n\t\t * $.ajax( {\r\n\t\t * \"url\": \"/state_save\",\r\n\t\t * \"data\": data,\r\n\t\t * \"dataType\": \"json\",\r\n\t\t * \"method\": \"POST\"\r\n\t\t * \"success\": function () {}\r\n\t\t * } );\r\n\t\t * }\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\"fnStateSaveCallback\": function ( settings, data ) {\r\n\t\t\ttry {\r\n\t\t\t\t(settings.iStateDuration === -1 ? sessionStorage : localStorage).setItem(\r\n\t\t\t\t\t'DataTables_'+settings.sInstance+'_'+location.pathname,\r\n\t\t\t\t\tJSON.stringify( data )\r\n\t\t\t\t);\r\n\t\t\t} catch (e) {}\r\n\t\t},\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Callback which allows modification of the state to be saved. Called when the table\r\n\t\t * has changed state a new state save is required. This method allows modification of\r\n\t\t * the state saving object prior to actually doing the save, including addition or\r\n\t\t * other state properties or modification. Note that for plug-in authors, you should\r\n\t\t * use the `stateSaveParams` event to save parameters for a plug-in.\r\n\t\t * @type function\r\n\t\t * @param {object} settings DataTables settings object\r\n\t\t * @param {object} data The state object to be saved\r\n\t\t *\r\n\t\t * @dtopt Callbacks\r\n\t\t * @name DataTable.defaults.stateSaveParams\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Remove a saved filter, so filtering is never saved\r\n\t\t * $(document).ready( function() {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"stateSave\": true,\r\n\t\t * \"stateSaveParams\": function (settings, data) {\r\n\t\t * data.oSearch.sSearch = \"\";\r\n\t\t * }\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\"fnStateSaveParams\": null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Duration for which the saved state information is considered valid. After this period\r\n\t\t * has elapsed the state will be returned to the default.\r\n\t\t * Value is given in seconds.\r\n\t\t * @type int\r\n\t\t * @default 7200 <i>(2 hours)</i>\r\n\t\t *\r\n\t\t * @dtopt Options\r\n\t\t * @name DataTable.defaults.stateDuration\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function() {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"stateDuration\": 60*60*24; // 1 day\r\n\t\t * } );\r\n\t\t * } )\r\n\t\t */\r\n\t\t\"iStateDuration\": 7200,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * When enabled DataTables will not make a request to the server for the first\r\n\t\t * page draw - rather it will use the data already on the page (no sorting etc\r\n\t\t * will be applied to it), thus saving on an XHR at load time. `deferLoading`\r\n\t\t * is used to indicate that deferred loading is required, but it is also used\r\n\t\t * to tell DataTables how many records there are in the full table (allowing\r\n\t\t * the information element and pagination to be displayed correctly). In the case\r\n\t\t * where a filtering is applied to the table on initial load, this can be\r\n\t\t * indicated by giving the parameter as an array, where the first element is\r\n\t\t * the number of records available after filtering and the second element is the\r\n\t\t * number of records without filtering (allowing the table information element\r\n\t\t * to be shown correctly).\r\n\t\t * @type int | array\r\n\t\t * @default null\r\n\t\t *\r\n\t\t * @dtopt Options\r\n\t\t * @name DataTable.defaults.deferLoading\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // 57 records available in the table, no filtering applied\r\n\t\t * $(document).ready( function() {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"serverSide\": true,\r\n\t\t * \"ajax\": \"scripts/server_processing.php\",\r\n\t\t * \"deferLoading\": 57\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // 57 records after filtering, 100 without filtering (an initial filter applied)\r\n\t\t * $(document).ready( function() {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"serverSide\": true,\r\n\t\t * \"ajax\": \"scripts/server_processing.php\",\r\n\t\t * \"deferLoading\": [ 57, 100 ],\r\n\t\t * \"search\": {\r\n\t\t * \"search\": \"my_filter\"\r\n\t\t * }\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\"iDeferLoading\": null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Number of rows to display on a single page when using pagination. If\r\n\t\t * feature enabled (`lengthChange`) then the end user will be able to override\r\n\t\t * this to a custom setting using a pop-up menu.\r\n\t\t * @type int\r\n\t\t * @default 10\r\n\t\t *\r\n\t\t * @dtopt Options\r\n\t\t * @name DataTable.defaults.pageLength\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function() {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"pageLength\": 50\r\n\t\t * } );\r\n\t\t * } )\r\n\t\t */\r\n\t\t\"iDisplayLength\": 10,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Define the starting point for data display when using DataTables with\r\n\t\t * pagination. Note that this parameter is the number of records, rather than\r\n\t\t * the page number, so if you have 10 records per page and want to start on\r\n\t\t * the third page, it should be \"20\".\r\n\t\t * @type int\r\n\t\t * @default 0\r\n\t\t *\r\n\t\t * @dtopt Options\r\n\t\t * @name DataTable.defaults.displayStart\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function() {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"displayStart\": 20\r\n\t\t * } );\r\n\t\t * } )\r\n\t\t */\r\n\t\t\"iDisplayStart\": 0,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * By default DataTables allows keyboard navigation of the table (sorting, paging,\r\n\t\t * and filtering) by adding a `tabindex` attribute to the required elements. This\r\n\t\t * allows you to tab through the controls and press the enter key to activate them.\r\n\t\t * The tabindex is default 0, meaning that the tab follows the flow of the document.\r\n\t\t * You can overrule this using this parameter if you wish. Use a value of -1 to\r\n\t\t * disable built-in keyboard navigation.\r\n\t\t * @type int\r\n\t\t * @default 0\r\n\t\t *\r\n\t\t * @dtopt Options\r\n\t\t * @name DataTable.defaults.tabIndex\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function() {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"tabIndex\": 1\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\"iTabIndex\": 0,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Classes that DataTables assigns to the various components and features\r\n\t\t * that it adds to the HTML table. This allows classes to be configured\r\n\t\t * during initialisation in addition to through the static\r\n\t\t * {@link DataTable.ext.oStdClasses} object).\r\n\t\t * @namespace\r\n\t\t * @name DataTable.defaults.classes\r\n\t\t */\r\n\t\t\"oClasses\": {},\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * All strings that DataTables uses in the user interface that it creates\r\n\t\t * are defined in this object, allowing you to modified them individually or\r\n\t\t * completely replace them all as required.\r\n\t\t * @namespace\r\n\t\t * @name DataTable.defaults.language\r\n\t\t */\r\n\t\t\"oLanguage\": {\r\n\t\t\t/**\r\n\t\t\t * Strings that are used for WAI-ARIA labels and controls only (these are not\r\n\t\t\t * actually visible on the page, but will be read by screenreaders, and thus\r\n\t\t\t * must be internationalised as well).\r\n\t\t\t * @namespace\r\n\t\t\t * @name DataTable.defaults.language.aria\r\n\t\t\t */\r\n\t\t\t\"oAria\": {\r\n\t\t\t\t/**\r\n\t\t\t\t * ARIA label that is added to the table headers when the column may be\r\n\t\t\t\t * sorted ascending by activing the column (click or return when focused).\r\n\t\t\t\t * Note that the column header is prefixed to this string.\r\n\t\t\t\t * @type string\r\n\t\t\t\t * @default : activate to sort column ascending\r\n\t\t\t\t *\r\n\t\t\t\t * @dtopt Language\r\n\t\t\t\t * @name DataTable.defaults.language.aria.sortAscending\r\n\t\t\t\t *\r\n\t\t\t\t * @example\r\n\t\t\t\t * $(document).ready( function() {\r\n\t\t\t\t * $('#example').dataTable( {\r\n\t\t\t\t * \"language\": {\r\n\t\t\t\t * \"aria\": {\r\n\t\t\t\t * \"sortAscending\": \" - click/return to sort ascending\"\r\n\t\t\t\t * }\r\n\t\t\t\t * }\r\n\t\t\t\t * } );\r\n\t\t\t\t * } );\r\n\t\t\t\t */\r\n\t\t\t\t\"sSortAscending\": \": activate to sort column ascending\",\r\n\t\r\n\t\t\t\t/**\r\n\t\t\t\t * ARIA label that is added to the table headers when the column may be\r\n\t\t\t\t * sorted descending by activing the column (click or return when focused).\r\n\t\t\t\t * Note that the column header is prefixed to this string.\r\n\t\t\t\t * @type string\r\n\t\t\t\t * @default : activate to sort column ascending\r\n\t\t\t\t *\r\n\t\t\t\t * @dtopt Language\r\n\t\t\t\t * @name DataTable.defaults.language.aria.sortDescending\r\n\t\t\t\t *\r\n\t\t\t\t * @example\r\n\t\t\t\t * $(document).ready( function() {\r\n\t\t\t\t * $('#example').dataTable( {\r\n\t\t\t\t * \"language\": {\r\n\t\t\t\t * \"aria\": {\r\n\t\t\t\t * \"sortDescending\": \" - click/return to sort descending\"\r\n\t\t\t\t * }\r\n\t\t\t\t * }\r\n\t\t\t\t * } );\r\n\t\t\t\t * } );\r\n\t\t\t\t */\r\n\t\t\t\t\"sSortDescending\": \": activate to sort column descending\"\r\n\t\t\t},\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Pagination string used by DataTables for the built-in pagination\r\n\t\t\t * control types.\r\n\t\t\t * @namespace\r\n\t\t\t * @name DataTable.defaults.language.paginate\r\n\t\t\t */\r\n\t\t\t\"oPaginate\": {\r\n\t\t\t\t/**\r\n\t\t\t\t * Text to use when using the 'full_numbers' type of pagination for the\r\n\t\t\t\t * button to take the user to the first page.\r\n\t\t\t\t * @type string\r\n\t\t\t\t * @default First\r\n\t\t\t\t *\r\n\t\t\t\t * @dtopt Language\r\n\t\t\t\t * @name DataTable.defaults.language.paginate.first\r\n\t\t\t\t *\r\n\t\t\t\t * @example\r\n\t\t\t\t * $(document).ready( function() {\r\n\t\t\t\t * $('#example').dataTable( {\r\n\t\t\t\t * \"language\": {\r\n\t\t\t\t * \"paginate\": {\r\n\t\t\t\t * \"first\": \"First page\"\r\n\t\t\t\t * }\r\n\t\t\t\t * }\r\n\t\t\t\t * } );\r\n\t\t\t\t * } );\r\n\t\t\t\t */\r\n\t\t\t\t\"sFirst\": \"First\",\r\n\t\r\n\t\r\n\t\t\t\t/**\r\n\t\t\t\t * Text to use when using the 'full_numbers' type of pagination for the\r\n\t\t\t\t * button to take the user to the last page.\r\n\t\t\t\t * @type string\r\n\t\t\t\t * @default Last\r\n\t\t\t\t *\r\n\t\t\t\t * @dtopt Language\r\n\t\t\t\t * @name DataTable.defaults.language.paginate.last\r\n\t\t\t\t *\r\n\t\t\t\t * @example\r\n\t\t\t\t * $(document).ready( function() {\r\n\t\t\t\t * $('#example').dataTable( {\r\n\t\t\t\t * \"language\": {\r\n\t\t\t\t * \"paginate\": {\r\n\t\t\t\t * \"last\": \"Last page\"\r\n\t\t\t\t * }\r\n\t\t\t\t * }\r\n\t\t\t\t * } );\r\n\t\t\t\t * } );\r\n\t\t\t\t */\r\n\t\t\t\t\"sLast\": \"Last\",\r\n\t\r\n\t\r\n\t\t\t\t/**\r\n\t\t\t\t * Text to use for the 'next' pagination button (to take the user to the\r\n\t\t\t\t * next page).\r\n\t\t\t\t * @type string\r\n\t\t\t\t * @default Next\r\n\t\t\t\t *\r\n\t\t\t\t * @dtopt Language\r\n\t\t\t\t * @name DataTable.defaults.language.paginate.next\r\n\t\t\t\t *\r\n\t\t\t\t * @example\r\n\t\t\t\t * $(document).ready( function() {\r\n\t\t\t\t * $('#example').dataTable( {\r\n\t\t\t\t * \"language\": {\r\n\t\t\t\t * \"paginate\": {\r\n\t\t\t\t * \"next\": \"Next page\"\r\n\t\t\t\t * }\r\n\t\t\t\t * }\r\n\t\t\t\t * } );\r\n\t\t\t\t * } );\r\n\t\t\t\t */\r\n\t\t\t\t\"sNext\": \"Next\",\r\n\t\r\n\t\r\n\t\t\t\t/**\r\n\t\t\t\t * Text to use for the 'previous' pagination button (to take the user to\r\n\t\t\t\t * the previous page).\r\n\t\t\t\t * @type string\r\n\t\t\t\t * @default Previous\r\n\t\t\t\t *\r\n\t\t\t\t * @dtopt Language\r\n\t\t\t\t * @name DataTable.defaults.language.paginate.previous\r\n\t\t\t\t *\r\n\t\t\t\t * @example\r\n\t\t\t\t * $(document).ready( function() {\r\n\t\t\t\t * $('#example').dataTable( {\r\n\t\t\t\t * \"language\": {\r\n\t\t\t\t * \"paginate\": {\r\n\t\t\t\t * \"previous\": \"Previous page\"\r\n\t\t\t\t * }\r\n\t\t\t\t * }\r\n\t\t\t\t * } );\r\n\t\t\t\t * } );\r\n\t\t\t\t */\r\n\t\t\t\t\"sPrevious\": \"Previous\"\r\n\t\t\t},\r\n\t\r\n\t\t\t/**\r\n\t\t\t * This string is shown in preference to `zeroRecords` when the table is\r\n\t\t\t * empty of data (regardless of filtering). Note that this is an optional\r\n\t\t\t * parameter - if it is not given, the value of `zeroRecords` will be used\r\n\t\t\t * instead (either the default or given value).\r\n\t\t\t * @type string\r\n\t\t\t * @default No data available in table\r\n\t\t\t *\r\n\t\t\t * @dtopt Language\r\n\t\t\t * @name DataTable.defaults.language.emptyTable\r\n\t\t\t *\r\n\t\t\t * @example\r\n\t\t\t * $(document).ready( function() {\r\n\t\t\t * $('#example').dataTable( {\r\n\t\t\t * \"language\": {\r\n\t\t\t * \"emptyTable\": \"No data available in table\"\r\n\t\t\t * }\r\n\t\t\t * } );\r\n\t\t\t * } );\r\n\t\t\t */\r\n\t\t\t\"sEmptyTable\": \"No data available in table\",\r\n\t\r\n\t\r\n\t\t\t/**\r\n\t\t\t * This string gives information to the end user about the information\r\n\t\t\t * that is current on display on the page. The following tokens can be\r\n\t\t\t * used in the string and will be dynamically replaced as the table\r\n\t\t\t * display updates. This tokens can be placed anywhere in the string, or\r\n\t\t\t * removed as needed by the language requires:\r\n\t\t\t *\r\n\t\t\t * * `\\_START\\_` - Display index of the first record on the current page\r\n\t\t\t * * `\\_END\\_` - Display index of the last record on the current page\r\n\t\t\t * * `\\_TOTAL\\_` - Number of records in the table after filtering\r\n\t\t\t * * `\\_MAX\\_` - Number of records in the table without filtering\r\n\t\t\t * * `\\_PAGE\\_` - Current page number\r\n\t\t\t * * `\\_PAGES\\_` - Total number of pages of data in the table\r\n\t\t\t *\r\n\t\t\t * @type string\r\n\t\t\t * @default Showing _START_ to _END_ of _TOTAL_ entries\r\n\t\t\t *\r\n\t\t\t * @dtopt Language\r\n\t\t\t * @name DataTable.defaults.language.info\r\n\t\t\t *\r\n\t\t\t * @example\r\n\t\t\t * $(document).ready( function() {\r\n\t\t\t * $('#example').dataTable( {\r\n\t\t\t * \"language\": {\r\n\t\t\t * \"info\": \"Showing page _PAGE_ of _PAGES_\"\r\n\t\t\t * }\r\n\t\t\t * } );\r\n\t\t\t * } );\r\n\t\t\t */\r\n\t\t\t\"sInfo\": \"Showing _START_ to _END_ of _TOTAL_ entries\",\r\n\t\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Display information string for when the table is empty. Typically the\r\n\t\t\t * format of this string should match `info`.\r\n\t\t\t * @type string\r\n\t\t\t * @default Showing 0 to 0 of 0 entries\r\n\t\t\t *\r\n\t\t\t * @dtopt Language\r\n\t\t\t * @name DataTable.defaults.language.infoEmpty\r\n\t\t\t *\r\n\t\t\t * @example\r\n\t\t\t * $(document).ready( function() {\r\n\t\t\t * $('#example').dataTable( {\r\n\t\t\t * \"language\": {\r\n\t\t\t * \"infoEmpty\": \"No entries to show\"\r\n\t\t\t * }\r\n\t\t\t * } );\r\n\t\t\t * } );\r\n\t\t\t */\r\n\t\t\t\"sInfoEmpty\": \"Showing 0 to 0 of 0 entries\",\r\n\t\r\n\t\r\n\t\t\t/**\r\n\t\t\t * When a user filters the information in a table, this string is appended\r\n\t\t\t * to the information (`info`) to give an idea of how strong the filtering\r\n\t\t\t * is. The variable _MAX_ is dynamically updated.\r\n\t\t\t * @type string\r\n\t\t\t * @default (filtered from _MAX_ total entries)\r\n\t\t\t *\r\n\t\t\t * @dtopt Language\r\n\t\t\t * @name DataTable.defaults.language.infoFiltered\r\n\t\t\t *\r\n\t\t\t * @example\r\n\t\t\t * $(document).ready( function() {\r\n\t\t\t * $('#example').dataTable( {\r\n\t\t\t * \"language\": {\r\n\t\t\t * \"infoFiltered\": \" - filtering from _MAX_ records\"\r\n\t\t\t * }\r\n\t\t\t * } );\r\n\t\t\t * } );\r\n\t\t\t */\r\n\t\t\t\"sInfoFiltered\": \"(filtered from _MAX_ total entries)\",\r\n\t\r\n\t\r\n\t\t\t/**\r\n\t\t\t * If can be useful to append extra information to the info string at times,\r\n\t\t\t * and this variable does exactly that. This information will be appended to\r\n\t\t\t * the `info` (`infoEmpty` and `infoFiltered` in whatever combination they are\r\n\t\t\t * being used) at all times.\r\n\t\t\t * @type string\r\n\t\t\t * @default <i>Empty string</i>\r\n\t\t\t *\r\n\t\t\t * @dtopt Language\r\n\t\t\t * @name DataTable.defaults.language.infoPostFix\r\n\t\t\t *\r\n\t\t\t * @example\r\n\t\t\t * $(document).ready( function() {\r\n\t\t\t * $('#example').dataTable( {\r\n\t\t\t * \"language\": {\r\n\t\t\t * \"infoPostFix\": \"All records shown are derived from real information.\"\r\n\t\t\t * }\r\n\t\t\t * } );\r\n\t\t\t * } );\r\n\t\t\t */\r\n\t\t\t\"sInfoPostFix\": \"\",\r\n\t\r\n\t\r\n\t\t\t/**\r\n\t\t\t * This decimal place operator is a little different from the other\r\n\t\t\t * language options since DataTables doesn't output floating point\r\n\t\t\t * numbers, so it won't ever use this for display of a number. Rather,\r\n\t\t\t * what this parameter does is modify the sort methods of the table so\r\n\t\t\t * that numbers which are in a format which has a character other than\r\n\t\t\t * a period (`.`) as a decimal place will be sorted numerically.\r\n\t\t\t *\r\n\t\t\t * Note that numbers with different decimal places cannot be shown in\r\n\t\t\t * the same table and still be sortable, the table must be consistent.\r\n\t\t\t * However, multiple different tables on the page can use different\r\n\t\t\t * decimal place characters.\r\n\t\t\t * @type string\r\n\t\t\t * @default \r\n\t\t\t *\r\n\t\t\t * @dtopt Language\r\n\t\t\t * @name DataTable.defaults.language.decimal\r\n\t\t\t *\r\n\t\t\t * @example\r\n\t\t\t * $(document).ready( function() {\r\n\t\t\t * $('#example').dataTable( {\r\n\t\t\t * \"language\": {\r\n\t\t\t * \"decimal\": \",\"\r\n\t\t\t * \"thousands\": \".\"\r\n\t\t\t * }\r\n\t\t\t * } );\r\n\t\t\t * } );\r\n\t\t\t */\r\n\t\t\t\"sDecimal\": \"\",\r\n\t\r\n\t\r\n\t\t\t/**\r\n\t\t\t * DataTables has a build in number formatter (`formatNumber`) which is\r\n\t\t\t * used to format large numbers that are used in the table information.\r\n\t\t\t * By default a comma is used, but this can be trivially changed to any\r\n\t\t\t * character you wish with this parameter.\r\n\t\t\t * @type string\r\n\t\t\t * @default ,\r\n\t\t\t *\r\n\t\t\t * @dtopt Language\r\n\t\t\t * @name DataTable.defaults.language.thousands\r\n\t\t\t *\r\n\t\t\t * @example\r\n\t\t\t * $(document).ready( function() {\r\n\t\t\t * $('#example').dataTable( {\r\n\t\t\t * \"language\": {\r\n\t\t\t * \"thousands\": \"'\"\r\n\t\t\t * }\r\n\t\t\t * } );\r\n\t\t\t * } );\r\n\t\t\t */\r\n\t\t\t\"sThousands\": \",\",\r\n\t\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Detail the action that will be taken when the drop down menu for the\r\n\t\t\t * pagination length option is changed. The '_MENU_' variable is replaced\r\n\t\t\t * with a default select list of 10, 25, 50 and 100, and can be replaced\r\n\t\t\t * with a custom select box if required.\r\n\t\t\t * @type string\r\n\t\t\t * @default Show _MENU_ entries\r\n\t\t\t *\r\n\t\t\t * @dtopt Language\r\n\t\t\t * @name DataTable.defaults.language.lengthMenu\r\n\t\t\t *\r\n\t\t\t * @example\r\n\t\t\t * // Language change only\r\n\t\t\t * $(document).ready( function() {\r\n\t\t\t * $('#example').dataTable( {\r\n\t\t\t * \"language\": {\r\n\t\t\t * \"lengthMenu\": \"Display _MENU_ records\"\r\n\t\t\t * }\r\n\t\t\t * } );\r\n\t\t\t * } );\r\n\t\t\t *\r\n\t\t\t * @example\r\n\t\t\t * // Language and options change\r\n\t\t\t * $(document).ready( function() {\r\n\t\t\t * $('#example').dataTable( {\r\n\t\t\t * \"language\": {\r\n\t\t\t * \"lengthMenu\": 'Display <select>'+\r\n\t\t\t * '<option value=\"10\">10</option>'+\r\n\t\t\t * '<option value=\"20\">20</option>'+\r\n\t\t\t * '<option value=\"30\">30</option>'+\r\n\t\t\t * '<option value=\"40\">40</option>'+\r\n\t\t\t * '<option value=\"50\">50</option>'+\r\n\t\t\t * '<option value=\"-1\">All</option>'+\r\n\t\t\t * '</select> records'\r\n\t\t\t * }\r\n\t\t\t * } );\r\n\t\t\t * } );\r\n\t\t\t */\r\n\t\t\t\"sLengthMenu\": \"Show _MENU_ entries\",\r\n\t\r\n\t\r\n\t\t\t/**\r\n\t\t\t * When using Ajax sourced data and during the first draw when DataTables is\r\n\t\t\t * gathering the data, this message is shown in an empty row in the table to\r\n\t\t\t * indicate to the end user the the data is being loaded. Note that this\r\n\t\t\t * parameter is not used when loading data by server-side processing, just\r\n\t\t\t * Ajax sourced data with client-side processing.\r\n\t\t\t * @type string\r\n\t\t\t * @default Loading...\r\n\t\t\t *\r\n\t\t\t * @dtopt Language\r\n\t\t\t * @name DataTable.defaults.language.loadingRecords\r\n\t\t\t *\r\n\t\t\t * @example\r\n\t\t\t * $(document).ready( function() {\r\n\t\t\t * $('#example').dataTable( {\r\n\t\t\t * \"language\": {\r\n\t\t\t * \"loadingRecords\": \"Please wait - loading...\"\r\n\t\t\t * }\r\n\t\t\t * } );\r\n\t\t\t * } );\r\n\t\t\t */\r\n\t\t\t\"sLoadingRecords\": \"Loading...\",\r\n\t\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Text which is displayed when the table is processing a user action\r\n\t\t\t * (usually a sort command or similar).\r\n\t\t\t * @type string\r\n\t\t\t * @default Processing...\r\n\t\t\t *\r\n\t\t\t * @dtopt Language\r\n\t\t\t * @name DataTable.defaults.language.processing\r\n\t\t\t *\r\n\t\t\t * @example\r\n\t\t\t * $(document).ready( function() {\r\n\t\t\t * $('#example').dataTable( {\r\n\t\t\t * \"language\": {\r\n\t\t\t * \"processing\": \"DataTables is currently busy\"\r\n\t\t\t * }\r\n\t\t\t * } );\r\n\t\t\t * } );\r\n\t\t\t */\r\n\t\t\t\"sProcessing\": \"Processing...\",\r\n\t\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Details the actions that will be taken when the user types into the\r\n\t\t\t * filtering input text box. The variable \"_INPUT_\", if used in the string,\r\n\t\t\t * is replaced with the HTML text box for the filtering input allowing\r\n\t\t\t * control over where it appears in the string. If \"_INPUT_\" is not given\r\n\t\t\t * then the input box is appended to the string automatically.\r\n\t\t\t * @type string\r\n\t\t\t * @default Search:\r\n\t\t\t *\r\n\t\t\t * @dtopt Language\r\n\t\t\t * @name DataTable.defaults.language.search\r\n\t\t\t *\r\n\t\t\t * @example\r\n\t\t\t * // Input text box will be appended at the end automatically\r\n\t\t\t * $(document).ready( function() {\r\n\t\t\t * $('#example').dataTable( {\r\n\t\t\t * \"language\": {\r\n\t\t\t * \"search\": \"Filter records:\"\r\n\t\t\t * }\r\n\t\t\t * } );\r\n\t\t\t * } );\r\n\t\t\t *\r\n\t\t\t * @example\r\n\t\t\t * // Specify where the filter should appear\r\n\t\t\t * $(document).ready( function() {\r\n\t\t\t * $('#example').dataTable( {\r\n\t\t\t * \"language\": {\r\n\t\t\t * \"search\": \"Apply filter _INPUT_ to table\"\r\n\t\t\t * }\r\n\t\t\t * } );\r\n\t\t\t * } );\r\n\t\t\t */\r\n\t\t\t\"sSearch\": \"Search:\",\r\n\t\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Assign a `placeholder` attribute to the search `input` element\r\n\t\t\t * @type string\r\n\t\t\t * @default \r\n\t\t\t *\r\n\t\t\t * @dtopt Language\r\n\t\t\t * @name DataTable.defaults.language.searchPlaceholder\r\n\t\t\t */\r\n\t\t\t\"sSearchPlaceholder\": \"\",\r\n\t\r\n\t\r\n\t\t\t/**\r\n\t\t\t * All of the language information can be stored in a file on the\r\n\t\t\t * server-side, which DataTables will look up if this parameter is passed.\r\n\t\t\t * It must store the URL of the language file, which is in a JSON format,\r\n\t\t\t * and the object has the same properties as the oLanguage object in the\r\n\t\t\t * initialiser object (i.e. the above parameters). Please refer to one of\r\n\t\t\t * the example language files to see how this works in action.\r\n\t\t\t * @type string\r\n\t\t\t * @default <i>Empty string - i.e. disabled</i>\r\n\t\t\t *\r\n\t\t\t * @dtopt Language\r\n\t\t\t * @name DataTable.defaults.language.url\r\n\t\t\t *\r\n\t\t\t * @example\r\n\t\t\t * $(document).ready( function() {\r\n\t\t\t * $('#example').dataTable( {\r\n\t\t\t * \"language\": {\r\n\t\t\t * \"url\": \"http://www.sprymedia.co.uk/dataTables/lang.txt\"\r\n\t\t\t * }\r\n\t\t\t * } );\r\n\t\t\t * } );\r\n\t\t\t */\r\n\t\t\t\"sUrl\": \"\",\r\n\t\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Text shown inside the table records when the is no information to be\r\n\t\t\t * displayed after filtering. `emptyTable` is shown when there is simply no\r\n\t\t\t * information in the table at all (regardless of filtering).\r\n\t\t\t * @type string\r\n\t\t\t * @default No matching records found\r\n\t\t\t *\r\n\t\t\t * @dtopt Language\r\n\t\t\t * @name DataTable.defaults.language.zeroRecords\r\n\t\t\t *\r\n\t\t\t * @example\r\n\t\t\t * $(document).ready( function() {\r\n\t\t\t * $('#example').dataTable( {\r\n\t\t\t * \"language\": {\r\n\t\t\t * \"zeroRecords\": \"No records to display\"\r\n\t\t\t * }\r\n\t\t\t * } );\r\n\t\t\t * } );\r\n\t\t\t */\r\n\t\t\t\"sZeroRecords\": \"No matching records found\"\r\n\t\t},\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * This parameter allows you to have define the global filtering state at\r\n\t\t * initialisation time. As an object the `search` parameter must be\r\n\t\t * defined, but all other parameters are optional. When `regex` is true,\r\n\t\t * the search string will be treated as a regular expression, when false\r\n\t\t * (default) it will be treated as a straight string. When `smart`\r\n\t\t * DataTables will use it's smart filtering methods (to word match at\r\n\t\t * any point in the data), when false this will not be done.\r\n\t\t * @namespace\r\n\t\t * @extends DataTable.models.oSearch\r\n\t\t *\r\n\t\t * @dtopt Options\r\n\t\t * @name DataTable.defaults.search\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function() {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"search\": {\"search\": \"Initial search\"}\r\n\t\t * } );\r\n\t\t * } )\r\n\t\t */\r\n\t\t\"oSearch\": $.extend( {}, DataTable.models.oSearch ),\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * __Deprecated__ The functionality provided by this parameter has now been\r\n\t\t * superseded by that provided through `ajax`, which should be used instead.\r\n\t\t *\r\n\t\t * By default DataTables will look for the property `data` (or `aaData` for\r\n\t\t * compatibility with DataTables 1.9-) when obtaining data from an Ajax\r\n\t\t * source or for server-side processing - this parameter allows that\r\n\t\t * property to be changed. You can use Javascript dotted object notation to\r\n\t\t * get a data source for multiple levels of nesting.\r\n\t\t * @type string\r\n\t\t * @default data\r\n\t\t *\r\n\t\t * @dtopt Options\r\n\t\t * @dtopt Server-side\r\n\t\t * @name DataTable.defaults.ajaxDataProp\r\n\t\t *\r\n\t\t * @deprecated 1.10. Please use `ajax` for this functionality now.\r\n\t\t */\r\n\t\t\"sAjaxDataProp\": \"data\",\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * __Deprecated__ The functionality provided by this parameter has now been\r\n\t\t * superseded by that provided through `ajax`, which should be used instead.\r\n\t\t *\r\n\t\t * You can instruct DataTables to load data from an external\r\n\t\t * source using this parameter (use aData if you want to pass data in you\r\n\t\t * already have). Simply provide a url a JSON object can be obtained from.\r\n\t\t * @type string\r\n\t\t * @default null\r\n\t\t *\r\n\t\t * @dtopt Options\r\n\t\t * @dtopt Server-side\r\n\t\t * @name DataTable.defaults.ajaxSource\r\n\t\t *\r\n\t\t * @deprecated 1.10. Please use `ajax` for this functionality now.\r\n\t\t */\r\n\t\t\"sAjaxSource\": null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * This initialisation variable allows you to specify exactly where in the\r\n\t\t * DOM you want DataTables to inject the various controls it adds to the page\r\n\t\t * (for example you might want the pagination controls at the top of the\r\n\t\t * table). DIV elements (with or without a custom class) can also be added to\r\n\t\t * aid styling. The follow syntax is used:\r\n\t\t * <ul>\r\n\t\t * <li>The following options are allowed:\r\n\t\t * <ul>\r\n\t\t * <li>'l' - Length changing</li>\r\n\t\t * <li>'f' - Filtering input</li>\r\n\t\t * <li>'t' - The table!</li>\r\n\t\t * <li>'i' - Information</li>\r\n\t\t * <li>'p' - Pagination</li>\r\n\t\t * <li>'r' - pRocessing</li>\r\n\t\t * </ul>\r\n\t\t * </li>\r\n\t\t * <li>The following constants are allowed:\r\n\t\t * <ul>\r\n\t\t * <li>'H' - jQueryUI theme \"header\" classes ('fg-toolbar ui-widget-header ui-corner-tl ui-corner-tr ui-helper-clearfix')</li>\r\n\t\t * <li>'F' - jQueryUI theme \"footer\" classes ('fg-toolbar ui-widget-header ui-corner-bl ui-corner-br ui-helper-clearfix')</li>\r\n\t\t * </ul>\r\n\t\t * </li>\r\n\t\t * <li>The following syntax is expected:\r\n\t\t * <ul>\r\n\t\t * <li>'<' and '>' - div elements</li>\r\n\t\t * <li>'<\"class\" and '>' - div with a class</li>\r\n\t\t * <li>'<\"#id\" and '>' - div with an ID</li>\r\n\t\t * </ul>\r\n\t\t * </li>\r\n\t\t * <li>Examples:\r\n\t\t * <ul>\r\n\t\t * <li>'<\"wrapper\"flipt>'</li>\r\n\t\t * <li>'<lf<t>ip>'</li>\r\n\t\t * </ul>\r\n\t\t * </li>\r\n\t\t * </ul>\r\n\t\t * @type string\r\n\t\t * @default lfrtip <i>(when `jQueryUI` is false)</i> <b>or</b>\r\n\t\t * <\"H\"lfr>t<\"F\"ip> <i>(when `jQueryUI` is true)</i>\r\n\t\t *\r\n\t\t * @dtopt Options\r\n\t\t * @name DataTable.defaults.dom\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function() {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"dom\": '<\"top\"i>rt<\"bottom\"flp><\"clear\">'\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\"sDom\": \"lfrtip\",\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Search delay option. This will throttle full table searches that use the\r\n\t\t * DataTables provided search input element (it does not effect calls to\r\n\t\t * `dt-api search()`, providing a delay before the search is made.\r\n\t\t * @type integer\r\n\t\t * @default 0\r\n\t\t *\r\n\t\t * @dtopt Options\r\n\t\t * @name DataTable.defaults.searchDelay\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function() {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"searchDelay\": 200\r\n\t\t * } );\r\n\t\t * } )\r\n\t\t */\r\n\t\t\"searchDelay\": null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * DataTables features six different built-in options for the buttons to\r\n\t\t * display for pagination control:\r\n\t\t *\r\n\t\t * * `numbers` - Page number buttons only\r\n\t\t * * `simple` - 'Previous' and 'Next' buttons only\r\n\t\t * * 'simple_numbers` - 'Previous' and 'Next' buttons, plus page numbers\r\n\t\t * * `full` - 'First', 'Previous', 'Next' and 'Last' buttons\r\n\t\t * * `full_numbers` - 'First', 'Previous', 'Next' and 'Last' buttons, plus page numbers\r\n\t\t * * `first_last_numbers` - 'First' and 'Last' buttons, plus page numbers\r\n\t\t * \r\n\t\t * Further methods can be added using {@link DataTable.ext.oPagination}.\r\n\t\t * @type string\r\n\t\t * @default simple_numbers\r\n\t\t *\r\n\t\t * @dtopt Options\r\n\t\t * @name DataTable.defaults.pagingType\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function() {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"pagingType\": \"full_numbers\"\r\n\t\t * } );\r\n\t\t * } )\r\n\t\t */\r\n\t\t\"sPaginationType\": \"simple_numbers\",\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Enable horizontal scrolling. When a table is too wide to fit into a\r\n\t\t * certain layout, or you have a large number of columns in the table, you\r\n\t\t * can enable x-scrolling to show the table in a viewport, which can be\r\n\t\t * scrolled. This property can be `true` which will allow the table to\r\n\t\t * scroll horizontally when needed, or any CSS unit, or a number (in which\r\n\t\t * case it will be treated as a pixel measurement). Setting as simply `true`\r\n\t\t * is recommended.\r\n\t\t * @type boolean|string\r\n\t\t * @default <i>blank string - i.e. disabled</i>\r\n\t\t *\r\n\t\t * @dtopt Features\r\n\t\t * @name DataTable.defaults.scrollX\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function() {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"scrollX\": true,\r\n\t\t * \"scrollCollapse\": true\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\"sScrollX\": \"\",\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * This property can be used to force a DataTable to use more width than it\r\n\t\t * might otherwise do when x-scrolling is enabled. For example if you have a\r\n\t\t * table which requires to be well spaced, this parameter is useful for\r\n\t\t * \"over-sizing\" the table, and thus forcing scrolling. This property can by\r\n\t\t * any CSS unit, or a number (in which case it will be treated as a pixel\r\n\t\t * measurement).\r\n\t\t * @type string\r\n\t\t * @default <i>blank string - i.e. disabled</i>\r\n\t\t *\r\n\t\t * @dtopt Options\r\n\t\t * @name DataTable.defaults.scrollXInner\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function() {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"scrollX\": \"100%\",\r\n\t\t * \"scrollXInner\": \"110%\"\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\"sScrollXInner\": \"\",\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Enable vertical scrolling. Vertical scrolling will constrain the DataTable\r\n\t\t * to the given height, and enable scrolling for any data which overflows the\r\n\t\t * current viewport. This can be used as an alternative to paging to display\r\n\t\t * a lot of data in a small area (although paging and scrolling can both be\r\n\t\t * enabled at the same time). This property can be any CSS unit, or a number\r\n\t\t * (in which case it will be treated as a pixel measurement).\r\n\t\t * @type string\r\n\t\t * @default <i>blank string - i.e. disabled</i>\r\n\t\t *\r\n\t\t * @dtopt Features\r\n\t\t * @name DataTable.defaults.scrollY\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function() {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"scrollY\": \"200px\",\r\n\t\t * \"paginate\": false\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\"sScrollY\": \"\",\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * __Deprecated__ The functionality provided by this parameter has now been\r\n\t\t * superseded by that provided through `ajax`, which should be used instead.\r\n\t\t *\r\n\t\t * Set the HTTP method that is used to make the Ajax call for server-side\r\n\t\t * processing or Ajax sourced data.\r\n\t\t * @type string\r\n\t\t * @default GET\r\n\t\t *\r\n\t\t * @dtopt Options\r\n\t\t * @dtopt Server-side\r\n\t\t * @name DataTable.defaults.serverMethod\r\n\t\t *\r\n\t\t * @deprecated 1.10. Please use `ajax` for this functionality now.\r\n\t\t */\r\n\t\t\"sServerMethod\": \"GET\",\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * DataTables makes use of renderers when displaying HTML elements for\r\n\t\t * a table. These renderers can be added or modified by plug-ins to\r\n\t\t * generate suitable mark-up for a site. For example the Bootstrap\r\n\t\t * integration plug-in for DataTables uses a paging button renderer to\r\n\t\t * display pagination buttons in the mark-up required by Bootstrap.\r\n\t\t *\r\n\t\t * For further information about the renderers available see\r\n\t\t * DataTable.ext.renderer\r\n\t\t * @type string|object\r\n\t\t * @default null\r\n\t\t *\r\n\t\t * @name DataTable.defaults.renderer\r\n\t\t *\r\n\t\t */\r\n\t\t\"renderer\": null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Set the data property name that DataTables should use to get a row's id\r\n\t\t * to set as the `id` property in the node.\r\n\t\t * @type string\r\n\t\t * @default DT_RowId\r\n\t\t *\r\n\t\t * @name DataTable.defaults.rowId\r\n\t\t */\r\n\t\t\"rowId\": \"DT_RowId\"\r\n\t};\r\n\t\r\n\t_fnHungarianMap( DataTable.defaults );\r\n\t\r\n\t\r\n\t\r\n\t/*\r\n\t * Developer note - See note in model.defaults.js about the use of Hungarian\r\n\t * notation and camel case.\r\n\t */\r\n\t\r\n\t/**\r\n\t * Column options that can be given to DataTables at initialisation time.\r\n\t * @namespace\r\n\t */\r\n\tDataTable.defaults.column = {\r\n\t\t/**\r\n\t\t * Define which column(s) an order will occur on for this column. This\r\n\t\t * allows a column's ordering to take multiple columns into account when\r\n\t\t * doing a sort or use the data from a different column. For example first\r\n\t\t * name / last name columns make sense to do a multi-column sort over the\r\n\t\t * two columns.\r\n\t\t * @type array|int\r\n\t\t * @default null <i>Takes the value of the column index automatically</i>\r\n\t\t *\r\n\t\t * @name DataTable.defaults.column.orderData\r\n\t\t * @dtopt Columns\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Using `columnDefs`\r\n\t\t * $(document).ready( function() {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"columnDefs\": [\r\n\t\t * { \"orderData\": [ 0, 1 ], \"targets\": [ 0 ] },\r\n\t\t * { \"orderData\": [ 1, 0 ], \"targets\": [ 1 ] },\r\n\t\t * { \"orderData\": 2, \"targets\": [ 2 ] }\r\n\t\t * ]\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Using `columns`\r\n\t\t * $(document).ready( function() {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"columns\": [\r\n\t\t * { \"orderData\": [ 0, 1 ] },\r\n\t\t * { \"orderData\": [ 1, 0 ] },\r\n\t\t * { \"orderData\": 2 },\r\n\t\t * null,\r\n\t\t * null\r\n\t\t * ]\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\"aDataSort\": null,\r\n\t\t\"iDataSort\": -1,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * You can control the default ordering direction, and even alter the\r\n\t\t * behaviour of the sort handler (i.e. only allow ascending ordering etc)\r\n\t\t * using this parameter.\r\n\t\t * @type array\r\n\t\t * @default [ 'asc', 'desc' ]\r\n\t\t *\r\n\t\t * @name DataTable.defaults.column.orderSequence\r\n\t\t * @dtopt Columns\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Using `columnDefs`\r\n\t\t * $(document).ready( function() {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"columnDefs\": [\r\n\t\t * { \"orderSequence\": [ \"asc\" ], \"targets\": [ 1 ] },\r\n\t\t * { \"orderSequence\": [ \"desc\", \"asc\", \"asc\" ], \"targets\": [ 2 ] },\r\n\t\t * { \"orderSequence\": [ \"desc\" ], \"targets\": [ 3 ] }\r\n\t\t * ]\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Using `columns`\r\n\t\t * $(document).ready( function() {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"columns\": [\r\n\t\t * null,\r\n\t\t * { \"orderSequence\": [ \"asc\" ] },\r\n\t\t * { \"orderSequence\": [ \"desc\", \"asc\", \"asc\" ] },\r\n\t\t * { \"orderSequence\": [ \"desc\" ] },\r\n\t\t * null\r\n\t\t * ]\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\"asSorting\": [ 'asc', 'desc' ],\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Enable or disable filtering on the data in this column.\r\n\t\t * @type boolean\r\n\t\t * @default true\r\n\t\t *\r\n\t\t * @name DataTable.defaults.column.searchable\r\n\t\t * @dtopt Columns\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Using `columnDefs`\r\n\t\t * $(document).ready( function() {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"columnDefs\": [\r\n\t\t * { \"searchable\": false, \"targets\": [ 0 ] }\r\n\t\t * ] } );\r\n\t\t * } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Using `columns`\r\n\t\t * $(document).ready( function() {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"columns\": [\r\n\t\t * { \"searchable\": false },\r\n\t\t * null,\r\n\t\t * null,\r\n\t\t * null,\r\n\t\t * null\r\n\t\t * ] } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\"bSearchable\": true,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Enable or disable ordering on this column.\r\n\t\t * @type boolean\r\n\t\t * @default true\r\n\t\t *\r\n\t\t * @name DataTable.defaults.column.orderable\r\n\t\t * @dtopt Columns\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Using `columnDefs`\r\n\t\t * $(document).ready( function() {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"columnDefs\": [\r\n\t\t * { \"orderable\": false, \"targets\": [ 0 ] }\r\n\t\t * ] } );\r\n\t\t * } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Using `columns`\r\n\t\t * $(document).ready( function() {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"columns\": [\r\n\t\t * { \"orderable\": false },\r\n\t\t * null,\r\n\t\t * null,\r\n\t\t * null,\r\n\t\t * null\r\n\t\t * ] } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\"bSortable\": true,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Enable or disable the display of this column.\r\n\t\t * @type boolean\r\n\t\t * @default true\r\n\t\t *\r\n\t\t * @name DataTable.defaults.column.visible\r\n\t\t * @dtopt Columns\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Using `columnDefs`\r\n\t\t * $(document).ready( function() {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"columnDefs\": [\r\n\t\t * { \"visible\": false, \"targets\": [ 0 ] }\r\n\t\t * ] } );\r\n\t\t * } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Using `columns`\r\n\t\t * $(document).ready( function() {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"columns\": [\r\n\t\t * { \"visible\": false },\r\n\t\t * null,\r\n\t\t * null,\r\n\t\t * null,\r\n\t\t * null\r\n\t\t * ] } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\"bVisible\": true,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Developer definable function that is called whenever a cell is created (Ajax source,\r\n\t\t * etc) or processed for input (DOM source). This can be used as a compliment to mRender\r\n\t\t * allowing you to modify the DOM element (add background colour for example) when the\r\n\t\t * element is available.\r\n\t\t * @type function\r\n\t\t * @param {element} td The TD node that has been created\r\n\t\t * @param {*} cellData The Data for the cell\r\n\t\t * @param {array|object} rowData The data for the whole row\r\n\t\t * @param {int} row The row index for the aoData data store\r\n\t\t * @param {int} col The column index for aoColumns\r\n\t\t *\r\n\t\t * @name DataTable.defaults.column.createdCell\r\n\t\t * @dtopt Columns\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $(document).ready( function() {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"columnDefs\": [ {\r\n\t\t * \"targets\": [3],\r\n\t\t * \"createdCell\": function (td, cellData, rowData, row, col) {\r\n\t\t * if ( cellData == \"1.7\" ) {\r\n\t\t * $(td).css('color', 'blue')\r\n\t\t * }\r\n\t\t * }\r\n\t\t * } ]\r\n\t\t * });\r\n\t\t * } );\r\n\t\t */\r\n\t\t\"fnCreatedCell\": null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * This parameter has been replaced by `data` in DataTables to ensure naming\r\n\t\t * consistency. `dataProp` can still be used, as there is backwards\r\n\t\t * compatibility in DataTables for this option, but it is strongly\r\n\t\t * recommended that you use `data` in preference to `dataProp`.\r\n\t\t * @name DataTable.defaults.column.dataProp\r\n\t\t */\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * This property can be used to read data from any data source property,\r\n\t\t * including deeply nested objects / properties. `data` can be given in a\r\n\t\t * number of different ways which effect its behaviour:\r\n\t\t *\r\n\t\t * * `integer` - treated as an array index for the data source. This is the\r\n\t\t * default that DataTables uses (incrementally increased for each column).\r\n\t\t * * `string` - read an object property from the data source. There are\r\n\t\t * three 'special' options that can be used in the string to alter how\r\n\t\t * DataTables reads the data from the source object:\r\n\t\t * * `.` - Dotted Javascript notation. Just as you use a `.` in\r\n\t\t * Javascript to read from nested objects, so to can the options\r\n\t\t * specified in `data`. For example: `browser.version` or\r\n\t\t * `browser.name`. If your object parameter name contains a period, use\r\n\t\t * `\\\\` to escape it - i.e. `first\\\\.name`.\r\n\t\t * * `[]` - Array notation. DataTables can automatically combine data\r\n\t\t * from and array source, joining the data with the characters provided\r\n\t\t * between the two brackets. For example: `name[, ]` would provide a\r\n\t\t * comma-space separated list from the source array. If no characters\r\n\t\t * are provided between the brackets, the original array source is\r\n\t\t * returned.\r\n\t\t * * `()` - Function notation. Adding `()` to the end of a parameter will\r\n\t\t * execute a function of the name given. For example: `browser()` for a\r\n\t\t * simple function on the data source, `browser.version()` for a\r\n\t\t * function in a nested property or even `browser().version` to get an\r\n\t\t * object property if the function called returns an object. Note that\r\n\t\t * function notation is recommended for use in `render` rather than\r\n\t\t * `data` as it is much simpler to use as a renderer.\r\n\t\t * * `null` - use the original data source for the row rather than plucking\r\n\t\t * data directly from it. This action has effects on two other\r\n\t\t * initialisation options:\r\n\t\t * * `defaultContent` - When null is given as the `data` option and\r\n\t\t * `defaultContent` is specified for the column, the value defined by\r\n\t\t * `defaultContent` will be used for the cell.\r\n\t\t * * `render` - When null is used for the `data` option and the `render`\r\n\t\t * option is specified for the column, the whole data source for the\r\n\t\t * row is used for the renderer.\r\n\t\t * * `function` - the function given will be executed whenever DataTables\r\n\t\t * needs to set or get the data for a cell in the column. The function\r\n\t\t * takes three parameters:\r\n\t\t * * Parameters:\r\n\t\t * * `{array|object}` The data source for the row\r\n\t\t * * `{string}` The type call data requested - this will be 'set' when\r\n\t\t * setting data or 'filter', 'display', 'type', 'sort' or undefined\r\n\t\t * when gathering data. Note that when `undefined` is given for the\r\n\t\t * type DataTables expects to get the raw data for the object back<\r\n\t\t * * `{*}` Data to set when the second parameter is 'set'.\r\n\t\t * * Return:\r\n\t\t * * The return value from the function is not required when 'set' is\r\n\t\t * the type of call, but otherwise the return is what will be used\r\n\t\t * for the data requested.\r\n\t\t *\r\n\t\t * Note that `data` is a getter and setter option. If you just require\r\n\t\t * formatting of data for output, you will likely want to use `render` which\r\n\t\t * is simply a getter and thus simpler to use.\r\n\t\t *\r\n\t\t * Note that prior to DataTables 1.9.2 `data` was called `mDataProp`. The\r\n\t\t * name change reflects the flexibility of this property and is consistent\r\n\t\t * with the naming of mRender. If 'mDataProp' is given, then it will still\r\n\t\t * be used by DataTables, as it automatically maps the old name to the new\r\n\t\t * if required.\r\n\t\t *\r\n\t\t * @type string|int|function|null\r\n\t\t * @default null <i>Use automatically calculated column index</i>\r\n\t\t *\r\n\t\t * @name DataTable.defaults.column.data\r\n\t\t * @dtopt Columns\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Read table data from objects\r\n\t\t * // JSON structure for each row:\r\n\t\t * // {\r\n\t\t * // \"engine\": {value},\r\n\t\t * // \"browser\": {value},\r\n\t\t * // \"platform\": {value},\r\n\t\t * // \"version\": {value},\r\n\t\t * // \"grade\": {value}\r\n\t\t * // }\r\n\t\t * $(document).ready( function() {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"ajaxSource\": \"sources/objects.txt\",\r\n\t\t * \"columns\": [\r\n\t\t * { \"data\": \"engine\" },\r\n\t\t * { \"data\": \"browser\" },\r\n\t\t * { \"data\": \"platform\" },\r\n\t\t * { \"data\": \"version\" },\r\n\t\t * { \"data\": \"grade\" }\r\n\t\t * ]\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Read information from deeply nested objects\r\n\t\t * // JSON structure for each row:\r\n\t\t * // {\r\n\t\t * // \"engine\": {value},\r\n\t\t * // \"browser\": {value},\r\n\t\t * // \"platform\": {\r\n\t\t * // \"inner\": {value}\r\n\t\t * // },\r\n\t\t * // \"details\": [\r\n\t\t * // {value}, {value}\r\n\t\t * // ]\r\n\t\t * // }\r\n\t\t * $(document).ready( function() {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"ajaxSource\": \"sources/deep.txt\",\r\n\t\t * \"columns\": [\r\n\t\t * { \"data\": \"engine\" },\r\n\t\t * { \"data\": \"browser\" },\r\n\t\t * { \"data\": \"platform.inner\" },\r\n\t\t * { \"data\": \"details.0\" },\r\n\t\t * { \"data\": \"details.1\" }\r\n\t\t * ]\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Using `data` as a function to provide different information for\r\n\t\t * // sorting, filtering and display. In this case, currency (price)\r\n\t\t * $(document).ready( function() {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"columnDefs\": [ {\r\n\t\t * \"targets\": [ 0 ],\r\n\t\t * \"data\": function ( source, type, val ) {\r\n\t\t * if (type === 'set') {\r\n\t\t * source.price = val;\r\n\t\t * // Store the computed dislay and filter values for efficiency\r\n\t\t * source.price_display = val==\"\" ? \"\" : \"$\"+numberFormat(val);\r\n\t\t * source.price_filter = val==\"\" ? \"\" : \"$\"+numberFormat(val)+\" \"+val;\r\n\t\t * return;\r\n\t\t * }\r\n\t\t * else if (type === 'display') {\r\n\t\t * return source.price_display;\r\n\t\t * }\r\n\t\t * else if (type === 'filter') {\r\n\t\t * return source.price_filter;\r\n\t\t * }\r\n\t\t * // 'sort', 'type' and undefined all just use the integer\r\n\t\t * return source.price;\r\n\t\t * }\r\n\t\t * } ]\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Using default content\r\n\t\t * $(document).ready( function() {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"columnDefs\": [ {\r\n\t\t * \"targets\": [ 0 ],\r\n\t\t * \"data\": null,\r\n\t\t * \"defaultContent\": \"Click to edit\"\r\n\t\t * } ]\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Using array notation - outputting a list from an array\r\n\t\t * $(document).ready( function() {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"columnDefs\": [ {\r\n\t\t * \"targets\": [ 0 ],\r\n\t\t * \"data\": \"name[, ]\"\r\n\t\t * } ]\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t *\r\n\t\t */\r\n\t\t\"mData\": null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * This property is the rendering partner to `data` and it is suggested that\r\n\t\t * when you want to manipulate data for display (including filtering,\r\n\t\t * sorting etc) without altering the underlying data for the table, use this\r\n\t\t * property. `render` can be considered to be the the read only companion to\r\n\t\t * `data` which is read / write (then as such more complex). Like `data`\r\n\t\t * this option can be given in a number of different ways to effect its\r\n\t\t * behaviour:\r\n\t\t *\r\n\t\t * * `integer` - treated as an array index for the data source. This is the\r\n\t\t * default that DataTables uses (incrementally increased for each column).\r\n\t\t * * `string` - read an object property from the data source. There are\r\n\t\t * three 'special' options that can be used in the string to alter how\r\n\t\t * DataTables reads the data from the source object:\r\n\t\t * * `.` - Dotted Javascript notation. Just as you use a `.` in\r\n\t\t * Javascript to read from nested objects, so to can the options\r\n\t\t * specified in `data`. For example: `browser.version` or\r\n\t\t * `browser.name`. If your object parameter name contains a period, use\r\n\t\t * `\\\\` to escape it - i.e. `first\\\\.name`.\r\n\t\t * * `[]` - Array notation. DataTables can automatically combine data\r\n\t\t * from and array source, joining the data with the characters provided\r\n\t\t * between the two brackets. For example: `name[, ]` would provide a\r\n\t\t * comma-space separated list from the source array. If no characters\r\n\t\t * are provided between the brackets, the original array source is\r\n\t\t * returned.\r\n\t\t * * `()` - Function notation. Adding `()` to the end of a parameter will\r\n\t\t * execute a function of the name given. For example: `browser()` for a\r\n\t\t * simple function on the data source, `browser.version()` for a\r\n\t\t * function in a nested property or even `browser().version` to get an\r\n\t\t * object property if the function called returns an object.\r\n\t\t * * `object` - use different data for the different data types requested by\r\n\t\t * DataTables ('filter', 'display', 'type' or 'sort'). The property names\r\n\t\t * of the object is the data type the property refers to and the value can\r\n\t\t * defined using an integer, string or function using the same rules as\r\n\t\t * `render` normally does. Note that an `_` option _must_ be specified.\r\n\t\t * This is the default value to use if you haven't specified a value for\r\n\t\t * the data type requested by DataTables.\r\n\t\t * * `function` - the function given will be executed whenever DataTables\r\n\t\t * needs to set or get the data for a cell in the column. The function\r\n\t\t * takes three parameters:\r\n\t\t * * Parameters:\r\n\t\t * * {array|object} The data source for the row (based on `data`)\r\n\t\t * * {string} The type call data requested - this will be 'filter',\r\n\t\t * 'display', 'type' or 'sort'.\r\n\t\t * * {array|object} The full data source for the row (not based on\r\n\t\t * `data`)\r\n\t\t * * Return:\r\n\t\t * * The return value from the function is what will be used for the\r\n\t\t * data requested.\r\n\t\t *\r\n\t\t * @type string|int|function|object|null\r\n\t\t * @default null Use the data source value.\r\n\t\t *\r\n\t\t * @name DataTable.defaults.column.render\r\n\t\t * @dtopt Columns\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Create a comma separated list from an array of objects\r\n\t\t * $(document).ready( function() {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"ajaxSource\": \"sources/deep.txt\",\r\n\t\t * \"columns\": [\r\n\t\t * { \"data\": \"engine\" },\r\n\t\t * { \"data\": \"browser\" },\r\n\t\t * {\r\n\t\t * \"data\": \"platform\",\r\n\t\t * \"render\": \"[, ].name\"\r\n\t\t * }\r\n\t\t * ]\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Execute a function to obtain data\r\n\t\t * $(document).ready( function() {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"columnDefs\": [ {\r\n\t\t * \"targets\": [ 0 ],\r\n\t\t * \"data\": null, // Use the full data source object for the renderer's source\r\n\t\t * \"render\": \"browserName()\"\r\n\t\t * } ]\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // As an object, extracting different data for the different types\r\n\t\t * // This would be used with a data source such as:\r\n\t\t * // { \"phone\": 5552368, \"phone_filter\": \"5552368 555-2368\", \"phone_display\": \"555-2368\" }\r\n\t\t * // Here the `phone` integer is used for sorting and type detection, while `phone_filter`\r\n\t\t * // (which has both forms) is used for filtering for if a user inputs either format, while\r\n\t\t * // the formatted phone number is the one that is shown in the table.\r\n\t\t * $(document).ready( function() {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"columnDefs\": [ {\r\n\t\t * \"targets\": [ 0 ],\r\n\t\t * \"data\": null, // Use the full data source object for the renderer's source\r\n\t\t * \"render\": {\r\n\t\t * \"_\": \"phone\",\r\n\t\t * \"filter\": \"phone_filter\",\r\n\t\t * \"display\": \"phone_display\"\r\n\t\t * }\r\n\t\t * } ]\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Use as a function to create a link from the data source\r\n\t\t * $(document).ready( function() {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"columnDefs\": [ {\r\n\t\t * \"targets\": [ 0 ],\r\n\t\t * \"data\": \"download_link\",\r\n\t\t * \"render\": function ( data, type, full ) {\r\n\t\t * return '<a href=\"'+data+'\">Download</a>';\r\n\t\t * }\r\n\t\t * } ]\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\"mRender\": null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Change the cell type created for the column - either TD cells or TH cells. This\r\n\t\t * can be useful as TH cells have semantic meaning in the table body, allowing them\r\n\t\t * to act as a header for a row (you may wish to add scope='row' to the TH elements).\r\n\t\t * @type string\r\n\t\t * @default td\r\n\t\t *\r\n\t\t * @name DataTable.defaults.column.cellType\r\n\t\t * @dtopt Columns\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Make the first column use TH cells\r\n\t\t * $(document).ready( function() {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"columnDefs\": [ {\r\n\t\t * \"targets\": [ 0 ],\r\n\t\t * \"cellType\": \"th\"\r\n\t\t * } ]\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\"sCellType\": \"td\",\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Class to give to each cell in this column.\r\n\t\t * @type string\r\n\t\t * @default <i>Empty string</i>\r\n\t\t *\r\n\t\t * @name DataTable.defaults.column.class\r\n\t\t * @dtopt Columns\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Using `columnDefs`\r\n\t\t * $(document).ready( function() {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"columnDefs\": [\r\n\t\t * { \"class\": \"my_class\", \"targets\": [ 0 ] }\r\n\t\t * ]\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Using `columns`\r\n\t\t * $(document).ready( function() {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"columns\": [\r\n\t\t * { \"class\": \"my_class\" },\r\n\t\t * null,\r\n\t\t * null,\r\n\t\t * null,\r\n\t\t * null\r\n\t\t * ]\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\"sClass\": \"\",\r\n\t\r\n\t\t/**\r\n\t\t * When DataTables calculates the column widths to assign to each column,\r\n\t\t * it finds the longest string in each column and then constructs a\r\n\t\t * temporary table and reads the widths from that. The problem with this\r\n\t\t * is that \"mmm\" is much wider then \"iiii\", but the latter is a longer\r\n\t\t * string - thus the calculation can go wrong (doing it properly and putting\r\n\t\t * it into an DOM object and measuring that is horribly(!) slow). Thus as\r\n\t\t * a \"work around\" we provide this option. It will append its value to the\r\n\t\t * text that is found to be the longest string for the column - i.e. padding.\r\n\t\t * Generally you shouldn't need this!\r\n\t\t * @type string\r\n\t\t * @default <i>Empty string<i>\r\n\t\t *\r\n\t\t * @name DataTable.defaults.column.contentPadding\r\n\t\t * @dtopt Columns\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Using `columns`\r\n\t\t * $(document).ready( function() {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"columns\": [\r\n\t\t * null,\r\n\t\t * null,\r\n\t\t * null,\r\n\t\t * {\r\n\t\t * \"contentPadding\": \"mmm\"\r\n\t\t * }\r\n\t\t * ]\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\"sContentPadding\": \"\",\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Allows a default value to be given for a column's data, and will be used\r\n\t\t * whenever a null data source is encountered (this can be because `data`\r\n\t\t * is set to null, or because the data source itself is null).\r\n\t\t * @type string\r\n\t\t * @default null\r\n\t\t *\r\n\t\t * @name DataTable.defaults.column.defaultContent\r\n\t\t * @dtopt Columns\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Using `columnDefs`\r\n\t\t * $(document).ready( function() {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"columnDefs\": [\r\n\t\t * {\r\n\t\t * \"data\": null,\r\n\t\t * \"defaultContent\": \"Edit\",\r\n\t\t * \"targets\": [ -1 ]\r\n\t\t * }\r\n\t\t * ]\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Using `columns`\r\n\t\t * $(document).ready( function() {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"columns\": [\r\n\t\t * null,\r\n\t\t * null,\r\n\t\t * null,\r\n\t\t * {\r\n\t\t * \"data\": null,\r\n\t\t * \"defaultContent\": \"Edit\"\r\n\t\t * }\r\n\t\t * ]\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\"sDefaultContent\": null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * This parameter is only used in DataTables' server-side processing. It can\r\n\t\t * be exceptionally useful to know what columns are being displayed on the\r\n\t\t * client side, and to map these to database fields. When defined, the names\r\n\t\t * also allow DataTables to reorder information from the server if it comes\r\n\t\t * back in an unexpected order (i.e. if you switch your columns around on the\r\n\t\t * client-side, your server-side code does not also need updating).\r\n\t\t * @type string\r\n\t\t * @default <i>Empty string</i>\r\n\t\t *\r\n\t\t * @name DataTable.defaults.column.name\r\n\t\t * @dtopt Columns\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Using `columnDefs`\r\n\t\t * $(document).ready( function() {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"columnDefs\": [\r\n\t\t * { \"name\": \"engine\", \"targets\": [ 0 ] },\r\n\t\t * { \"name\": \"browser\", \"targets\": [ 1 ] },\r\n\t\t * { \"name\": \"platform\", \"targets\": [ 2 ] },\r\n\t\t * { \"name\": \"version\", \"targets\": [ 3 ] },\r\n\t\t * { \"name\": \"grade\", \"targets\": [ 4 ] }\r\n\t\t * ]\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Using `columns`\r\n\t\t * $(document).ready( function() {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"columns\": [\r\n\t\t * { \"name\": \"engine\" },\r\n\t\t * { \"name\": \"browser\" },\r\n\t\t * { \"name\": \"platform\" },\r\n\t\t * { \"name\": \"version\" },\r\n\t\t * { \"name\": \"grade\" }\r\n\t\t * ]\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\"sName\": \"\",\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Defines a data source type for the ordering which can be used to read\r\n\t\t * real-time information from the table (updating the internally cached\r\n\t\t * version) prior to ordering. This allows ordering to occur on user\r\n\t\t * editable elements such as form inputs.\r\n\t\t * @type string\r\n\t\t * @default std\r\n\t\t *\r\n\t\t * @name DataTable.defaults.column.orderDataType\r\n\t\t * @dtopt Columns\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Using `columnDefs`\r\n\t\t * $(document).ready( function() {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"columnDefs\": [\r\n\t\t * { \"orderDataType\": \"dom-text\", \"targets\": [ 2, 3 ] },\r\n\t\t * { \"type\": \"numeric\", \"targets\": [ 3 ] },\r\n\t\t * { \"orderDataType\": \"dom-select\", \"targets\": [ 4 ] },\r\n\t\t * { \"orderDataType\": \"dom-checkbox\", \"targets\": [ 5 ] }\r\n\t\t * ]\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Using `columns`\r\n\t\t * $(document).ready( function() {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"columns\": [\r\n\t\t * null,\r\n\t\t * null,\r\n\t\t * { \"orderDataType\": \"dom-text\" },\r\n\t\t * { \"orderDataType\": \"dom-text\", \"type\": \"numeric\" },\r\n\t\t * { \"orderDataType\": \"dom-select\" },\r\n\t\t * { \"orderDataType\": \"dom-checkbox\" }\r\n\t\t * ]\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\"sSortDataType\": \"std\",\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * The title of this column.\r\n\t\t * @type string\r\n\t\t * @default null <i>Derived from the 'TH' value for this column in the\r\n\t\t * original HTML table.</i>\r\n\t\t *\r\n\t\t * @name DataTable.defaults.column.title\r\n\t\t * @dtopt Columns\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Using `columnDefs`\r\n\t\t * $(document).ready( function() {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"columnDefs\": [\r\n\t\t * { \"title\": \"My column title\", \"targets\": [ 0 ] }\r\n\t\t * ]\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Using `columns`\r\n\t\t * $(document).ready( function() {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"columns\": [\r\n\t\t * { \"title\": \"My column title\" },\r\n\t\t * null,\r\n\t\t * null,\r\n\t\t * null,\r\n\t\t * null\r\n\t\t * ]\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\"sTitle\": null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * The type allows you to specify how the data for this column will be\r\n\t\t * ordered. Four types (string, numeric, date and html (which will strip\r\n\t\t * HTML tags before ordering)) are currently available. Note that only date\r\n\t\t * formats understood by Javascript's Date() object will be accepted as type\r\n\t\t * date. For example: \"Mar 26, 2008 5:03 PM\". May take the values: 'string',\r\n\t\t * 'numeric', 'date' or 'html' (by default). Further types can be adding\r\n\t\t * through plug-ins.\r\n\t\t * @type string\r\n\t\t * @default null <i>Auto-detected from raw data</i>\r\n\t\t *\r\n\t\t * @name DataTable.defaults.column.type\r\n\t\t * @dtopt Columns\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Using `columnDefs`\r\n\t\t * $(document).ready( function() {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"columnDefs\": [\r\n\t\t * { \"type\": \"html\", \"targets\": [ 0 ] }\r\n\t\t * ]\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Using `columns`\r\n\t\t * $(document).ready( function() {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"columns\": [\r\n\t\t * { \"type\": \"html\" },\r\n\t\t * null,\r\n\t\t * null,\r\n\t\t * null,\r\n\t\t * null\r\n\t\t * ]\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\"sType\": null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Defining the width of the column, this parameter may take any CSS value\r\n\t\t * (3em, 20px etc). DataTables applies 'smart' widths to columns which have not\r\n\t\t * been given a specific width through this interface ensuring that the table\r\n\t\t * remains readable.\r\n\t\t * @type string\r\n\t\t * @default null <i>Automatic</i>\r\n\t\t *\r\n\t\t * @name DataTable.defaults.column.width\r\n\t\t * @dtopt Columns\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Using `columnDefs`\r\n\t\t * $(document).ready( function() {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"columnDefs\": [\r\n\t\t * { \"width\": \"20%\", \"targets\": [ 0 ] }\r\n\t\t * ]\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Using `columns`\r\n\t\t * $(document).ready( function() {\r\n\t\t * $('#example').dataTable( {\r\n\t\t * \"columns\": [\r\n\t\t * { \"width\": \"20%\" },\r\n\t\t * null,\r\n\t\t * null,\r\n\t\t * null,\r\n\t\t * null\r\n\t\t * ]\r\n\t\t * } );\r\n\t\t * } );\r\n\t\t */\r\n\t\t\"sWidth\": null\r\n\t};\r\n\t\r\n\t_fnHungarianMap( DataTable.defaults.column );\r\n\t\r\n\t\r\n\t\r\n\t/**\r\n\t * DataTables settings object - this holds all the information needed for a\r\n\t * given table, including configuration, data and current application of the\r\n\t * table options. DataTables does not have a single instance for each DataTable\r\n\t * with the settings attached to that instance, but rather instances of the\r\n\t * DataTable \"class\" are created on-the-fly as needed (typically by a\r\n\t * $().dataTable() call) and the settings object is then applied to that\r\n\t * instance.\r\n\t *\r\n\t * Note that this object is related to {@link DataTable.defaults} but this\r\n\t * one is the internal data store for DataTables's cache of columns. It should\r\n\t * NOT be manipulated outside of DataTables. Any configuration should be done\r\n\t * through the initialisation options.\r\n\t * @namespace\r\n\t * @todo Really should attach the settings object to individual instances so we\r\n\t * don't need to create new instances on each $().dataTable() call (if the\r\n\t * table already exists). It would also save passing oSettings around and\r\n\t * into every single function. However, this is a very significant\r\n\t * architecture change for DataTables and will almost certainly break\r\n\t * backwards compatibility with older installations. This is something that\r\n\t * will be done in 2.0.\r\n\t */\r\n\tDataTable.models.oSettings = {\r\n\t\t/**\r\n\t\t * Primary features of DataTables and their enablement state.\r\n\t\t * @namespace\r\n\t\t */\r\n\t\t\"oFeatures\": {\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Flag to say if DataTables should automatically try to calculate the\r\n\t\t\t * optimum table and columns widths (true) or not (false).\r\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t\t * @type boolean\r\n\t\t\t */\r\n\t\t\t\"bAutoWidth\": null,\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Delay the creation of TR and TD elements until they are actually\r\n\t\t\t * needed by a driven page draw. This can give a significant speed\r\n\t\t\t * increase for Ajax source and Javascript source data, but makes no\r\n\t\t\t * difference at all fro DOM and server-side processing tables.\r\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t\t * @type boolean\r\n\t\t\t */\r\n\t\t\t\"bDeferRender\": null,\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Enable filtering on the table or not. Note that if this is disabled\r\n\t\t\t * then there is no filtering at all on the table, including fnFilter.\r\n\t\t\t * To just remove the filtering input use sDom and remove the 'f' option.\r\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t\t * @type boolean\r\n\t\t\t */\r\n\t\t\t\"bFilter\": null,\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Table information element (the 'Showing x of y records' div) enable\r\n\t\t\t * flag.\r\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t\t * @type boolean\r\n\t\t\t */\r\n\t\t\t\"bInfo\": null,\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Present a user control allowing the end user to change the page size\r\n\t\t\t * when pagination is enabled.\r\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t\t * @type boolean\r\n\t\t\t */\r\n\t\t\t\"bLengthChange\": null,\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Pagination enabled or not. Note that if this is disabled then length\r\n\t\t\t * changing must also be disabled.\r\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t\t * @type boolean\r\n\t\t\t */\r\n\t\t\t\"bPaginate\": null,\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Processing indicator enable flag whenever DataTables is enacting a\r\n\t\t\t * user request - typically an Ajax request for server-side processing.\r\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t\t * @type boolean\r\n\t\t\t */\r\n\t\t\t\"bProcessing\": null,\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Server-side processing enabled flag - when enabled DataTables will\r\n\t\t\t * get all data from the server for every draw - there is no filtering,\r\n\t\t\t * sorting or paging done on the client-side.\r\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t\t * @type boolean\r\n\t\t\t */\r\n\t\t\t\"bServerSide\": null,\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Sorting enablement flag.\r\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t\t * @type boolean\r\n\t\t\t */\r\n\t\t\t\"bSort\": null,\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Multi-column sorting\r\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t\t * @type boolean\r\n\t\t\t */\r\n\t\t\t\"bSortMulti\": null,\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Apply a class to the columns which are being sorted to provide a\r\n\t\t\t * visual highlight or not. This can slow things down when enabled since\r\n\t\t\t * there is a lot of DOM interaction.\r\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t\t * @type boolean\r\n\t\t\t */\r\n\t\t\t\"bSortClasses\": null,\r\n\t\r\n\t\t\t/**\r\n\t\t\t * State saving enablement flag.\r\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t\t * @type boolean\r\n\t\t\t */\r\n\t\t\t\"bStateSave\": null\r\n\t\t},\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Scrolling settings for a table.\r\n\t\t * @namespace\r\n\t\t */\r\n\t\t\"oScroll\": {\r\n\t\t\t/**\r\n\t\t\t * When the table is shorter in height than sScrollY, collapse the\r\n\t\t\t * table container down to the height of the table (when true).\r\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t\t * @type boolean\r\n\t\t\t */\r\n\t\t\t\"bCollapse\": null,\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Width of the scrollbar for the web-browser's platform. Calculated\r\n\t\t\t * during table initialisation.\r\n\t\t\t * @type int\r\n\t\t\t * @default 0\r\n\t\t\t */\r\n\t\t\t\"iBarWidth\": 0,\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Viewport width for horizontal scrolling. Horizontal scrolling is\r\n\t\t\t * disabled if an empty string.\r\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t\t * @type string\r\n\t\t\t */\r\n\t\t\t\"sX\": null,\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Width to expand the table to when using x-scrolling. Typically you\r\n\t\t\t * should not need to use this.\r\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t\t * @type string\r\n\t\t\t * @deprecated\r\n\t\t\t */\r\n\t\t\t\"sXInner\": null,\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Viewport height for vertical scrolling. Vertical scrolling is disabled\r\n\t\t\t * if an empty string.\r\n\t\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t\t * @type string\r\n\t\t\t */\r\n\t\t\t\"sY\": null\r\n\t\t},\r\n\t\r\n\t\t/**\r\n\t\t * Language information for the table.\r\n\t\t * @namespace\r\n\t\t * @extends DataTable.defaults.oLanguage\r\n\t\t */\r\n\t\t\"oLanguage\": {\r\n\t\t\t/**\r\n\t\t\t * Information callback function. See\r\n\t\t\t * {@link DataTable.defaults.fnInfoCallback}\r\n\t\t\t * @type function\r\n\t\t\t * @default null\r\n\t\t\t */\r\n\t\t\t\"fnInfoCallback\": null\r\n\t\t},\r\n\t\r\n\t\t/**\r\n\t\t * Browser support parameters\r\n\t\t * @namespace\r\n\t\t */\r\n\t\t\"oBrowser\": {\r\n\t\t\t/**\r\n\t\t\t * Indicate if the browser incorrectly calculates width:100% inside a\r\n\t\t\t * scrolling element (IE6/7)\r\n\t\t\t * @type boolean\r\n\t\t\t * @default false\r\n\t\t\t */\r\n\t\t\t\"bScrollOversize\": false,\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Determine if the vertical scrollbar is on the right or left of the\r\n\t\t\t * scrolling container - needed for rtl language layout, although not\r\n\t\t\t * all browsers move the scrollbar (Safari).\r\n\t\t\t * @type boolean\r\n\t\t\t * @default false\r\n\t\t\t */\r\n\t\t\t\"bScrollbarLeft\": false,\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Flag for if `getBoundingClientRect` is fully supported or not\r\n\t\t\t * @type boolean\r\n\t\t\t * @default false\r\n\t\t\t */\r\n\t\t\t\"bBounding\": false,\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Browser scrollbar width\r\n\t\t\t * @type integer\r\n\t\t\t * @default 0\r\n\t\t\t */\r\n\t\t\t\"barWidth\": 0\r\n\t\t},\r\n\t\r\n\t\r\n\t\t\"ajax\": null,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Array referencing the nodes which are used for the features. The\r\n\t\t * parameters of this object match what is allowed by sDom - i.e.\r\n\t\t * <ul>\r\n\t\t * <li>'l' - Length changing</li>\r\n\t\t * <li>'f' - Filtering input</li>\r\n\t\t * <li>'t' - The table!</li>\r\n\t\t * <li>'i' - Information</li>\r\n\t\t * <li>'p' - Pagination</li>\r\n\t\t * <li>'r' - pRocessing</li>\r\n\t\t * </ul>\r\n\t\t * @type array\r\n\t\t * @default []\r\n\t\t */\r\n\t\t\"aanFeatures\": [],\r\n\t\r\n\t\t/**\r\n\t\t * Store data information - see {@link DataTable.models.oRow} for detailed\r\n\t\t * information.\r\n\t\t * @type array\r\n\t\t * @default []\r\n\t\t */\r\n\t\t\"aoData\": [],\r\n\t\r\n\t\t/**\r\n\t\t * Array of indexes which are in the current display (after filtering etc)\r\n\t\t * @type array\r\n\t\t * @default []\r\n\t\t */\r\n\t\t\"aiDisplay\": [],\r\n\t\r\n\t\t/**\r\n\t\t * Array of indexes for display - no filtering\r\n\t\t * @type array\r\n\t\t * @default []\r\n\t\t */\r\n\t\t\"aiDisplayMaster\": [],\r\n\t\r\n\t\t/**\r\n\t\t * Map of row ids to data indexes\r\n\t\t * @type object\r\n\t\t * @default {}\r\n\t\t */\r\n\t\t\"aIds\": {},\r\n\t\r\n\t\t/**\r\n\t\t * Store information about each column that is in use\r\n\t\t * @type array\r\n\t\t * @default []\r\n\t\t */\r\n\t\t\"aoColumns\": [],\r\n\t\r\n\t\t/**\r\n\t\t * Store information about the table's header\r\n\t\t * @type array\r\n\t\t * @default []\r\n\t\t */\r\n\t\t\"aoHeader\": [],\r\n\t\r\n\t\t/**\r\n\t\t * Store information about the table's footer\r\n\t\t * @type array\r\n\t\t * @default []\r\n\t\t */\r\n\t\t\"aoFooter\": [],\r\n\t\r\n\t\t/**\r\n\t\t * Store the applied global search information in case we want to force a\r\n\t\t * research or compare the old search to a new one.\r\n\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t * @namespace\r\n\t\t * @extends DataTable.models.oSearch\r\n\t\t */\r\n\t\t\"oPreviousSearch\": {},\r\n\t\r\n\t\t/**\r\n\t\t * Store the applied search for each column - see\r\n\t\t * {@link DataTable.models.oSearch} for the format that is used for the\r\n\t\t * filtering information for each column.\r\n\t\t * @type array\r\n\t\t * @default []\r\n\t\t */\r\n\t\t\"aoPreSearchCols\": [],\r\n\t\r\n\t\t/**\r\n\t\t * Sorting that is applied to the table. Note that the inner arrays are\r\n\t\t * used in the following manner:\r\n\t\t * <ul>\r\n\t\t * <li>Index 0 - column number</li>\r\n\t\t * <li>Index 1 - current sorting direction</li>\r\n\t\t * </ul>\r\n\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t * @type array\r\n\t\t * @todo These inner arrays should really be objects\r\n\t\t */\r\n\t\t\"aaSorting\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Sorting that is always applied to the table (i.e. prefixed in front of\r\n\t\t * aaSorting).\r\n\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t * @type array\r\n\t\t * @default []\r\n\t\t */\r\n\t\t\"aaSortingFixed\": [],\r\n\t\r\n\t\t/**\r\n\t\t * Classes to use for the striping of a table.\r\n\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t * @type array\r\n\t\t * @default []\r\n\t\t */\r\n\t\t\"asStripeClasses\": null,\r\n\t\r\n\t\t/**\r\n\t\t * If restoring a table - we should restore its striping classes as well\r\n\t\t * @type array\r\n\t\t * @default []\r\n\t\t */\r\n\t\t\"asDestroyStripes\": [],\r\n\t\r\n\t\t/**\r\n\t\t * If restoring a table - we should restore its width\r\n\t\t * @type int\r\n\t\t * @default 0\r\n\t\t */\r\n\t\t\"sDestroyWidth\": 0,\r\n\t\r\n\t\t/**\r\n\t\t * Callback functions array for every time a row is inserted (i.e. on a draw).\r\n\t\t * @type array\r\n\t\t * @default []\r\n\t\t */\r\n\t\t\"aoRowCallback\": [],\r\n\t\r\n\t\t/**\r\n\t\t * Callback functions for the header on each draw.\r\n\t\t * @type array\r\n\t\t * @default []\r\n\t\t */\r\n\t\t\"aoHeaderCallback\": [],\r\n\t\r\n\t\t/**\r\n\t\t * Callback function for the footer on each draw.\r\n\t\t * @type array\r\n\t\t * @default []\r\n\t\t */\r\n\t\t\"aoFooterCallback\": [],\r\n\t\r\n\t\t/**\r\n\t\t * Array of callback functions for draw callback functions\r\n\t\t * @type array\r\n\t\t * @default []\r\n\t\t */\r\n\t\t\"aoDrawCallback\": [],\r\n\t\r\n\t\t/**\r\n\t\t * Array of callback functions for row created function\r\n\t\t * @type array\r\n\t\t * @default []\r\n\t\t */\r\n\t\t\"aoRowCreatedCallback\": [],\r\n\t\r\n\t\t/**\r\n\t\t * Callback functions for just before the table is redrawn. A return of\r\n\t\t * false will be used to cancel the draw.\r\n\t\t * @type array\r\n\t\t * @default []\r\n\t\t */\r\n\t\t\"aoPreDrawCallback\": [],\r\n\t\r\n\t\t/**\r\n\t\t * Callback functions for when the table has been initialised.\r\n\t\t * @type array\r\n\t\t * @default []\r\n\t\t */\r\n\t\t\"aoInitComplete\": [],\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Callbacks for modifying the settings to be stored for state saving, prior to\r\n\t\t * saving state.\r\n\t\t * @type array\r\n\t\t * @default []\r\n\t\t */\r\n\t\t\"aoStateSaveParams\": [],\r\n\t\r\n\t\t/**\r\n\t\t * Callbacks for modifying the settings that have been stored for state saving\r\n\t\t * prior to using the stored values to restore the state.\r\n\t\t * @type array\r\n\t\t * @default []\r\n\t\t */\r\n\t\t\"aoStateLoadParams\": [],\r\n\t\r\n\t\t/**\r\n\t\t * Callbacks for operating on the settings object once the saved state has been\r\n\t\t * loaded\r\n\t\t * @type array\r\n\t\t * @default []\r\n\t\t */\r\n\t\t\"aoStateLoaded\": [],\r\n\t\r\n\t\t/**\r\n\t\t * Cache the table ID for quick access\r\n\t\t * @type string\r\n\t\t * @default <i>Empty string</i>\r\n\t\t */\r\n\t\t\"sTableId\": \"\",\r\n\t\r\n\t\t/**\r\n\t\t * The TABLE node for the main table\r\n\t\t * @type node\r\n\t\t * @default null\r\n\t\t */\r\n\t\t\"nTable\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Permanent ref to the thead element\r\n\t\t * @type node\r\n\t\t * @default null\r\n\t\t */\r\n\t\t\"nTHead\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Permanent ref to the tfoot element - if it exists\r\n\t\t * @type node\r\n\t\t * @default null\r\n\t\t */\r\n\t\t\"nTFoot\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Permanent ref to the tbody element\r\n\t\t * @type node\r\n\t\t * @default null\r\n\t\t */\r\n\t\t\"nTBody\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Cache the wrapper node (contains all DataTables controlled elements)\r\n\t\t * @type node\r\n\t\t * @default null\r\n\t\t */\r\n\t\t\"nTableWrapper\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Indicate if when using server-side processing the loading of data\r\n\t\t * should be deferred until the second draw.\r\n\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t * @type boolean\r\n\t\t * @default false\r\n\t\t */\r\n\t\t\"bDeferLoading\": false,\r\n\t\r\n\t\t/**\r\n\t\t * Indicate if all required information has been read in\r\n\t\t * @type boolean\r\n\t\t * @default false\r\n\t\t */\r\n\t\t\"bInitialised\": false,\r\n\t\r\n\t\t/**\r\n\t\t * Information about open rows. Each object in the array has the parameters\r\n\t\t * 'nTr' and 'nParent'\r\n\t\t * @type array\r\n\t\t * @default []\r\n\t\t */\r\n\t\t\"aoOpenRows\": [],\r\n\t\r\n\t\t/**\r\n\t\t * Dictate the positioning of DataTables' control elements - see\r\n\t\t * {@link DataTable.model.oInit.sDom}.\r\n\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t * @type string\r\n\t\t * @default null\r\n\t\t */\r\n\t\t\"sDom\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Search delay (in mS)\r\n\t\t * @type integer\r\n\t\t * @default null\r\n\t\t */\r\n\t\t\"searchDelay\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Which type of pagination should be used.\r\n\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t * @type string\r\n\t\t * @default two_button\r\n\t\t */\r\n\t\t\"sPaginationType\": \"two_button\",\r\n\t\r\n\t\t/**\r\n\t\t * The state duration (for `stateSave`) in seconds.\r\n\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t * @type int\r\n\t\t * @default 0\r\n\t\t */\r\n\t\t\"iStateDuration\": 0,\r\n\t\r\n\t\t/**\r\n\t\t * Array of callback functions for state saving. Each array element is an\r\n\t\t * object with the following parameters:\r\n\t\t * <ul>\r\n\t\t * <li>function:fn - function to call. Takes two parameters, oSettings\r\n\t\t * and the JSON string to save that has been thus far created. Returns\r\n\t\t * a JSON string to be inserted into a json object\r\n\t\t * (i.e. '\"param\": [ 0, 1, 2]')</li>\r\n\t\t * <li>string:sName - name of callback</li>\r\n\t\t * </ul>\r\n\t\t * @type array\r\n\t\t * @default []\r\n\t\t */\r\n\t\t\"aoStateSave\": [],\r\n\t\r\n\t\t/**\r\n\t\t * Array of callback functions for state loading. Each array element is an\r\n\t\t * object with the following parameters:\r\n\t\t * <ul>\r\n\t\t * <li>function:fn - function to call. Takes two parameters, oSettings\r\n\t\t * and the object stored. May return false to cancel state loading</li>\r\n\t\t * <li>string:sName - name of callback</li>\r\n\t\t * </ul>\r\n\t\t * @type array\r\n\t\t * @default []\r\n\t\t */\r\n\t\t\"aoStateLoad\": [],\r\n\t\r\n\t\t/**\r\n\t\t * State that was saved. Useful for back reference\r\n\t\t * @type object\r\n\t\t * @default null\r\n\t\t */\r\n\t\t\"oSavedState\": null,\r\n\t\r\n\t\t/**\r\n\t\t * State that was loaded. Useful for back reference\r\n\t\t * @type object\r\n\t\t * @default null\r\n\t\t */\r\n\t\t\"oLoadedState\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Source url for AJAX data for the table.\r\n\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t * @type string\r\n\t\t * @default null\r\n\t\t */\r\n\t\t\"sAjaxSource\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Property from a given object from which to read the table data from. This\r\n\t\t * can be an empty string (when not server-side processing), in which case\r\n\t\t * it is assumed an an array is given directly.\r\n\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t * @type string\r\n\t\t */\r\n\t\t\"sAjaxDataProp\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Note if draw should be blocked while getting data\r\n\t\t * @type boolean\r\n\t\t * @default true\r\n\t\t */\r\n\t\t\"bAjaxDataGet\": true,\r\n\t\r\n\t\t/**\r\n\t\t * The last jQuery XHR object that was used for server-side data gathering.\r\n\t\t * This can be used for working with the XHR information in one of the\r\n\t\t * callbacks\r\n\t\t * @type object\r\n\t\t * @default null\r\n\t\t */\r\n\t\t\"jqXHR\": null,\r\n\t\r\n\t\t/**\r\n\t\t * JSON returned from the server in the last Ajax request\r\n\t\t * @type object\r\n\t\t * @default undefined\r\n\t\t */\r\n\t\t\"json\": undefined,\r\n\t\r\n\t\t/**\r\n\t\t * Data submitted as part of the last Ajax request\r\n\t\t * @type object\r\n\t\t * @default undefined\r\n\t\t */\r\n\t\t\"oAjaxData\": undefined,\r\n\t\r\n\t\t/**\r\n\t\t * Function to get the server-side data.\r\n\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t * @type function\r\n\t\t */\r\n\t\t\"fnServerData\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Functions which are called prior to sending an Ajax request so extra\r\n\t\t * parameters can easily be sent to the server\r\n\t\t * @type array\r\n\t\t * @default []\r\n\t\t */\r\n\t\t\"aoServerParams\": [],\r\n\t\r\n\t\t/**\r\n\t\t * Send the XHR HTTP method - GET or POST (could be PUT or DELETE if\r\n\t\t * required).\r\n\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t * @type string\r\n\t\t */\r\n\t\t\"sServerMethod\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Format numbers for display.\r\n\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t * @type function\r\n\t\t */\r\n\t\t\"fnFormatNumber\": null,\r\n\t\r\n\t\t/**\r\n\t\t * List of options that can be used for the user selectable length menu.\r\n\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t * @type array\r\n\t\t * @default []\r\n\t\t */\r\n\t\t\"aLengthMenu\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Counter for the draws that the table does. Also used as a tracker for\r\n\t\t * server-side processing\r\n\t\t * @type int\r\n\t\t * @default 0\r\n\t\t */\r\n\t\t\"iDraw\": 0,\r\n\t\r\n\t\t/**\r\n\t\t * Indicate if a redraw is being done - useful for Ajax\r\n\t\t * @type boolean\r\n\t\t * @default false\r\n\t\t */\r\n\t\t\"bDrawing\": false,\r\n\t\r\n\t\t/**\r\n\t\t * Draw index (iDraw) of the last error when parsing the returned data\r\n\t\t * @type int\r\n\t\t * @default -1\r\n\t\t */\r\n\t\t\"iDrawError\": -1,\r\n\t\r\n\t\t/**\r\n\t\t * Paging display length\r\n\t\t * @type int\r\n\t\t * @default 10\r\n\t\t */\r\n\t\t\"_iDisplayLength\": 10,\r\n\t\r\n\t\t/**\r\n\t\t * Paging start point - aiDisplay index\r\n\t\t * @type int\r\n\t\t * @default 0\r\n\t\t */\r\n\t\t\"_iDisplayStart\": 0,\r\n\t\r\n\t\t/**\r\n\t\t * Server-side processing - number of records in the result set\r\n\t\t * (i.e. before filtering), Use fnRecordsTotal rather than\r\n\t\t * this property to get the value of the number of records, regardless of\r\n\t\t * the server-side processing setting.\r\n\t\t * @type int\r\n\t\t * @default 0\r\n\t\t * @private\r\n\t\t */\r\n\t\t\"_iRecordsTotal\": 0,\r\n\t\r\n\t\t/**\r\n\t\t * Server-side processing - number of records in the current display set\r\n\t\t * (i.e. after filtering). Use fnRecordsDisplay rather than\r\n\t\t * this property to get the value of the number of records, regardless of\r\n\t\t * the server-side processing setting.\r\n\t\t * @type boolean\r\n\t\t * @default 0\r\n\t\t * @private\r\n\t\t */\r\n\t\t\"_iRecordsDisplay\": 0,\r\n\t\r\n\t\t/**\r\n\t\t * The classes to use for the table\r\n\t\t * @type object\r\n\t\t * @default {}\r\n\t\t */\r\n\t\t\"oClasses\": {},\r\n\t\r\n\t\t/**\r\n\t\t * Flag attached to the settings object so you can check in the draw\r\n\t\t * callback if filtering has been done in the draw. Deprecated in favour of\r\n\t\t * events.\r\n\t\t * @type boolean\r\n\t\t * @default false\r\n\t\t * @deprecated\r\n\t\t */\r\n\t\t\"bFiltered\": false,\r\n\t\r\n\t\t/**\r\n\t\t * Flag attached to the settings object so you can check in the draw\r\n\t\t * callback if sorting has been done in the draw. Deprecated in favour of\r\n\t\t * events.\r\n\t\t * @type boolean\r\n\t\t * @default false\r\n\t\t * @deprecated\r\n\t\t */\r\n\t\t\"bSorted\": false,\r\n\t\r\n\t\t/**\r\n\t\t * Indicate that if multiple rows are in the header and there is more than\r\n\t\t * one unique cell per column, if the top one (true) or bottom one (false)\r\n\t\t * should be used for sorting / title by DataTables.\r\n\t\t * Note that this parameter will be set by the initialisation routine. To\r\n\t\t * set a default use {@link DataTable.defaults}.\r\n\t\t * @type boolean\r\n\t\t */\r\n\t\t\"bSortCellsTop\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Initialisation object that is used for the table\r\n\t\t * @type object\r\n\t\t * @default null\r\n\t\t */\r\n\t\t\"oInit\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Destroy callback functions - for plug-ins to attach themselves to the\r\n\t\t * destroy so they can clean up markup and events.\r\n\t\t * @type array\r\n\t\t * @default []\r\n\t\t */\r\n\t\t\"aoDestroyCallback\": [],\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Get the number of records in the current record set, before filtering\r\n\t\t * @type function\r\n\t\t */\r\n\t\t\"fnRecordsTotal\": function ()\r\n\t\t{\r\n\t\t\treturn _fnDataSource( this ) == 'ssp' ?\r\n\t\t\t\tthis._iRecordsTotal * 1 :\r\n\t\t\t\tthis.aiDisplayMaster.length;\r\n\t\t},\r\n\t\r\n\t\t/**\r\n\t\t * Get the number of records in the current record set, after filtering\r\n\t\t * @type function\r\n\t\t */\r\n\t\t\"fnRecordsDisplay\": function ()\r\n\t\t{\r\n\t\t\treturn _fnDataSource( this ) == 'ssp' ?\r\n\t\t\t\tthis._iRecordsDisplay * 1 :\r\n\t\t\t\tthis.aiDisplay.length;\r\n\t\t},\r\n\t\r\n\t\t/**\r\n\t\t * Get the display end point - aiDisplay index\r\n\t\t * @type function\r\n\t\t */\r\n\t\t\"fnDisplayEnd\": function ()\r\n\t\t{\r\n\t\t\tvar\r\n\t\t\t\tlen = this._iDisplayLength,\r\n\t\t\t\tstart = this._iDisplayStart,\r\n\t\t\t\tcalc = start + len,\r\n\t\t\t\trecords = this.aiDisplay.length,\r\n\t\t\t\tfeatures = this.oFeatures,\r\n\t\t\t\tpaginate = features.bPaginate;\r\n\t\r\n\t\t\tif ( features.bServerSide ) {\r\n\t\t\t\treturn paginate === false || len === -1 ?\r\n\t\t\t\t\tstart + records :\r\n\t\t\t\t\tMath.min( start+len, this._iRecordsDisplay );\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\treturn ! paginate || calc>records || len===-1 ?\r\n\t\t\t\t\trecords :\r\n\t\t\t\t\tcalc;\r\n\t\t\t}\r\n\t\t},\r\n\t\r\n\t\t/**\r\n\t\t * The DataTables object for this table\r\n\t\t * @type object\r\n\t\t * @default null\r\n\t\t */\r\n\t\t\"oInstance\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Unique identifier for each instance of the DataTables object. If there\r\n\t\t * is an ID on the table node, then it takes that value, otherwise an\r\n\t\t * incrementing internal counter is used.\r\n\t\t * @type string\r\n\t\t * @default null\r\n\t\t */\r\n\t\t\"sInstance\": null,\r\n\t\r\n\t\t/**\r\n\t\t * tabindex attribute value that is added to DataTables control elements, allowing\r\n\t\t * keyboard navigation of the table and its controls.\r\n\t\t */\r\n\t\t\"iTabIndex\": 0,\r\n\t\r\n\t\t/**\r\n\t\t * DIV container for the footer scrolling table if scrolling\r\n\t\t */\r\n\t\t\"nScrollHead\": null,\r\n\t\r\n\t\t/**\r\n\t\t * DIV container for the footer scrolling table if scrolling\r\n\t\t */\r\n\t\t\"nScrollFoot\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Last applied sort\r\n\t\t * @type array\r\n\t\t * @default []\r\n\t\t */\r\n\t\t\"aLastSort\": [],\r\n\t\r\n\t\t/**\r\n\t\t * Stored plug-in instances\r\n\t\t * @type object\r\n\t\t * @default {}\r\n\t\t */\r\n\t\t\"oPlugins\": {},\r\n\t\r\n\t\t/**\r\n\t\t * Function used to get a row's id from the row's data\r\n\t\t * @type function\r\n\t\t * @default null\r\n\t\t */\r\n\t\t\"rowIdFn\": null,\r\n\t\r\n\t\t/**\r\n\t\t * Data location where to store a row's id\r\n\t\t * @type string\r\n\t\t * @default null\r\n\t\t */\r\n\t\t\"rowId\": null\r\n\t};\r\n\r\n\t/**\r\n\t * Extension object for DataTables that is used to provide all extension\r\n\t * options.\r\n\t *\r\n\t * Note that the `DataTable.ext` object is available through\r\n\t * `jQuery.fn.dataTable.ext` where it may be accessed and manipulated. It is\r\n\t * also aliased to `jQuery.fn.dataTableExt` for historic reasons.\r\n\t * @namespace\r\n\t * @extends DataTable.models.ext\r\n\t */\r\n\t\r\n\t\r\n\t/**\r\n\t * DataTables extensions\r\n\t * \r\n\t * This namespace acts as a collection area for plug-ins that can be used to\r\n\t * extend DataTables capabilities. Indeed many of the build in methods\r\n\t * use this method to provide their own capabilities (sorting methods for\r\n\t * example).\r\n\t *\r\n\t * Note that this namespace is aliased to `jQuery.fn.dataTableExt` for legacy\r\n\t * reasons\r\n\t *\r\n\t * @namespace\r\n\t */\r\n\tDataTable.ext = _ext = {\r\n\t\t/**\r\n\t\t * Buttons. For use with the Buttons extension for DataTables. This is\r\n\t\t * defined here so other extensions can define buttons regardless of load\r\n\t\t * order. It is _not_ used by DataTables core.\r\n\t\t *\r\n\t\t * @type object\r\n\t\t * @default {}\r\n\t\t */\r\n\t\tbuttons: {},\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Element class names\r\n\t\t *\r\n\t\t * @type object\r\n\t\t * @default {}\r\n\t\t */\r\n\t\tclasses: {},\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * DataTables build type (expanded by the download builder)\r\n\t\t *\r\n\t\t * @type string\r\n\t\t */\r\n\t\tbuilder: \"-source-\",\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Error reporting.\r\n\t\t * \r\n\t\t * How should DataTables report an error. Can take the value 'alert',\r\n\t\t * 'throw', 'none' or a function.\r\n\t\t *\r\n\t\t * @type string|function\r\n\t\t * @default alert\r\n\t\t */\r\n\t\terrMode: \"alert\",\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Feature plug-ins.\r\n\t\t * \r\n\t\t * This is an array of objects which describe the feature plug-ins that are\r\n\t\t * available to DataTables. These feature plug-ins are then available for\r\n\t\t * use through the `dom` initialisation option.\r\n\t\t * \r\n\t\t * Each feature plug-in is described by an object which must have the\r\n\t\t * following properties:\r\n\t\t * \r\n\t\t * * `fnInit` - function that is used to initialise the plug-in,\r\n\t\t * * `cFeature` - a character so the feature can be enabled by the `dom`\r\n\t\t * instillation option. This is case sensitive.\r\n\t\t *\r\n\t\t * The `fnInit` function has the following input parameters:\r\n\t\t *\r\n\t\t * 1. `{object}` DataTables settings object: see\r\n\t\t * {@link DataTable.models.oSettings}\r\n\t\t *\r\n\t\t * And the following return is expected:\r\n\t\t * \r\n\t\t * * {node|null} The element which contains your feature. Note that the\r\n\t\t * return may also be void if your plug-in does not require to inject any\r\n\t\t * DOM elements into DataTables control (`dom`) - for example this might\r\n\t\t * be useful when developing a plug-in which allows table control via\r\n\t\t * keyboard entry\r\n\t\t *\r\n\t\t * @type array\r\n\t\t *\r\n\t\t * @example\r\n\t\t * $.fn.dataTable.ext.features.push( {\r\n\t\t * \"fnInit\": function( oSettings ) {\r\n\t\t * return new TableTools( { \"oDTSettings\": oSettings } );\r\n\t\t * },\r\n\t\t * \"cFeature\": \"T\"\r\n\t\t * } );\r\n\t\t */\r\n\t\tfeature: [],\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Row searching.\r\n\t\t * \r\n\t\t * This method of searching is complimentary to the default type based\r\n\t\t * searching, and a lot more comprehensive as it allows you complete control\r\n\t\t * over the searching logic. Each element in this array is a function\r\n\t\t * (parameters described below) that is called for every row in the table,\r\n\t\t * and your logic decides if it should be included in the searching data set\r\n\t\t * or not.\r\n\t\t *\r\n\t\t * Searching functions have the following input parameters:\r\n\t\t *\r\n\t\t * 1. `{object}` DataTables settings object: see\r\n\t\t * {@link DataTable.models.oSettings}\r\n\t\t * 2. `{array|object}` Data for the row to be processed (same as the\r\n\t\t * original format that was passed in as the data source, or an array\r\n\t\t * from a DOM data source\r\n\t\t * 3. `{int}` Row index ({@link DataTable.models.oSettings.aoData}), which\r\n\t\t * can be useful to retrieve the `TR` element if you need DOM interaction.\r\n\t\t *\r\n\t\t * And the following return is expected:\r\n\t\t *\r\n\t\t * * {boolean} Include the row in the searched result set (true) or not\r\n\t\t * (false)\r\n\t\t *\r\n\t\t * Note that as with the main search ability in DataTables, technically this\r\n\t\t * is \"filtering\", since it is subtractive. However, for consistency in\r\n\t\t * naming we call it searching here.\r\n\t\t *\r\n\t\t * @type array\r\n\t\t * @default []\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // The following example shows custom search being applied to the\r\n\t\t * // fourth column (i.e. the data[3] index) based on two input values\r\n\t\t * // from the end-user, matching the data in a certain range.\r\n\t\t * $.fn.dataTable.ext.search.push(\r\n\t\t * function( settings, data, dataIndex ) {\r\n\t\t * var min = document.getElementById('min').value * 1;\r\n\t\t * var max = document.getElementById('max').value * 1;\r\n\t\t * var version = data[3] == \"-\" ? 0 : data[3]*1;\r\n\t\t *\r\n\t\t * if ( min == \"\" && max == \"\" ) {\r\n\t\t * return true;\r\n\t\t * }\r\n\t\t * else if ( min == \"\" && version < max ) {\r\n\t\t * return true;\r\n\t\t * }\r\n\t\t * else if ( min < version && \"\" == max ) {\r\n\t\t * return true;\r\n\t\t * }\r\n\t\t * else if ( min < version && version < max ) {\r\n\t\t * return true;\r\n\t\t * }\r\n\t\t * return false;\r\n\t\t * }\r\n\t\t * );\r\n\t\t */\r\n\t\tsearch: [],\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Selector extensions\r\n\t\t *\r\n\t\t * The `selector` option can be used to extend the options available for the\r\n\t\t * selector modifier options (`selector-modifier` object data type) that\r\n\t\t * each of the three built in selector types offer (row, column and cell +\r\n\t\t * their plural counterparts). For example the Select extension uses this\r\n\t\t * mechanism to provide an option to select only rows, columns and cells\r\n\t\t * that have been marked as selected by the end user (`{selected: true}`),\r\n\t\t * which can be used in conjunction with the existing built in selector\r\n\t\t * options.\r\n\t\t *\r\n\t\t * Each property is an array to which functions can be pushed. The functions\r\n\t\t * take three attributes:\r\n\t\t *\r\n\t\t * * Settings object for the host table\r\n\t\t * * Options object (`selector-modifier` object type)\r\n\t\t * * Array of selected item indexes\r\n\t\t *\r\n\t\t * The return is an array of the resulting item indexes after the custom\r\n\t\t * selector has been applied.\r\n\t\t *\r\n\t\t * @type object\r\n\t\t */\r\n\t\tselector: {\r\n\t\t\tcell: [],\r\n\t\t\tcolumn: [],\r\n\t\t\trow: []\r\n\t\t},\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Internal functions, exposed for used in plug-ins.\r\n\t\t * \r\n\t\t * Please note that you should not need to use the internal methods for\r\n\t\t * anything other than a plug-in (and even then, try to avoid if possible).\r\n\t\t * The internal function may change between releases.\r\n\t\t *\r\n\t\t * @type object\r\n\t\t * @default {}\r\n\t\t */\r\n\t\tinternal: {},\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Legacy configuration options. Enable and disable legacy options that\r\n\t\t * are available in DataTables.\r\n\t\t *\r\n\t\t * @type object\r\n\t\t */\r\n\t\tlegacy: {\r\n\t\t\t/**\r\n\t\t\t * Enable / disable DataTables 1.9 compatible server-side processing\r\n\t\t\t * requests\r\n\t\t\t *\r\n\t\t\t * @type boolean\r\n\t\t\t * @default null\r\n\t\t\t */\r\n\t\t\tajax: null\r\n\t\t},\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Pagination plug-in methods.\r\n\t\t * \r\n\t\t * Each entry in this object is a function and defines which buttons should\r\n\t\t * be shown by the pagination rendering method that is used for the table:\r\n\t\t * {@link DataTable.ext.renderer.pageButton}. The renderer addresses how the\r\n\t\t * buttons are displayed in the document, while the functions here tell it\r\n\t\t * what buttons to display. This is done by returning an array of button\r\n\t\t * descriptions (what each button will do).\r\n\t\t *\r\n\t\t * Pagination types (the four built in options and any additional plug-in\r\n\t\t * options defined here) can be used through the `paginationType`\r\n\t\t * initialisation parameter.\r\n\t\t *\r\n\t\t * The functions defined take two parameters:\r\n\t\t *\r\n\t\t * 1. `{int} page` The current page index\r\n\t\t * 2. `{int} pages` The number of pages in the table\r\n\t\t *\r\n\t\t * Each function is expected to return an array where each element of the\r\n\t\t * array can be one of:\r\n\t\t *\r\n\t\t * * `first` - Jump to first page when activated\r\n\t\t * * `last` - Jump to last page when activated\r\n\t\t * * `previous` - Show previous page when activated\r\n\t\t * * `next` - Show next page when activated\r\n\t\t * * `{int}` - Show page of the index given\r\n\t\t * * `{array}` - A nested array containing the above elements to add a\r\n\t\t * containing 'DIV' element (might be useful for styling).\r\n\t\t *\r\n\t\t * Note that DataTables v1.9- used this object slightly differently whereby\r\n\t\t * an object with two functions would be defined for each plug-in. That\r\n\t\t * ability is still supported by DataTables 1.10+ to provide backwards\r\n\t\t * compatibility, but this option of use is now decremented and no longer\r\n\t\t * documented in DataTables 1.10+.\r\n\t\t *\r\n\t\t * @type object\r\n\t\t * @default {}\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Show previous, next and current page buttons only\r\n\t\t * $.fn.dataTableExt.oPagination.current = function ( page, pages ) {\r\n\t\t * return [ 'previous', page, 'next' ];\r\n\t\t * };\r\n\t\t */\r\n\t\tpager: {},\r\n\t\r\n\t\r\n\t\trenderer: {\r\n\t\t\tpageButton: {},\r\n\t\t\theader: {}\r\n\t\t},\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Ordering plug-ins - custom data source\r\n\t\t * \r\n\t\t * The extension options for ordering of data available here is complimentary\r\n\t\t * to the default type based ordering that DataTables typically uses. It\r\n\t\t * allows much greater control over the the data that is being used to\r\n\t\t * order a column, but is necessarily therefore more complex.\r\n\t\t * \r\n\t\t * This type of ordering is useful if you want to do ordering based on data\r\n\t\t * live from the DOM (for example the contents of an 'input' element) rather\r\n\t\t * than just the static string that DataTables knows of.\r\n\t\t * \r\n\t\t * The way these plug-ins work is that you create an array of the values you\r\n\t\t * wish to be ordering for the column in question and then return that\r\n\t\t * array. The data in the array much be in the index order of the rows in\r\n\t\t * the table (not the currently ordering order!). Which order data gathering\r\n\t\t * function is run here depends on the `dt-init columns.orderDataType`\r\n\t\t * parameter that is used for the column (if any).\r\n\t\t *\r\n\t\t * The functions defined take two parameters:\r\n\t\t *\r\n\t\t * 1. `{object}` DataTables settings object: see\r\n\t\t * {@link DataTable.models.oSettings}\r\n\t\t * 2. `{int}` Target column index\r\n\t\t *\r\n\t\t * Each function is expected to return an array:\r\n\t\t *\r\n\t\t * * `{array}` Data for the column to be ordering upon\r\n\t\t *\r\n\t\t * @type array\r\n\t\t *\r\n\t\t * @example\r\n\t\t * // Ordering using `input` node values\r\n\t\t * $.fn.dataTable.ext.order['dom-text'] = function ( settings, col )\r\n\t\t * {\r\n\t\t * return this.api().column( col, {order:'index'} ).nodes().map( function ( td, i ) {\r\n\t\t * return $('input', td).val();\r\n\t\t * } );\r\n\t\t * }\r\n\t\t */\r\n\t\torder: {},\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Type based plug-ins.\r\n\t\t *\r\n\t\t * Each column in DataTables has a type assigned to it, either by automatic\r\n\t\t * detection or by direct assignment using the `type` option for the column.\r\n\t\t * The type of a column will effect how it is ordering and search (plug-ins\r\n\t\t * can also make use of the column type if required).\r\n\t\t *\r\n\t\t * @namespace\r\n\t\t */\r\n\t\ttype: {\r\n\t\t\t/**\r\n\t\t\t * Type detection functions.\r\n\t\t\t *\r\n\t\t\t * The functions defined in this object are used to automatically detect\r\n\t\t\t * a column's type, making initialisation of DataTables super easy, even\r\n\t\t\t * when complex data is in the table.\r\n\t\t\t *\r\n\t\t\t * The functions defined take two parameters:\r\n\t\t\t *\r\n\t\t * 1. `{*}` Data from the column cell to be analysed\r\n\t\t * 2. `{settings}` DataTables settings object. This can be used to\r\n\t\t * perform context specific type detection - for example detection\r\n\t\t * based on language settings such as using a comma for a decimal\r\n\t\t * place. Generally speaking the options from the settings will not\r\n\t\t * be required\r\n\t\t\t *\r\n\t\t\t * Each function is expected to return:\r\n\t\t\t *\r\n\t\t\t * * `{string|null}` Data type detected, or null if unknown (and thus\r\n\t\t\t * pass it on to the other type detection functions.\r\n\t\t\t *\r\n\t\t\t * @type array\r\n\t\t\t *\r\n\t\t\t * @example\r\n\t\t\t * // Currency type detection plug-in:\r\n\t\t\t * $.fn.dataTable.ext.type.detect.push(\r\n\t\t\t * function ( data, settings ) {\r\n\t\t\t * // Check the numeric part\r\n\t\t\t * if ( ! data.substring(1).match(/[0-9]/) ) {\r\n\t\t\t * return null;\r\n\t\t\t * }\r\n\t\t\t *\r\n\t\t\t * // Check prefixed by currency\r\n\t\t\t * if ( data.charAt(0) == '$' || data.charAt(0) == '£' ) {\r\n\t\t\t * return 'currency';\r\n\t\t\t * }\r\n\t\t\t * return null;\r\n\t\t\t * }\r\n\t\t\t * );\r\n\t\t\t */\r\n\t\t\tdetect: [],\r\n\t\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Type based search formatting.\r\n\t\t\t *\r\n\t\t\t * The type based searching functions can be used to pre-format the\r\n\t\t\t * data to be search on. For example, it can be used to strip HTML\r\n\t\t\t * tags or to de-format telephone numbers for numeric only searching.\r\n\t\t\t *\r\n\t\t\t * Note that is a search is not defined for a column of a given type,\r\n\t\t\t * no search formatting will be performed.\r\n\t\t\t * \r\n\t\t\t * Pre-processing of searching data plug-ins - When you assign the sType\r\n\t\t\t * for a column (or have it automatically detected for you by DataTables\r\n\t\t\t * or a type detection plug-in), you will typically be using this for\r\n\t\t\t * custom sorting, but it can also be used to provide custom searching\r\n\t\t\t * by allowing you to pre-processing the data and returning the data in\r\n\t\t\t * the format that should be searched upon. This is done by adding\r\n\t\t\t * functions this object with a parameter name which matches the sType\r\n\t\t\t * for that target column. This is the corollary of <i>afnSortData</i>\r\n\t\t\t * for searching data.\r\n\t\t\t *\r\n\t\t\t * The functions defined take a single parameter:\r\n\t\t\t *\r\n\t\t * 1. `{*}` Data from the column cell to be prepared for searching\r\n\t\t\t *\r\n\t\t\t * Each function is expected to return:\r\n\t\t\t *\r\n\t\t\t * * `{string|null}` Formatted string that will be used for the searching.\r\n\t\t\t *\r\n\t\t\t * @type object\r\n\t\t\t * @default {}\r\n\t\t\t *\r\n\t\t\t * @example\r\n\t\t\t * $.fn.dataTable.ext.type.search['title-numeric'] = function ( d ) {\r\n\t\t\t * return d.replace(/\\n/g,\" \").replace( /<.*?>/g, \"\" );\r\n\t\t\t * }\r\n\t\t\t */\r\n\t\t\tsearch: {},\r\n\t\r\n\t\r\n\t\t\t/**\r\n\t\t\t * Type based ordering.\r\n\t\t\t *\r\n\t\t\t * The column type tells DataTables what ordering to apply to the table\r\n\t\t\t * when a column is sorted upon. The order for each type that is defined,\r\n\t\t\t * is defined by the functions available in this object.\r\n\t\t\t *\r\n\t\t\t * Each ordering option can be described by three properties added to\r\n\t\t\t * this object:\r\n\t\t\t *\r\n\t\t\t * * `{type}-pre` - Pre-formatting function\r\n\t\t\t * * `{type}-asc` - Ascending order function\r\n\t\t\t * * `{type}-desc` - Descending order function\r\n\t\t\t *\r\n\t\t\t * All three can be used together, only `{type}-pre` or only\r\n\t\t\t * `{type}-asc` and `{type}-desc` together. It is generally recommended\r\n\t\t\t * that only `{type}-pre` is used, as this provides the optimal\r\n\t\t\t * implementation in terms of speed, although the others are provided\r\n\t\t\t * for compatibility with existing Javascript sort functions.\r\n\t\t\t *\r\n\t\t\t * `{type}-pre`: Functions defined take a single parameter:\r\n\t\t\t *\r\n\t\t * 1. `{*}` Data from the column cell to be prepared for ordering\r\n\t\t\t *\r\n\t\t\t * And return:\r\n\t\t\t *\r\n\t\t\t * * `{*}` Data to be sorted upon\r\n\t\t\t *\r\n\t\t\t * `{type}-asc` and `{type}-desc`: Functions are typical Javascript sort\r\n\t\t\t * functions, taking two parameters:\r\n\t\t\t *\r\n\t\t * 1. `{*}` Data to compare to the second parameter\r\n\t\t * 2. `{*}` Data to compare to the first parameter\r\n\t\t\t *\r\n\t\t\t * And returning:\r\n\t\t\t *\r\n\t\t\t * * `{*}` Ordering match: <0 if first parameter should be sorted lower\r\n\t\t\t * than the second parameter, ===0 if the two parameters are equal and\r\n\t\t\t * >0 if the first parameter should be sorted height than the second\r\n\t\t\t * parameter.\r\n\t\t\t * \r\n\t\t\t * @type object\r\n\t\t\t * @default {}\r\n\t\t\t *\r\n\t\t\t * @example\r\n\t\t\t * // Numeric ordering of formatted numbers with a pre-formatter\r\n\t\t\t * $.extend( $.fn.dataTable.ext.type.order, {\r\n\t\t\t * \"string-pre\": function(x) {\r\n\t\t\t * a = (a === \"-\" || a === \"\") ? 0 : a.replace( /[^\\d\\-\\.]/g, \"\" );\r\n\t\t\t * return parseFloat( a );\r\n\t\t\t * }\r\n\t\t\t * } );\r\n\t\t\t *\r\n\t\t\t * @example\r\n\t\t\t * // Case-sensitive string ordering, with no pre-formatting method\r\n\t\t\t * $.extend( $.fn.dataTable.ext.order, {\r\n\t\t\t * \"string-case-asc\": function(x,y) {\r\n\t\t\t * return ((x < y) ? -1 : ((x > y) ? 1 : 0));\r\n\t\t\t * },\r\n\t\t\t * \"string-case-desc\": function(x,y) {\r\n\t\t\t * return ((x < y) ? 1 : ((x > y) ? -1 : 0));\r\n\t\t\t * }\r\n\t\t\t * } );\r\n\t\t\t */\r\n\t\t\torder: {}\r\n\t\t},\r\n\t\r\n\t\t/**\r\n\t\t * Unique DataTables instance counter\r\n\t\t *\r\n\t\t * @type int\r\n\t\t * @private\r\n\t\t */\r\n\t\t_unique: 0,\r\n\t\r\n\t\r\n\t\t//\r\n\t\t// Depreciated\r\n\t\t// The following properties are retained for backwards compatiblity only.\r\n\t\t// The should not be used in new projects and will be removed in a future\r\n\t\t// version\r\n\t\t//\r\n\t\r\n\t\t/**\r\n\t\t * Version check function.\r\n\t\t * @type function\r\n\t\t * @depreciated Since 1.10\r\n\t\t */\r\n\t\tfnVersionCheck: DataTable.fnVersionCheck,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Index for what 'this' index API functions should use\r\n\t\t * @type int\r\n\t\t * @deprecated Since v1.10\r\n\t\t */\r\n\t\tiApiIndex: 0,\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * jQuery UI class container\r\n\t\t * @type object\r\n\t\t * @deprecated Since v1.10\r\n\t\t */\r\n\t\toJUIClasses: {},\r\n\t\r\n\t\r\n\t\t/**\r\n\t\t * Software version\r\n\t\t * @type string\r\n\t\t * @deprecated Since v1.10\r\n\t\t */\r\n\t\tsVersion: DataTable.version\r\n\t};\r\n\t\r\n\t\r\n\t//\r\n\t// Backwards compatibility. Alias to pre 1.10 Hungarian notation counter parts\r\n\t//\r\n\t$.extend( _ext, {\r\n\t\tafnFiltering: _ext.search,\r\n\t\taTypes: _ext.type.detect,\r\n\t\tofnSearch: _ext.type.search,\r\n\t\toSort: _ext.type.order,\r\n\t\tafnSortData: _ext.order,\r\n\t\taoFeatures: _ext.feature,\r\n\t\toApi: _ext.internal,\r\n\t\toStdClasses: _ext.classes,\r\n\t\toPagination: _ext.pager\r\n\t} );\r\n\t\r\n\t\r\n\t$.extend( DataTable.ext.classes, {\r\n\t\t\"sTable\": \"dataTable\",\r\n\t\t\"sNoFooter\": \"no-footer\",\r\n\t\r\n\t\t/* Paging buttons */\r\n\t\t\"sPageButton\": \"paginate_button\",\r\n\t\t\"sPageButtonActive\": \"current\",\r\n\t\t\"sPageButtonDisabled\": \"disabled\",\r\n\t\r\n\t\t/* Striping classes */\r\n\t\t\"sStripeOdd\": \"odd\",\r\n\t\t\"sStripeEven\": \"even\",\r\n\t\r\n\t\t/* Empty row */\r\n\t\t\"sRowEmpty\": \"dataTables_empty\",\r\n\t\r\n\t\t/* Features */\r\n\t\t\"sWrapper\": \"dataTables_wrapper\",\r\n\t\t\"sFilter\": \"dataTables_filter\",\r\n\t\t\"sInfo\": \"dataTables_info\",\r\n\t\t\"sPaging\": \"dataTables_paginate paging_\", /* Note that the type is postfixed */\r\n\t\t\"sLength\": \"dataTables_length\",\r\n\t\t\"sProcessing\": \"dataTables_processing\",\r\n\t\r\n\t\t/* Sorting */\r\n\t\t\"sSortAsc\": \"sorting_asc\",\r\n\t\t\"sSortDesc\": \"sorting_desc\",\r\n\t\t\"sSortable\": \"sorting\", /* Sortable in both directions */\r\n\t\t\"sSortableAsc\": \"sorting_asc_disabled\",\r\n\t\t\"sSortableDesc\": \"sorting_desc_disabled\",\r\n\t\t\"sSortableNone\": \"sorting_disabled\",\r\n\t\t\"sSortColumn\": \"sorting_\", /* Note that an int is postfixed for the sorting order */\r\n\t\r\n\t\t/* Filtering */\r\n\t\t\"sFilterInput\": \"\",\r\n\t\r\n\t\t/* Page length */\r\n\t\t\"sLengthSelect\": \"\",\r\n\t\r\n\t\t/* Scrolling */\r\n\t\t\"sScrollWrapper\": \"dataTables_scroll\",\r\n\t\t\"sScrollHead\": \"dataTables_scrollHead\",\r\n\t\t\"sScrollHeadInner\": \"dataTables_scrollHeadInner\",\r\n\t\t\"sScrollBody\": \"dataTables_scrollBody\",\r\n\t\t\"sScrollFoot\": \"dataTables_scrollFoot\",\r\n\t\t\"sScrollFootInner\": \"dataTables_scrollFootInner\",\r\n\t\r\n\t\t/* Misc */\r\n\t\t\"sHeaderTH\": \"\",\r\n\t\t\"sFooterTH\": \"\",\r\n\t\r\n\t\t// Deprecated\r\n\t\t\"sSortJUIAsc\": \"\",\r\n\t\t\"sSortJUIDesc\": \"\",\r\n\t\t\"sSortJUI\": \"\",\r\n\t\t\"sSortJUIAscAllowed\": \"\",\r\n\t\t\"sSortJUIDescAllowed\": \"\",\r\n\t\t\"sSortJUIWrapper\": \"\",\r\n\t\t\"sSortIcon\": \"\",\r\n\t\t\"sJUIHeader\": \"\",\r\n\t\t\"sJUIFooter\": \"\"\r\n\t} );\r\n\t\r\n\t\r\n\tvar extPagination = DataTable.ext.pager;\r\n\t\r\n\tfunction _numbers ( page, pages ) {\r\n\t\tvar\r\n\t\t\tnumbers = [],\r\n\t\t\tbuttons = extPagination.numbers_length,\r\n\t\t\thalf = Math.floor( buttons / 2 ),\r\n\t\t\ti = 1;\r\n\t\r\n\t\tif ( pages <= buttons ) {\r\n\t\t\tnumbers = _range( 0, pages );\r\n\t\t}\r\n\t\telse if ( page <= half ) {\r\n\t\t\tnumbers = _range( 0, buttons-2 );\r\n\t\t\tnumbers.push( 'ellipsis' );\r\n\t\t\tnumbers.push( pages-1 );\r\n\t\t}\r\n\t\telse if ( page >= pages - 1 - half ) {\r\n\t\t\tnumbers = _range( pages-(buttons-2), pages );\r\n\t\t\tnumbers.splice( 0, 0, 'ellipsis' ); // no unshift in ie6\r\n\t\t\tnumbers.splice( 0, 0, 0 );\r\n\t\t}\r\n\t\telse {\r\n\t\t\tnumbers = _range( page-half+2, page+half-1 );\r\n\t\t\tnumbers.push( 'ellipsis' );\r\n\t\t\tnumbers.push( pages-1 );\r\n\t\t\tnumbers.splice( 0, 0, 'ellipsis' );\r\n\t\t\tnumbers.splice( 0, 0, 0 );\r\n\t\t}\r\n\t\r\n\t\tnumbers.DT_el = 'span';\r\n\t\treturn numbers;\r\n\t}\r\n\t\r\n\t\r\n\t$.extend( extPagination, {\r\n\t\tsimple: function ( page, pages ) {\r\n\t\t\treturn [ 'previous', 'next' ];\r\n\t\t},\r\n\t\r\n\t\tfull: function ( page, pages ) {\r\n\t\t\treturn [ 'first', 'previous', 'next', 'last' ];\r\n\t\t},\r\n\t\r\n\t\tnumbers: function ( page, pages ) {\r\n\t\t\treturn [ _numbers(page, pages) ];\r\n\t\t},\r\n\t\r\n\t\tsimple_numbers: function ( page, pages ) {\r\n\t\t\treturn [ 'previous', _numbers(page, pages), 'next' ];\r\n\t\t},\r\n\t\r\n\t\tfull_numbers: function ( page, pages ) {\r\n\t\t\treturn [ 'first', 'previous', _numbers(page, pages), 'next', 'last' ];\r\n\t\t},\r\n\t\t\r\n\t\tfirst_last_numbers: function (page, pages) {\r\n\t \t\treturn ['first', _numbers(page, pages), 'last'];\r\n\t \t},\r\n\t\r\n\t\t// For testing and plug-ins to use\r\n\t\t_numbers: _numbers,\r\n\t\r\n\t\t// Number of number buttons (including ellipsis) to show. _Must be odd!_\r\n\t\tnumbers_length: 7\r\n\t} );\r\n\t\r\n\t\r\n\t$.extend( true, DataTable.ext.renderer, {\r\n\t\tpageButton: {\r\n\t\t\t_: function ( settings, host, idx, buttons, page, pages ) {\r\n\t\t\t\tvar classes = settings.oClasses;\r\n\t\t\t\tvar lang = settings.oLanguage.oPaginate;\r\n\t\t\t\tvar aria = settings.oLanguage.oAria.paginate || {};\r\n\t\t\t\tvar btnDisplay, btnClass, counter=0;\r\n\t\r\n\t\t\t\tvar attach = function( container, buttons ) {\r\n\t\t\t\t\tvar i, ien, node, button, tabIndex;\r\n\t\t\t\t\tvar disabledClass = classes.sPageButtonDisabled;\r\n\t\t\t\t\tvar clickHandler = function ( e ) {\r\n\t\t\t\t\t\t_fnPageChange( settings, e.data.action, true );\r\n\t\t\t\t\t};\r\n\t\r\n\t\t\t\t\tfor ( i=0, ien=buttons.length ; i<ien ; i++ ) {\r\n\t\t\t\t\t\tbutton = buttons[i];\r\n\t\r\n\t\t\t\t\t\tif ( $.isArray( button ) ) {\r\n\t\t\t\t\t\t\tvar inner = $( '<'+(button.DT_el || 'div')+'/>' )\r\n\t\t\t\t\t\t\t\t.appendTo( container );\r\n\t\t\t\t\t\t\tattach( inner, button );\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tbtnDisplay = null;\r\n\t\t\t\t\t\t\tbtnClass = button;\r\n\t\t\t\t\t\t\ttabIndex = settings.iTabIndex;\r\n\t\r\n\t\t\t\t\t\t\tswitch ( button ) {\r\n\t\t\t\t\t\t\t\tcase 'ellipsis':\r\n\t\t\t\t\t\t\t\t\tcontainer.append('<span class=\"ellipsis\">…</span>');\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\r\n\t\t\t\t\t\t\t\tcase 'first':\r\n\t\t\t\t\t\t\t\t\tbtnDisplay = lang.sFirst;\r\n\t\r\n\t\t\t\t\t\t\t\t\tif ( page === 0 ) {\r\n\t\t\t\t\t\t\t\t\t\ttabIndex = -1;\r\n\t\t\t\t\t\t\t\t\t\tbtnClass += ' ' + disabledClass;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\r\n\t\t\t\t\t\t\t\tcase 'previous':\r\n\t\t\t\t\t\t\t\t\tbtnDisplay = lang.sPrevious;\r\n\t\r\n\t\t\t\t\t\t\t\t\tif ( page === 0 ) {\r\n\t\t\t\t\t\t\t\t\t\ttabIndex = -1;\r\n\t\t\t\t\t\t\t\t\t\tbtnClass += ' ' + disabledClass;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\r\n\t\t\t\t\t\t\t\tcase 'next':\r\n\t\t\t\t\t\t\t\t\tbtnDisplay = lang.sNext;\r\n\t\r\n\t\t\t\t\t\t\t\t\tif ( page === pages-1 ) {\r\n\t\t\t\t\t\t\t\t\t\ttabIndex = -1;\r\n\t\t\t\t\t\t\t\t\t\tbtnClass += ' ' + disabledClass;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\r\n\t\t\t\t\t\t\t\tcase 'last':\r\n\t\t\t\t\t\t\t\t\tbtnDisplay = lang.sLast;\r\n\t\r\n\t\t\t\t\t\t\t\t\tif ( page === pages-1 ) {\r\n\t\t\t\t\t\t\t\t\t\ttabIndex = -1;\r\n\t\t\t\t\t\t\t\t\t\tbtnClass += ' ' + disabledClass;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\r\n\t\t\t\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t\t\t\tbtnDisplay = button + 1;\r\n\t\t\t\t\t\t\t\t\tbtnClass = page === button ?\r\n\t\t\t\t\t\t\t\t\t\tclasses.sPageButtonActive : '';\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\t\t\tif ( btnDisplay !== null ) {\r\n\t\t\t\t\t\t\t\tnode = $('<a>', {\r\n\t\t\t\t\t\t\t\t\t\t'class': classes.sPageButton+' '+btnClass,\r\n\t\t\t\t\t\t\t\t\t\t'aria-controls': settings.sTableId,\r\n\t\t\t\t\t\t\t\t\t\t'aria-label': aria[ button ],\r\n\t\t\t\t\t\t\t\t\t\t'data-dt-idx': counter,\r\n\t\t\t\t\t\t\t\t\t\t'tabindex': tabIndex,\r\n\t\t\t\t\t\t\t\t\t\t'id': idx === 0 && typeof button === 'string' ?\r\n\t\t\t\t\t\t\t\t\t\t\tsettings.sTableId +'_'+ button :\r\n\t\t\t\t\t\t\t\t\t\t\tnull\r\n\t\t\t\t\t\t\t\t\t} )\r\n\t\t\t\t\t\t\t\t\t.html( btnDisplay )\r\n\t\t\t\t\t\t\t\t\t.appendTo( container );\r\n\t\r\n\t\t\t\t\t\t\t\t_fnBindAction(\r\n\t\t\t\t\t\t\t\t\tnode, {action: button}, clickHandler\r\n\t\t\t\t\t\t\t\t);\r\n\t\r\n\t\t\t\t\t\t\t\tcounter++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t};\r\n\t\r\n\t\t\t\t// IE9 throws an 'unknown error' if document.activeElement is used\r\n\t\t\t\t// inside an iframe or frame. Try / catch the error. Not good for\r\n\t\t\t\t// accessibility, but neither are frames.\r\n\t\t\t\tvar activeEl;\r\n\t\r\n\t\t\t\ttry {\r\n\t\t\t\t\t// Because this approach is destroying and recreating the paging\r\n\t\t\t\t\t// elements, focus is lost on the select button which is bad for\r\n\t\t\t\t\t// accessibility. So we want to restore focus once the draw has\r\n\t\t\t\t\t// completed\r\n\t\t\t\t\tactiveEl = $(host).find(document.activeElement).data('dt-idx');\r\n\t\t\t\t}\r\n\t\t\t\tcatch (e) {}\r\n\t\r\n\t\t\t\tattach( $(host).empty(), buttons );\r\n\t\r\n\t\t\t\tif ( activeEl !== undefined ) {\r\n\t\t\t\t\t$(host).find( '[data-dt-idx='+activeEl+']' ).focus();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t} );\r\n\t\r\n\t\r\n\t\r\n\t// Built in type detection. See model.ext.aTypes for information about\r\n\t// what is required from this methods.\r\n\t$.extend( DataTable.ext.type.detect, [\r\n\t\t// Plain numbers - first since V8 detects some plain numbers as dates\r\n\t\t// e.g. Date.parse('55') (but not all, e.g. Date.parse('22')...).\r\n\t\tfunction ( d, settings )\r\n\t\t{\r\n\t\t\tvar decimal = settings.oLanguage.sDecimal;\r\n\t\t\treturn _isNumber( d, decimal ) ? 'num'+decimal : null;\r\n\t\t},\r\n\t\r\n\t\t// Dates (only those recognised by the browser's Date.parse)\r\n\t\tfunction ( d, settings )\r\n\t\t{\r\n\t\t\t// V8 tries _very_ hard to make a string passed into `Date.parse()`\r\n\t\t\t// valid, so we need to use a regex to restrict date formats. Use a\r\n\t\t\t// plug-in for anything other than ISO8601 style strings\r\n\t\t\tif ( d && !(d instanceof Date) && ! _re_date.test(d) ) {\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t\tvar parsed = Date.parse(d);\r\n\t\t\treturn (parsed !== null && !isNaN(parsed)) || _empty(d) ? 'date' : null;\r\n\t\t},\r\n\t\r\n\t\t// Formatted numbers\r\n\t\tfunction ( d, settings )\r\n\t\t{\r\n\t\t\tvar decimal = settings.oLanguage.sDecimal;\r\n\t\t\treturn _isNumber( d, decimal, true ) ? 'num-fmt'+decimal : null;\r\n\t\t},\r\n\t\r\n\t\t// HTML numeric\r\n\t\tfunction ( d, settings )\r\n\t\t{\r\n\t\t\tvar decimal = settings.oLanguage.sDecimal;\r\n\t\t\treturn _htmlNumeric( d, decimal ) ? 'html-num'+decimal : null;\r\n\t\t},\r\n\t\r\n\t\t// HTML numeric, formatted\r\n\t\tfunction ( d, settings )\r\n\t\t{\r\n\t\t\tvar decimal = settings.oLanguage.sDecimal;\r\n\t\t\treturn _htmlNumeric( d, decimal, true ) ? 'html-num-fmt'+decimal : null;\r\n\t\t},\r\n\t\r\n\t\t// HTML (this is strict checking - there must be html)\r\n\t\tfunction ( d, settings )\r\n\t\t{\r\n\t\t\treturn _empty( d ) || (typeof d === 'string' && d.indexOf('<') !== -1) ?\r\n\t\t\t\t'html' : null;\r\n\t\t}\r\n\t] );\r\n\t\r\n\t\r\n\t\r\n\t// Filter formatting functions. See model.ext.ofnSearch for information about\r\n\t// what is required from these methods.\r\n\t// \r\n\t// Note that additional search methods are added for the html numbers and\r\n\t// html formatted numbers by `_addNumericSort()` when we know what the decimal\r\n\t// place is\r\n\t\r\n\t\r\n\t$.extend( DataTable.ext.type.search, {\r\n\t\thtml: function ( data ) {\r\n\t\t\treturn _empty(data) ?\r\n\t\t\t\tdata :\r\n\t\t\t\ttypeof data === 'string' ?\r\n\t\t\t\t\tdata\r\n\t\t\t\t\t\t.replace( _re_new_lines, \" \" )\r\n\t\t\t\t\t\t.replace( _re_html, \"\" ) :\r\n\t\t\t\t\t'';\r\n\t\t},\r\n\t\r\n\t\tstring: function ( data ) {\r\n\t\t\treturn _empty(data) ?\r\n\t\t\t\tdata :\r\n\t\t\t\ttypeof data === 'string' ?\r\n\t\t\t\t\tdata.replace( _re_new_lines, \" \" ) :\r\n\t\t\t\t\tdata;\r\n\t\t}\r\n\t} );\r\n\t\r\n\t\r\n\t\r\n\tvar __numericReplace = function ( d, decimalPlace, re1, re2 ) {\r\n\t\tif ( d !== 0 && (!d || d === '-') ) {\r\n\t\t\treturn -Infinity;\r\n\t\t}\r\n\t\r\n\t\t// If a decimal place other than `.` is used, it needs to be given to the\r\n\t\t// function so we can detect it and replace with a `.` which is the only\r\n\t\t// decimal place Javascript recognises - it is not locale aware.\r\n\t\tif ( decimalPlace ) {\r\n\t\t\td = _numToDecimal( d, decimalPlace );\r\n\t\t}\r\n\t\r\n\t\tif ( d.replace ) {\r\n\t\t\tif ( re1 ) {\r\n\t\t\t\td = d.replace( re1, '' );\r\n\t\t\t}\r\n\t\r\n\t\t\tif ( re2 ) {\r\n\t\t\t\td = d.replace( re2, '' );\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\treturn d * 1;\r\n\t};\r\n\t\r\n\t\r\n\t// Add the numeric 'deformatting' functions for sorting and search. This is done\r\n\t// in a function to provide an easy ability for the language options to add\r\n\t// additional methods if a non-period decimal place is used.\r\n\tfunction _addNumericSort ( decimalPlace ) {\r\n\t\t$.each(\r\n\t\t\t{\r\n\t\t\t\t// Plain numbers\r\n\t\t\t\t\"num\": function ( d ) {\r\n\t\t\t\t\treturn __numericReplace( d, decimalPlace );\r\n\t\t\t\t},\r\n\t\r\n\t\t\t\t// Formatted numbers\r\n\t\t\t\t\"num-fmt\": function ( d ) {\r\n\t\t\t\t\treturn __numericReplace( d, decimalPlace, _re_formatted_numeric );\r\n\t\t\t\t},\r\n\t\r\n\t\t\t\t// HTML numeric\r\n\t\t\t\t\"html-num\": function ( d ) {\r\n\t\t\t\t\treturn __numericReplace( d, decimalPlace, _re_html );\r\n\t\t\t\t},\r\n\t\r\n\t\t\t\t// HTML numeric, formatted\r\n\t\t\t\t\"html-num-fmt\": function ( d ) {\r\n\t\t\t\t\treturn __numericReplace( d, decimalPlace, _re_html, _re_formatted_numeric );\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tfunction ( key, fn ) {\r\n\t\t\t\t// Add the ordering method\r\n\t\t\t\t_ext.type.order[ key+decimalPlace+'-pre' ] = fn;\r\n\t\r\n\t\t\t\t// For HTML types add a search formatter that will strip the HTML\r\n\t\t\t\tif ( key.match(/^html\\-/) ) {\r\n\t\t\t\t\t_ext.type.search[ key+decimalPlace ] = _ext.type.search.html;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t);\r\n\t}\r\n\t\r\n\t\r\n\t// Default sort methods\r\n\t$.extend( _ext.type.order, {\r\n\t\t// Dates\r\n\t\t\"date-pre\": function ( d ) {\r\n\t\t\tvar ts = Date.parse( d );\r\n\t\t\treturn isNaN(ts) ? -Infinity : ts;\r\n\t\t},\r\n\t\r\n\t\t// html\r\n\t\t\"html-pre\": function ( a ) {\r\n\t\t\treturn _empty(a) ?\r\n\t\t\t\t'' :\r\n\t\t\t\ta.replace ?\r\n\t\t\t\t\ta.replace( /<.*?>/g, \"\" ).toLowerCase() :\r\n\t\t\t\t\ta+'';\r\n\t\t},\r\n\t\r\n\t\t// string\r\n\t\t\"string-pre\": function ( a ) {\r\n\t\t\t// This is a little complex, but faster than always calling toString,\r\n\t\t\t// http://jsperf.com/tostring-v-check\r\n\t\t\treturn _empty(a) ?\r\n\t\t\t\t'' :\r\n\t\t\t\ttypeof a === 'string' ?\r\n\t\t\t\t\ta.toLowerCase() :\r\n\t\t\t\t\t! a.toString ?\r\n\t\t\t\t\t\t'' :\r\n\t\t\t\t\t\ta.toString();\r\n\t\t},\r\n\t\r\n\t\t// string-asc and -desc are retained only for compatibility with the old\r\n\t\t// sort methods\r\n\t\t\"string-asc\": function ( x, y ) {\r\n\t\t\treturn ((x < y) ? -1 : ((x > y) ? 1 : 0));\r\n\t\t},\r\n\t\r\n\t\t\"string-desc\": function ( x, y ) {\r\n\t\t\treturn ((x < y) ? 1 : ((x > y) ? -1 : 0));\r\n\t\t}\r\n\t} );\r\n\t\r\n\t\r\n\t// Numeric sorting types - order doesn't matter here\r\n\t_addNumericSort( '' );\r\n\t\r\n\t\r\n\t$.extend( true, DataTable.ext.renderer, {\r\n\t\theader: {\r\n\t\t\t_: function ( settings, cell, column, classes ) {\r\n\t\t\t\t// No additional mark-up required\r\n\t\t\t\t// Attach a sort listener to update on sort - note that using the\r\n\t\t\t\t// `DT` namespace will allow the event to be removed automatically\r\n\t\t\t\t// on destroy, while the `dt` namespaced event is the one we are\r\n\t\t\t\t// listening for\r\n\t\t\t\t$(settings.nTable).on( 'order.dt.DT', function ( e, ctx, sorting, columns ) {\r\n\t\t\t\t\tif ( settings !== ctx ) { // need to check this this is the host\r\n\t\t\t\t\t\treturn; // table, not a nested one\r\n\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\tvar colIdx = column.idx;\r\n\t\r\n\t\t\t\t\tcell\r\n\t\t\t\t\t\t.removeClass(\r\n\t\t\t\t\t\t\tcolumn.sSortingClass +' '+\r\n\t\t\t\t\t\t\tclasses.sSortAsc +' '+\r\n\t\t\t\t\t\t\tclasses.sSortDesc\r\n\t\t\t\t\t\t)\r\n\t\t\t\t\t\t.addClass( columns[ colIdx ] == 'asc' ?\r\n\t\t\t\t\t\t\tclasses.sSortAsc : columns[ colIdx ] == 'desc' ?\r\n\t\t\t\t\t\t\t\tclasses.sSortDesc :\r\n\t\t\t\t\t\t\t\tcolumn.sSortingClass\r\n\t\t\t\t\t\t);\r\n\t\t\t\t} );\r\n\t\t\t},\r\n\t\r\n\t\t\tjqueryui: function ( settings, cell, column, classes ) {\r\n\t\t\t\t$('<div/>')\r\n\t\t\t\t\t.addClass( classes.sSortJUIWrapper )\r\n\t\t\t\t\t.append( cell.contents() )\r\n\t\t\t\t\t.append( $('<span/>')\r\n\t\t\t\t\t\t.addClass( classes.sSortIcon+' '+column.sSortingClassJUI )\r\n\t\t\t\t\t)\r\n\t\t\t\t\t.appendTo( cell );\r\n\t\r\n\t\t\t\t// Attach a sort listener to update on sort\r\n\t\t\t\t$(settings.nTable).on( 'order.dt.DT', function ( e, ctx, sorting, columns ) {\r\n\t\t\t\t\tif ( settings !== ctx ) {\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\tvar colIdx = column.idx;\r\n\t\r\n\t\t\t\t\tcell\r\n\t\t\t\t\t\t.removeClass( classes.sSortAsc +\" \"+classes.sSortDesc )\r\n\t\t\t\t\t\t.addClass( columns[ colIdx ] == 'asc' ?\r\n\t\t\t\t\t\t\tclasses.sSortAsc : columns[ colIdx ] == 'desc' ?\r\n\t\t\t\t\t\t\t\tclasses.sSortDesc :\r\n\t\t\t\t\t\t\t\tcolumn.sSortingClass\r\n\t\t\t\t\t\t);\r\n\t\r\n\t\t\t\t\tcell\r\n\t\t\t\t\t\t.find( 'span.'+classes.sSortIcon )\r\n\t\t\t\t\t\t.removeClass(\r\n\t\t\t\t\t\t\tclasses.sSortJUIAsc +\" \"+\r\n\t\t\t\t\t\t\tclasses.sSortJUIDesc +\" \"+\r\n\t\t\t\t\t\t\tclasses.sSortJUI +\" \"+\r\n\t\t\t\t\t\t\tclasses.sSortJUIAscAllowed +\" \"+\r\n\t\t\t\t\t\t\tclasses.sSortJUIDescAllowed\r\n\t\t\t\t\t\t)\r\n\t\t\t\t\t\t.addClass( columns[ colIdx ] == 'asc' ?\r\n\t\t\t\t\t\t\tclasses.sSortJUIAsc : columns[ colIdx ] == 'desc' ?\r\n\t\t\t\t\t\t\t\tclasses.sSortJUIDesc :\r\n\t\t\t\t\t\t\t\tcolumn.sSortingClassJUI\r\n\t\t\t\t\t\t);\r\n\t\t\t\t} );\r\n\t\t\t}\r\n\t\t}\r\n\t} );\r\n\t\r\n\t/*\r\n\t * Public helper functions. These aren't used internally by DataTables, or\r\n\t * called by any of the options passed into DataTables, but they can be used\r\n\t * externally by developers working with DataTables. They are helper functions\r\n\t * to make working with DataTables a little bit easier.\r\n\t */\r\n\t\r\n\tvar __htmlEscapeEntities = function ( d ) {\r\n\t\treturn typeof d === 'string' ?\r\n\t\t\td.replace(/</g, '<').replace(/>/g, '>').replace(/\"/g, '"') :\r\n\t\t\td;\r\n\t};\r\n\t\r\n\t/**\r\n\t * Helpers for `columns.render`.\r\n\t *\r\n\t * The options defined here can be used with the `columns.render` initialisation\r\n\t * option to provide a display renderer. The following functions are defined:\r\n\t *\r\n\t * * `number` - Will format numeric data (defined by `columns.data`) for\r\n\t * display, retaining the original unformatted data for sorting and filtering.\r\n\t * It takes 5 parameters:\r\n\t * * `string` - Thousands grouping separator\r\n\t * * `string` - Decimal point indicator\r\n\t * * `integer` - Number of decimal points to show\r\n\t * * `string` (optional) - Prefix.\r\n\t * * `string` (optional) - Postfix (/suffix).\r\n\t * * `text` - Escape HTML to help prevent XSS attacks. It has no optional\r\n\t * parameters.\r\n\t *\r\n\t * @example\r\n\t * // Column definition using the number renderer\r\n\t * {\r\n\t * data: \"salary\",\r\n\t * render: $.fn.dataTable.render.number( '\\'', '.', 0, '$' )\r\n\t * }\r\n\t *\r\n\t * @namespace\r\n\t */\r\n\tDataTable.render = {\r\n\t\tnumber: function ( thousands, decimal, precision, prefix, postfix ) {\r\n\t\t\treturn {\r\n\t\t\t\tdisplay: function ( d ) {\r\n\t\t\t\t\tif ( typeof d !== 'number' && typeof d !== 'string' ) {\r\n\t\t\t\t\t\treturn d;\r\n\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\tvar negative = d < 0 ? '-' : '';\r\n\t\t\t\t\tvar flo = parseFloat( d );\r\n\t\r\n\t\t\t\t\t// If NaN then there isn't much formatting that we can do - just\r\n\t\t\t\t\t// return immediately, escaping any HTML (this was supposed to\r\n\t\t\t\t\t// be a number after all)\r\n\t\t\t\t\tif ( isNaN( flo ) ) {\r\n\t\t\t\t\t\treturn __htmlEscapeEntities( d );\r\n\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\tflo = flo.toFixed( precision );\r\n\t\t\t\t\td = Math.abs( flo );\r\n\t\r\n\t\t\t\t\tvar intPart = parseInt( d, 10 );\r\n\t\t\t\t\tvar floatPart = precision ?\r\n\t\t\t\t\t\tdecimal+(d - intPart).toFixed( precision ).substring( 2 ):\r\n\t\t\t\t\t\t'';\r\n\t\r\n\t\t\t\t\treturn negative + (prefix||'') +\r\n\t\t\t\t\t\tintPart.toString().replace(\r\n\t\t\t\t\t\t\t/\\B(?=(\\d{3})+(?!\\d))/g, thousands\r\n\t\t\t\t\t\t) +\r\n\t\t\t\t\t\tfloatPart +\r\n\t\t\t\t\t\t(postfix||'');\r\n\t\t\t\t}\r\n\t\t\t};\r\n\t\t},\r\n\t\r\n\t\ttext: function () {\r\n\t\t\treturn {\r\n\t\t\t\tdisplay: __htmlEscapeEntities,\r\n\t\t\t\tfilter: __htmlEscapeEntities\r\n\t\t\t};\r\n\t\t}\r\n\t};\r\n\t\r\n\t\r\n\t/*\r\n\t * This is really a good bit rubbish this method of exposing the internal methods\r\n\t * publicly... - To be fixed in 2.0 using methods on the prototype\r\n\t */\r\n\t\r\n\t\r\n\t/**\r\n\t * Create a wrapper function for exporting an internal functions to an external API.\r\n\t * @param {string} fn API function name\r\n\t * @returns {function} wrapped function\r\n\t * @memberof DataTable#internal\r\n\t */\r\n\tfunction _fnExternApiFunc (fn)\r\n\t{\r\n\t\treturn function() {\r\n\t\t\tvar args = [_fnSettingsFromNode( this[DataTable.ext.iApiIndex] )].concat(\r\n\t\t\t\tArray.prototype.slice.call(arguments)\r\n\t\t\t);\r\n\t\t\treturn DataTable.ext.internal[fn].apply( this, args );\r\n\t\t};\r\n\t}\r\n\t\r\n\t\r\n\t/**\r\n\t * Reference to internal functions for use by plug-in developers. Note that\r\n\t * these methods are references to internal functions and are considered to be\r\n\t * private. If you use these methods, be aware that they are liable to change\r\n\t * between versions.\r\n\t * @namespace\r\n\t */\r\n\t$.extend( DataTable.ext.internal, {\r\n\t\t_fnExternApiFunc: _fnExternApiFunc,\r\n\t\t_fnBuildAjax: _fnBuildAjax,\r\n\t\t_fnAjaxUpdate: _fnAjaxUpdate,\r\n\t\t_fnAjaxParameters: _fnAjaxParameters,\r\n\t\t_fnAjaxUpdateDraw: _fnAjaxUpdateDraw,\r\n\t\t_fnAjaxDataSrc: _fnAjaxDataSrc,\r\n\t\t_fnAddColumn: _fnAddColumn,\r\n\t\t_fnColumnOptions: _fnColumnOptions,\r\n\t\t_fnAdjustColumnSizing: _fnAdjustColumnSizing,\r\n\t\t_fnVisibleToColumnIndex: _fnVisibleToColumnIndex,\r\n\t\t_fnColumnIndexToVisible: _fnColumnIndexToVisible,\r\n\t\t_fnVisbleColumns: _fnVisbleColumns,\r\n\t\t_fnGetColumns: _fnGetColumns,\r\n\t\t_fnColumnTypes: _fnColumnTypes,\r\n\t\t_fnApplyColumnDefs: _fnApplyColumnDefs,\r\n\t\t_fnHungarianMap: _fnHungarianMap,\r\n\t\t_fnCamelToHungarian: _fnCamelToHungarian,\r\n\t\t_fnLanguageCompat: _fnLanguageCompat,\r\n\t\t_fnBrowserDetect: _fnBrowserDetect,\r\n\t\t_fnAddData: _fnAddData,\r\n\t\t_fnAddTr: _fnAddTr,\r\n\t\t_fnNodeToDataIndex: _fnNodeToDataIndex,\r\n\t\t_fnNodeToColumnIndex: _fnNodeToColumnIndex,\r\n\t\t_fnGetCellData: _fnGetCellData,\r\n\t\t_fnSetCellData: _fnSetCellData,\r\n\t\t_fnSplitObjNotation: _fnSplitObjNotation,\r\n\t\t_fnGetObjectDataFn: _fnGetObjectDataFn,\r\n\t\t_fnSetObjectDataFn: _fnSetObjectDataFn,\r\n\t\t_fnGetDataMaster: _fnGetDataMaster,\r\n\t\t_fnClearTable: _fnClearTable,\r\n\t\t_fnDeleteIndex: _fnDeleteIndex,\r\n\t\t_fnInvalidate: _fnInvalidate,\r\n\t\t_fnGetRowElements: _fnGetRowElements,\r\n\t\t_fnCreateTr: _fnCreateTr,\r\n\t\t_fnBuildHead: _fnBuildHead,\r\n\t\t_fnDrawHead: _fnDrawHead,\r\n\t\t_fnDraw: _fnDraw,\r\n\t\t_fnReDraw: _fnReDraw,\r\n\t\t_fnAddOptionsHtml: _fnAddOptionsHtml,\r\n\t\t_fnDetectHeader: _fnDetectHeader,\r\n\t\t_fnGetUniqueThs: _fnGetUniqueThs,\r\n\t\t_fnFeatureHtmlFilter: _fnFeatureHtmlFilter,\r\n\t\t_fnFilterComplete: _fnFilterComplete,\r\n\t\t_fnFilterCustom: _fnFilterCustom,\r\n\t\t_fnFilterColumn: _fnFilterColumn,\r\n\t\t_fnFilter: _fnFilter,\r\n\t\t_fnFilterCreateSearch: _fnFilterCreateSearch,\r\n\t\t_fnEscapeRegex: _fnEscapeRegex,\r\n\t\t_fnFilterData: _fnFilterData,\r\n\t\t_fnFeatureHtmlInfo: _fnFeatureHtmlInfo,\r\n\t\t_fnUpdateInfo: _fnUpdateInfo,\r\n\t\t_fnInfoMacros: _fnInfoMacros,\r\n\t\t_fnInitialise: _fnInitialise,\r\n\t\t_fnInitComplete: _fnInitComplete,\r\n\t\t_fnLengthChange: _fnLengthChange,\r\n\t\t_fnFeatureHtmlLength: _fnFeatureHtmlLength,\r\n\t\t_fnFeatureHtmlPaginate: _fnFeatureHtmlPaginate,\r\n\t\t_fnPageChange: _fnPageChange,\r\n\t\t_fnFeatureHtmlProcessing: _fnFeatureHtmlProcessing,\r\n\t\t_fnProcessingDisplay: _fnProcessingDisplay,\r\n\t\t_fnFeatureHtmlTable: _fnFeatureHtmlTable,\r\n\t\t_fnScrollDraw: _fnScrollDraw,\r\n\t\t_fnApplyToChildren: _fnApplyToChildren,\r\n\t\t_fnCalculateColumnWidths: _fnCalculateColumnWidths,\r\n\t\t_fnThrottle: _fnThrottle,\r\n\t\t_fnConvertToWidth: _fnConvertToWidth,\r\n\t\t_fnGetWidestNode: _fnGetWidestNode,\r\n\t\t_fnGetMaxLenString: _fnGetMaxLenString,\r\n\t\t_fnStringToCss: _fnStringToCss,\r\n\t\t_fnSortFlatten: _fnSortFlatten,\r\n\t\t_fnSort: _fnSort,\r\n\t\t_fnSortAria: _fnSortAria,\r\n\t\t_fnSortListener: _fnSortListener,\r\n\t\t_fnSortAttachListener: _fnSortAttachListener,\r\n\t\t_fnSortingClasses: _fnSortingClasses,\r\n\t\t_fnSortData: _fnSortData,\r\n\t\t_fnSaveState: _fnSaveState,\r\n\t\t_fnLoadState: _fnLoadState,\r\n\t\t_fnSettingsFromNode: _fnSettingsFromNode,\r\n\t\t_fnLog: _fnLog,\r\n\t\t_fnMap: _fnMap,\r\n\t\t_fnBindAction: _fnBindAction,\r\n\t\t_fnCallbackReg: _fnCallbackReg,\r\n\t\t_fnCallbackFire: _fnCallbackFire,\r\n\t\t_fnLengthOverflow: _fnLengthOverflow,\r\n\t\t_fnRenderer: _fnRenderer,\r\n\t\t_fnDataSource: _fnDataSource,\r\n\t\t_fnRowAttributes: _fnRowAttributes,\r\n\t\t_fnExtend: _fnExtend,\r\n\t\t_fnCalculateEnd: function () {} // Used by a lot of plug-ins, but redundant\r\n\t\t // in 1.10, so this dead-end function is\r\n\t\t // added to prevent errors\r\n\t} );\r\n\t\r\n\r\n\t// jQuery access\r\n\t$.fn.dataTable = DataTable;\r\n\r\n\t// Provide access to the host jQuery object (circular reference)\r\n\tDataTable.$ = $;\r\n\r\n\t// Legacy aliases\r\n\t$.fn.dataTableSettings = DataTable.settings;\r\n\t$.fn.dataTableExt = DataTable.ext;\r\n\r\n\t// With a capital `D` we return a DataTables API instance rather than a\r\n\t// jQuery object\r\n\t$.fn.DataTable = function ( opts ) {\r\n\t\treturn $(this).dataTable( opts ).api();\r\n\t};\r\n\r\n\t// All properties that are available to $.fn.dataTable should also be\r\n\t// available on $.fn.DataTable\r\n\t$.each( DataTable, function ( prop, val ) {\r\n\t\t$.fn.DataTable[ prop ] = val;\r\n\t} );\r\n\r\n\r\n\t// Information about events fired by DataTables - for documentation.\r\n\t/**\r\n\t * Draw event, fired whenever the table is redrawn on the page, at the same\r\n\t * point as fnDrawCallback. This may be useful for binding events or\r\n\t * performing calculations when the table is altered at all.\r\n\t * @name DataTable#draw.dt\r\n\t * @event\r\n\t * @param {event} e jQuery event object\r\n\t * @param {object} o DataTables settings object {@link DataTable.models.oSettings}\r\n\t */\r\n\r\n\t/**\r\n\t * Search event, fired when the searching applied to the table (using the\r\n\t * built-in global search, or column filters) is altered.\r\n\t * @name DataTable#search.dt\r\n\t * @event\r\n\t * @param {event} e jQuery event object\r\n\t * @param {object} o DataTables settings object {@link DataTable.models.oSettings}\r\n\t */\r\n\r\n\t/**\r\n\t * Page change event, fired when the paging of the table is altered.\r\n\t * @name DataTable#page.dt\r\n\t * @event\r\n\t * @param {event} e jQuery event object\r\n\t * @param {object} o DataTables settings object {@link DataTable.models.oSettings}\r\n\t */\r\n\r\n\t/**\r\n\t * Order event, fired when the ordering applied to the table is altered.\r\n\t * @name DataTable#order.dt\r\n\t * @event\r\n\t * @param {event} e jQuery event object\r\n\t * @param {object} o DataTables settings object {@link DataTable.models.oSettings}\r\n\t */\r\n\r\n\t/**\r\n\t * DataTables initialisation complete event, fired when the table is fully\r\n\t * drawn, including Ajax data loaded, if Ajax data is required.\r\n\t * @name DataTable#init.dt\r\n\t * @event\r\n\t * @param {event} e jQuery event object\r\n\t * @param {object} oSettings DataTables settings object\r\n\t * @param {object} json The JSON object request from the server - only\r\n\t * present if client-side Ajax sourced data is used</li></ol>\r\n\t */\r\n\r\n\t/**\r\n\t * State save event, fired when the table has changed state a new state save\r\n\t * is required. This event allows modification of the state saving object\r\n\t * prior to actually doing the save, including addition or other state\r\n\t * properties (for plug-ins) or modification of a DataTables core property.\r\n\t * @name DataTable#stateSaveParams.dt\r\n\t * @event\r\n\t * @param {event} e jQuery event object\r\n\t * @param {object} oSettings DataTables settings object\r\n\t * @param {object} json The state information to be saved\r\n\t */\r\n\r\n\t/**\r\n\t * State load event, fired when the table is loading state from the stored\r\n\t * data, but prior to the settings object being modified by the saved state\r\n\t * - allowing modification of the saved state is required or loading of\r\n\t * state for a plug-in.\r\n\t * @name DataTable#stateLoadParams.dt\r\n\t * @event\r\n\t * @param {event} e jQuery event object\r\n\t * @param {object} oSettings DataTables settings object\r\n\t * @param {object} json The saved state information\r\n\t */\r\n\r\n\t/**\r\n\t * State loaded event, fired when state has been loaded from stored data and\r\n\t * the settings object has been modified by the loaded data.\r\n\t * @name DataTable#stateLoaded.dt\r\n\t * @event\r\n\t * @param {event} e jQuery event object\r\n\t * @param {object} oSettings DataTables settings object\r\n\t * @param {object} json The saved state information\r\n\t */\r\n\r\n\t/**\r\n\t * Processing event, fired when DataTables is doing some kind of processing\r\n\t * (be it, order, search or anything else). It can be used to indicate to\r\n\t * the end user that there is something happening, or that something has\r\n\t * finished.\r\n\t * @name DataTable#processing.dt\r\n\t * @event\r\n\t * @param {event} e jQuery event object\r\n\t * @param {object} oSettings DataTables settings object\r\n\t * @param {boolean} bShow Flag for if DataTables is doing processing or not\r\n\t */\r\n\r\n\t/**\r\n\t * Ajax (XHR) event, fired whenever an Ajax request is completed from a\r\n\t * request to made to the server for new data. This event is called before\r\n\t * DataTables processed the returned data, so it can also be used to pre-\r\n\t * process the data returned from the server, if needed.\r\n\t *\r\n\t * Note that this trigger is called in `fnServerData`, if you override\r\n\t * `fnServerData` and which to use this event, you need to trigger it in you\r\n\t * success function.\r\n\t * @name DataTable#xhr.dt\r\n\t * @event\r\n\t * @param {event} e jQuery event object\r\n\t * @param {object} o DataTables settings object {@link DataTable.models.oSettings}\r\n\t * @param {object} json JSON returned from the server\r\n\t *\r\n\t * @example\r\n\t * // Use a custom property returned from the server in another DOM element\r\n\t * $('#table').dataTable().on('xhr.dt', function (e, settings, json) {\r\n\t * $('#status').html( json.status );\r\n\t * } );\r\n\t *\r\n\t * @example\r\n\t * // Pre-process the data returned from the server\r\n\t * $('#table').dataTable().on('xhr.dt', function (e, settings, json) {\r\n\t * for ( var i=0, ien=json.aaData.length ; i<ien ; i++ ) {\r\n\t * json.aaData[i].sum = json.aaData[i].one + json.aaData[i].two;\r\n\t * }\r\n\t * // Note no return - manipulate the data directly in the JSON object.\r\n\t * } );\r\n\t */\r\n\r\n\t/**\r\n\t * Destroy event, fired when the DataTable is destroyed by calling fnDestroy\r\n\t * or passing the bDestroy:true parameter in the initialisation object. This\r\n\t * can be used to remove bound events, added DOM nodes, etc.\r\n\t * @name DataTable#destroy.dt\r\n\t * @event\r\n\t * @param {event} e jQuery event object\r\n\t * @param {object} o DataTables settings object {@link DataTable.models.oSettings}\r\n\t */\r\n\r\n\t/**\r\n\t * Page length change event, fired when number of records to show on each\r\n\t * page (the length) is changed.\r\n\t * @name DataTable#length.dt\r\n\t * @event\r\n\t * @param {event} e jQuery event object\r\n\t * @param {object} o DataTables settings object {@link DataTable.models.oSettings}\r\n\t * @param {integer} len New length\r\n\t */\r\n\r\n\t/**\r\n\t * Column sizing has changed.\r\n\t * @name DataTable#column-sizing.dt\r\n\t * @event\r\n\t * @param {event} e jQuery event object\r\n\t * @param {object} o DataTables settings object {@link DataTable.models.oSettings}\r\n\t */\r\n\r\n\t/**\r\n\t * Column visibility has changed.\r\n\t * @name DataTable#column-visibility.dt\r\n\t * @event\r\n\t * @param {event} e jQuery event object\r\n\t * @param {object} o DataTables settings object {@link DataTable.models.oSettings}\r\n\t * @param {int} column Column index\r\n\t * @param {bool} vis `false` if column now hidden, or `true` if visible\r\n\t */\r\n\r\n\treturn $.fn.dataTable;\r\n}));\r\n"],"names":["factory","define","$","window","document","undefined","_ext","_Api","_api_register","_api_registerPlural","DataTable","options","this","sSelector","oOpts","api","_","rows","data","traditional","_fnSettingsFromNode","iApiIndex","fnAddData","redraw","isArray","isPlainObject","add","row","draw","flatten","toArray","fnAdjustColumnSizing","bRedraw","columns","adjust","settings","scroll","oScroll","sX","sY","_fnScrollDraw","fnClearTable","clear","fnClose","nTr","child","hide","fnDeleteRow","target","callback","aoData","remove","call","fnDestroy","destroy","fnDraw","complete","fnFilter","sInput","iColumn","bRegex","bSmart","bShowGlobal","bCaseInsensitive","search","column","fnGetData","src","col","type","nodeName","toLowerCase","cell","fnGetNodes","iRow","node","nodes","fnGetPosition","toUpperCase","index","columnVisible","fnIsOpen","isShown","fnOpen","mHtml","sClass","show","fnPageChange","mAction","page","fnSetColumnVis","iCol","bShow","visible","fnSettings","fnSort","aaSort","order","fnSortListener","nNode","fnCallback","listener","fnUpdate","mData","mRow","bAction","fnVersionCheck","_that","emptyInit","len","length","fn","oApi","internal","ext","_fnExternApiFunc","each","iLen","oInit","_fnExtend","i","sId","getAttribute","bInitHandedOff","defaults","$this","_fnCompatOpts","_fnCompatCols","_fnCamelToHungarian","extend","allSettings","s","nTable","nTHead","parentNode","nTFoot","bRetrieve","bDestroy","oInstance","_fnLog","sTableId","id","splice","_unique","oSettings","models","style","width","push","dataTable","_fnLanguageCompat","oLanguage","aLengthMenu","iDisplayLength","_fnMap","oFeatures","_fnCallbackReg","fnDrawCallback","fnServerParams","fnStateSaveParams","fnStateLoadParams","fnStateLoaded","fnRowCallback","fnCreatedRow","fnHeaderCallback","fnFooterCallback","fnInitComplete","fnPreDrawCallback","rowIdFn","_fnGetObjectDataFn","rowId","_fnBrowserDetect","oClasses","classes","addClass","sTable","iInitDisplayStart","iDisplayStart","_iDisplayStart","iDeferLoading","bDeferLoading","tmp","_iRecordsDisplay","_iRecordsTotal","sUrl","ajax","dataType","url","success","json","_fnInitialise","error","asStripeClasses","sStripeOdd","sStripeEven","stripeClasses","rowOne","children","find","eq","inArray","map","el","hasClass","removeClass","join","asDestroyStripes","slice","aoColumnsInit","anThs","nThead","getElementsByTagName","_fnDetectHeader","aoHeader","_fnGetUniqueThs","aoColumns","_fnAddColumn","_fnApplyColumnDefs","aoColumnDefs","oDef","_fnColumnOptions","a","name","sort","filter","features","loadedInit","aaSorting","sorting","asSorting","_fnSortingClasses","bSort","bSorted","aSort","_fnSortFlatten","sortedColumns","val","dir","_fnCallbackFire","_fnSortAria","_fnDataSource","bDeferRender","captions","_captionSide","css","thead","appendTo","tbody","nTBody","tfoot","sNoFooter","aoFooter","aaData","_fnAddData","_fnAddTr","aiDisplay","aiDisplayMaster","bInitialised","bStateSave","_fnSaveState","_fnLoadState","_re_dic","_re_new_lines","_re_html","_re_date","_re_escape_regex","RegExp","_re_formatted_numeric","_empty","d","_intVal","integer","parseInt","isNaN","isFinite","_numToDecimal","num","decimalPoint","_fnEscapeRegex","replace","_isNumber","formatted","strType","parseFloat","_isHtml","_htmlNumeric","_stripHtml","_pluck","prop","prop2","out","ien","_pluck_order","_range","start","end","_removeEmpty","_areAllUnique","sorted","last","j","k","again","_fnHungarianMap","o","match","newKey","hungarian","key","indexOf","_hungarianMap","user","force","hungarianKey","charAt","lang","defaultDecimal","sDecimal","_addNumericSort","zeroRecords","sZeroRecords","sEmptyTable","sLoadingRecords","sInfoThousands","sThousands","decimal","util","throttle","freq","timer","frequency","that","now","Date","args","arguments","clearTimeout","setTimeout","apply","escapeRegex","_fnCompatMap","knew","old","init","sScrollX","scrollX","searchCols","aoSearchCols","oSearch","dataSort","aDataSort","__browser","browser","n","position","top","left","scrollLeft","height","overflow","append","outer","inner","barWidth","offsetWidth","clientWidth","bScrollOversize","bScrollbarLeft","Math","round","offset","bBounding","getBoundingClientRect","oBrowser","iBarWidth","_fnReduce","inc","value","isSet","hasOwnProperty","nTh","oDefaults","oCol","oColumn","createElement","sTitle","innerHTML","idx","aoPreSearchCols","oOptions","th","sWidthOrig","attr","t","mDataProp","sType","_sManualType","className","iDataSort","mDataSrc","mRender","attrTest","_bAttrSrc","_setter","rowData","meta","innerData","fnSetData","_fnSetObjectDataFn","_rowReadObject","bSortable","sSortableNone","bAsc","bDesc","sSortingClass","sSortableAsc","sSortingClassJUI","sSortJUIAscAllowed","sSortableDesc","sSortJUIDescAllowed","sSortable","sSortJUI","_fnAdjustColumnSizing","bAutoWidth","_fnCalculateColumnWidths","sWidth","_fnVisibleToColumnIndex","iMatch","aiVis","_fnGetColumns","_fnColumnIndexToVisible","iPos","_fnVisbleColumns","vis","bVisible","sParam","_fnColumnTypes","jen","ken","detectedType","cache","types","detect","_fnGetCellData","aoColDefs","aoCols","jLen","kLen","def","aTargets","targets","aDataIn","anTds","oData","oRow","_aData","aIds","_fnCreateTr","trs","_fnGetRowElements","cells","_fnNodeToDataIndex","_DT_RowIndex","_fnNodeToColumnIndex","anCells","rowIdx","colIdx","iDraw","defaultContent","sDefaultContent","cellData","iDrawError","_fnSetCellData","__reArray","__reFn","_fnSplitObjNotation","str","mSource","fetchData","arrayNotation","funcNotation","innerSrc","substring","setData","b","aLast","_fnGetDataMaster","_fnClearTable","_fnDeleteIndex","iTarget","iTargetIndex","_fnInvalidate","cellWrite","childNodes","removeChild","firstChild","_aSortData","_aFilterData","cols","_fnRowAttributes","contents","tds","td","objectRead","setter","cellProcess","trim","nextSibling","rowNode","nTrIn","nTd","create","sCellType","_DT_CellIndex","appendChild","fnCreatedCell","setAttribute","tr","DT_RowClass","split","__rowc","concat","DT_RowAttr","DT_RowData","_fnBuildHead","createHeader","iTabIndex","_fnSortAttachListener","html","_fnRenderer","sHeaderTH","sFooterTH","nTf","_fnDrawHead","aoSource","bIncludeHidden","nLocalTr","iRowspan","iColspan","aoLocal","aApplied","iColumns","_fnDraw","aPreDraw","anRows","iRowCount","iStripes","oLang","aoOpenRows","bServerSide","bDrawing","fnRecordsDisplay","iDisplayEnd","fnDisplayEnd","_fnProcessingDisplay","bDestroying","_fnAjaxUpdate","iStart","iEnd","iDataIndex","nRow","sStripe","_sRowStripe","sZero","fnRecordsTotal","sRowEmpty","body","detach","bFiltered","_fnReDraw","holdPosition","bFilter","_fnSort","_fnFilterComplete","oPreviousSearch","_drawHold","_fnAddOptionsHtml","table","holding","insertBefore","insert","sWrapper","nHolding","nTableWrapper","nTableReinsertBefore","featureNode","cOption","nNewNode","cNext","sAttr","aDom","sDom","sJUIHeader","sJUIFooter","aSplit","substr","parent","bPaginate","bLengthChange","_fnFeatureHtmlLength","_fnFeatureHtmlFilter","bProcessing","_fnFeatureHtmlProcessing","_fnFeatureHtmlTable","bInfo","_fnFeatureHtmlInfo","_fnFeatureHtmlPaginate","feature","aoFeatures","cFeature","fnInit","aanFeatures","replaceWith","aLayout","nCell","l","iColShifted","bUnique","nTrs","fnShiftCol","nHeader","aReturn","unique","bSortCellsTop","_fnBuildAjax","rbracket","ajaxData","instance","jqXHR","newData","baseAjax","sError","sServerMethod","xhr","thrown","ret","readyState","oAjaxData","fnServerData","sAjaxSource","bAjaxDataGet","_fnAjaxParameters","_fnAjaxUpdateDraw","dataProp","columnSearch","columnCount","preSearch","preColSearch","displayStart","displayLength","_iDisplayLength","param","sSearch","regex","sName","searchable","bSearchable","orderable","legacy","compat","modern","_fnAjaxDataSrc","recordsTotal","recordsFiltered","_bInitComplete","_fnInitComplete","dataSrc","sAjaxDataProp","tableId","language","previousSearch","input","sFilterInput","f","sFilter","searchFn","searchDelay","jqFilter","sSearchPlaceholder","on","_fnThrottle","e","keyCode","ev","activeElement","oInput","iForce","oPrevSearch","aoPrevSearch","fnSaveFilter","oFilter","fnRegex","bEscapeRegex","_fnFilter","_fnFilterColumn","_fnFilterCustom","filters","displayRows","merge","searchStr","smart","caseInsensitive","display","rpSearch","_fnFilterCreateSearch","test","invalidated","prevSearch","displayMaster","filtered","_fnFilterData","_sFilterRow","word","m","__filter_div","__filter_div_textContent","textContent","filterData","fomatters","wasInvalidated","toString","innerText","_fnSearchToCamel","obj","_fnSearchToHung","tid","sInfo","aoDrawCallback","_fnUpdateInfo","max","total","sInfoEmpty","sInfoFiltered","_fnInfoMacros","sInfoPostFix","fnInfoCallback","formatter","fnFormatNumber","all","ceil","iAjaxStart","deferLoading","_fnStringToCss","aData","_fnLengthChange","_fnLengthOverflow","menu","d2","lengths","select","sLengthSelect","Option","div","sLength","sLengthMenu","outerHTML","sPaginationType","plugin","pager","sPaging","p","visRecords","pages","buttons","_fnPageChange","action","records","floor","changed","r","sProcessing","scrollY","caption","captionSide","headerClone","cloneNode","footerClone","footer","_div","size","scroller","sScrollWrapper","sScrollHead","border","sScrollHeadInner","sXInner","removeAttr","sScrollBody","sScrollFoot","sScrollFootInner","scrollHead","scrollBody","scrollFoot","bCollapse","nScrollHead","nScrollBody","nScrollFoot","headerTrgEls","footerTrgEls","headerSrcEls","footerSrcEls","headerCopy","footerCopy","correction","sanityWidth","scrollXInner","divHeader","divHeaderStyle","divHeaderInner","divHeaderInnerStyle","divHeaderTable","divBodyEl","divBody","divBodyStyle","divFooterInner","divFooterTable","header","tableEl","tableStyle","ie67","dtHeaderCells","headerWidths","footerWidths","headerContent","footerContent","zeroOut","nSizer","paddingTop","paddingBottom","borderTopWidth","borderBottomWidth","scrollBarVis","scrollHeight","clientHeight","clone","prependTo","_fnApplyToChildren","outerWidth","offsetHeight","nToSize","iOuterWidth","bScrolling","padding","trigger","scrollTop","an1","an2","nNode1","nNode2","nodeType","__re_html_remove","columnIdx","visibleColumns","headerCells","tableWidthAttr","tableContainer","userInputs","styleWidth","_fnConvertToWidth","tmpTable","margin","_fnGetWidestNode","sContentPadding","holder","right","bounding","_reszEvt","bindResize","sInstance","_fnGetMaxLenString","maxIdx","srcCol","fixed","aaSortingFixed","fixedObj","nestedSort","pre","post","_idx","sortCol","aiOrig","oExtSort","formatters","_fnSortData","x","y","dataA","dataB","label","nextSort","oAria","removeAttribute","sSortAscending","sSortDescending","_fnSortListener","nextSortIdx","next","bSortMulti","sortIdx","attachTo","_fnBindAction","shiftKey","oldSort","aLastSort","sortClass","sSortColumn","bSortClasses","customData","customSort","sSortDataType","state","time","oSavedState","fnStateSaveCallback","loaded","abStateLoad","duration","iStateDuration","oLoadedState","fnStateLoadCallback","level","msg","tn","console","log","sErrMode","errMode","alert","Error","mappedName","extender","breakRefs","blur","which","preventDefault","sStore","callbackArr","eventName","reverse","Event","result","renderer","host","__apiStruct","__arrayProto","Array","prototype","_toSettings","mixed","jq","tables","context","ctxSettings","selector","opts","Api","any","count","ctx","iterator","alwaysNew","items","item","apiInst","_selector_row_indexes","apiSelector","lastIndexOf","pluck","pop","reduce","reduceRight","shift","to$","toJQuery","unshift","scope","__dt_wrapper","struct","methodScoping","struc","methodExt","propExt","register","method","heir","registerPlural","pluralName","singularName","__table_selector","paging","info","__reload","one","abort","resetPaging","_selector_run","selectFn","res","selectorType","_selector_opts","_selector_first","inst","displayFiltered","displayFilteredMap","__row_selector","sel","selInt","cellIdx","closest","rowObj","hash","thatIdx","loopRow","loopCells","newRows","modRows","__details_add","klass","addRow","created","colSpan","_details","_detailsShow","insertAfter","__details_remove","__details_display","__details_events","namespace","drawEvent","colvisEvent","destroyEvent","off","_child_obj","_child_mth","__re_column_selector","__columnData","r1","r2","__column_selector","names","visColumns","jqResult","__setColumnVis","calc","__cell_selector","allCells","fnSelector","rowSelector","columnSelector","internalOpts","cellsNoOpts","selected","set","caseInsen","versionCheck","version","iThis","iThat","aThis","aThat","isDataTable","fnIsDataTable","get","is","head","foot","fnTables","camelToHungarian","jqRows","orig","jqTable","jqTbody","jqWrapper","removedMethod","sDestroyWidth","arg1","arg2","arg3","arg4","token","plural","resolved","toFormat","JSON","parse","sessionStorage","localStorage","getItem","location","pathname","setItem","stringify","paginate","min","builder","pageButton","oJUIClasses","sVersion","afnFiltering","aTypes","ofnSearch","oSort","afnSortData","oStdClasses","oPagination","extPagination","_numbers","numbers","numbers_length","half","DT_el","simple","full","simple_numbers","full_numbers","first_last_numbers","btnDisplay","btnClass","activeEl","oPaginate","aria","counter","attach","container","button","tabIndex","disabledClass","sPageButtonDisabled","clickHandler","sFirst","sPrevious","sNext","sLast","sPageButtonActive","sPageButton","empty","focus","parsed","string","__numericReplace","decimalPlace","re1","re2","Infinity","ts","sSortAsc","sSortDesc","jqueryui","sSortJUIWrapper","sSortIcon","sSortJUIAsc","sSortJUIDesc","__htmlEscapeEntities","render","number","thousands","precision","prefix","postfix","negative","flo","toFixed","abs","intPart","floatPart","text","_fnCalculateEnd","dataTableSettings","dataTableExt"],"sourceRoot":""}