Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Dev: Remove trailing white space

- JSHint flagging warnings on trailing whitespace, so tidying up. Boring
  commit, but these things must be done!
  • Loading branch information...
commit 4c4bfb04b88d1f2bf304940157b651d1e936cb79 1 parent 6e012c8
@DataTables authored
View
852 media/js/jquery.dataTables.js
426 additions, 426 deletions not shown
View
2  media/src/api/api.internal.js
@@ -14,7 +14,7 @@
function _fnExternApiFunc (sFunc)
{
return function() {
- var aArgs = [_fnSettingsFromNode(this[DataTable.ext.iApiIndex])].concat(
+ var aArgs = [_fnSettingsFromNode(this[DataTable.ext.iApiIndex])].concat(
Array.prototype.slice.call(arguments) );
return DataTable.ext.oApi[sFunc].apply( this, aArgs );
};
View
108 media/src/api/api.methods.js
@@ -9,7 +9,7 @@
* Can be either 'current', whereby the current sorting of the table is used, or
* 'original' whereby the original order the data was read into the table is used.
* @param {string} [oOpts.page=all] Limit the selection to the currently displayed page
- * ("current") or not ("all"). If 'current' is given, then order is assumed to be
+ * ("current") or not ("all"). If 'current' is given, then order is assumed to be
* 'current' and filter is 'applied', regardless of what they might be given as.
* @returns {object} jQuery object, filtered by the given selector.
* @dtopt API
@@ -130,7 +130,7 @@ this.$ = function ( sSelector, oOpts )
* Almost identical to $ in operation, but in this case returns the data for the matched
* rows - as such, the jQuery selector used should match TR row nodes or TD/TH cell nodes
* rather than any descendants, so the data can be obtained for the row/cell. If matching
- * rows are found, the data returned is the original data array/object that was used to
+ * rows are found, the data returned is the original data array/object that was used to
* create the row (or a generated array if from a DOM source).
*
* This method is often useful in-combination with $ where both functions are given the
@@ -143,10 +143,10 @@ this.$ = function ( sSelector, oOpts )
* Can be either 'current', whereby the current sorting of the table is used, or
* 'original' whereby the original order the data was read into the table is used.
* @param {string} [oOpts.page=all] Limit the selection to the currently displayed page
- * ("current") or not ("all"). If 'current' is given, then order is assumed to be
+ * ("current") or not ("all"). If 'current' is given, then order is assumed to be
* 'current' and filter is 'applied', regardless of what they might be given as.
* @returns {array} Data for the matched elements. If any elements, as a result of the
- * selector, were not TR, TD or TH elements in the DataTable, they will have a null
+ * selector, were not TR, TD or TH elements in the DataTable, they will have a null
* entry in the array.
* @dtopt API
*
@@ -165,10 +165,10 @@ this.$ = function ( sSelector, oOpts )
* $(document).ready(function() {
* var oTable = $('#example').dataTable();
*
- * // Filter to 'Webkit' and get all data for
+ * // Filter to 'Webkit' and get all data for
* oTable.fnFilter('Webkit');
* var data = oTable._('tr', {"filter": "applied"});
- *
+ *
* // Do something with the data
* alert( data.length+" rows matched the filter" );
* } );
@@ -190,7 +190,7 @@ this._ = function ( sSelector, oOpts )
/**
* Add a single new row or multiple rows of data to the table. Please note
- * that this is suitable for client-side processing only - if you are using
+ * that this is suitable for client-side processing only - if you are using
* server-side processing (i.e. "bServerSide": true), then to add data, you
* must add it to the data source, i.e. the server-side, through an Ajax call.
* @param {array|object} mData The data to be added to the table. This can be:
@@ -201,19 +201,19 @@ this._ = function ( sSelector, oOpts )
* <li>array of objects - multiple data objects when using <i>mData</i></li>
* </ul>
* @param {bool} [bRedraw=true] redraw the table or not
- * @returns {array} An array of integers, representing the list of indexes in
- * <i>aoData</i> ({@link DataTable.models.oSettings}) that have been added to
+ * @returns {array} An array of integers, representing the list of indexes in
+ * <i>aoData</i> ({@link DataTable.models.oSettings}) that have been added to
* the table.
* @dtopt API
*
* @example
* // Global var for counter
* var giCount = 2;
- *
+ *
* $(document).ready(function() {
* $('#example').dataTable();
* } );
- *
+ *
* function fnClickAddRow() {
* $('#example').dataTable().fnAddData( [
* giCount+".1",
@@ -221,7 +221,7 @@ this._ = function ( sSelector, oOpts )
* giCount+".3",
* giCount+".4" ]
* );
- *
+ *
* giCount++;
* }
*/
@@ -272,9 +272,9 @@ this.fnAddData = function( mData, bRedraw )
/**
- * This function will make DataTables recalculate the column sizes, based on the data
- * contained in the table and the sizes applied to the columns (in the DOM, CSS or
- * through the sWidth parameter). This can be useful when the width of the table's
+ * This function will make DataTables recalculate the column sizes, based on the data
+ * contained in the table and the sizes applied to the columns (in the DOM, CSS or
+ * through the sWidth parameter). This can be useful when the width of the table's
* parent element changes (for example a window resize).
* @param {boolean} [bRedraw=true] Redraw the table or not, you will typically want to
* @dtopt API
@@ -285,7 +285,7 @@ this.fnAddData = function( mData, bRedraw )
* "sScrollY": "200px",
* "bPaginate": false
* } );
- *
+ *
* $(window).bind('resize', function () {
* oTable.fnAdjustColumnSizing();
* } );
@@ -316,7 +316,7 @@ this.fnAdjustColumnSizing = function ( bRedraw )
* @example
* $(document).ready(function() {
* var oTable = $('#example').dataTable();
- *
+ *
* // Immediately 'nuke' the current rows (perhaps waiting for an Ajax callback...)
* oTable.fnClearTable();
* } );
@@ -335,7 +335,7 @@ this.fnClearTable = function( bRedraw )
/**
- * The exact opposite of 'opening' a row, this function will close any rows which
+ * The exact opposite of 'opening' a row, this function will close any rows which
* are currently 'open'.
* @param {node} nTr the table row to 'close'
* @returns {int} 0 on success, or 1 if failed (can't find the row)
@@ -344,7 +344,7 @@ this.fnClearTable = function( bRedraw )
* @example
* $(document).ready(function() {
* var oTable;
- *
+ *
* // 'open' an information row when a row is clicked on
* $('#example tbody tr').click( function () {
* if ( oTable.fnIsOpen(this) ) {
@@ -353,7 +353,7 @@ this.fnClearTable = function( bRedraw )
* oTable.fnOpen( this, "Temporary row opened", "info_row" );
* }
* } );
- *
+ *
* oTable = $('#example').dataTable();
* } );
*/
@@ -392,7 +392,7 @@ this.fnClose = function( nTr )
* @example
* $(document).ready(function() {
* var oTable = $('#example').dataTable();
- *
+ *
* // Immediately remove the first row
* oTable.fnDeleteRow( 0 );
* } );
@@ -403,7 +403,7 @@ this.fnDeleteRow = function( mTarget, fnCallBack, bRedraw )
var oSettings = _fnSettingsFromNode( this[DataTable.ext.iApiIndex] );
var i, iLen, iAODataIndex;
- iAODataIndex = (typeof mTarget === 'object') ?
+ iAODataIndex = (typeof mTarget === 'object') ?
_fnNodeToDataIndex(oSettings, mTarget) : mTarget;
/* Return the data array from this row */
@@ -453,7 +453,7 @@ this.fnDeleteRow = function( mTarget, fnCallBack, bRedraw )
/**
- * Restore the table to it's original state in the DOM by removing all of DataTables
+ * Restore the table to it's original state in the DOM by removing all of DataTables
* enhancements, alterations to the DOM structure of the table and event listeners.
* @param {boolean} [bRemove=false] Completely remove the table from the DOM
* @dtopt API
@@ -601,7 +601,7 @@ this.fnDestroy = function ( bRemove )
* @example
* $(document).ready(function() {
* var oTable = $('#example').dataTable();
- *
+ *
* // Re-draw the table - you wouldn't want to do it here, but it's an example :-)
* oTable.fnDraw();
* } );
@@ -634,7 +634,7 @@ this.fnDraw = function( bComplete )
* @example
* $(document).ready(function() {
* var oTable = $('#example').dataTable();
- *
+ *
* // Sometime later - filter...
* oTable.fnFilter( 'test string' );
* } );
@@ -712,7 +712,7 @@ this.fnFilter = function( sInput, iColumn, bRegex, bSmart, bShowGlobal, bCaseIns
/**
- * Get the data for the whole table, an individual row or an individual cell based on the
+ * Get the data for the whole table, an individual row or an individual cell based on the
* provided parameters.
* @param {int|node} [mRow] A TR row node, TD/TH cell node or an integer. If given as
* a TR node then the data source for the whole row will be returned. If given as a
@@ -780,8 +780,8 @@ this.fnGetData = function( mRow, iCol )
/**
- * Get an array of the TR nodes that are used in the table's body. Note that you will
- * typically want to use the '$' API method in preference to this as it is more
+ * Get an array of the TR nodes that are used in the table's body. Note that you will
+ * typically want to use the '$' API method in preference to this as it is more
* flexible.
* @param {int} [iRow] Optional row index for the TR element you want
* @returns {array|node} If iRow is undefined, returns an array of all TR elements
@@ -791,7 +791,7 @@ this.fnGetData = function( mRow, iCol )
* @example
* $(document).ready(function() {
* var oTable = $('#example').dataTable();
- *
+ *
* // Get the nodes from the table
* var nNodes = oTable.fnGetNodes( );
* } );
@@ -813,7 +813,7 @@ this.fnGetNodes = function( iRow )
* and column index including hidden columns
* @param {node} nNode this can either be a TR, TD or TH in the table's body
* @returns {int} If nNode is given as a TR, then a single index is returned, or
- * if given as a cell, an array of [row index, column index (visible),
+ * if given as a cell, an array of [row index, column index (visible),
* column index (all)] is given.
* @dtopt API
*
@@ -822,15 +822,15 @@ this.fnGetNodes = function( iRow )
* $('#example tbody td').click( function () {
* // Get the position of the current data from the node
* var aPos = oTable.fnGetPosition( this );
- *
+ *
* // Get the data array for this row
* var aData = oTable.fnGetData( aPos[0] );
- *
+ *
* // Update the data array and return the value
* aData[ aPos[1] ] = 'clicked';
* this.innerHTML = 'clicked';
* } );
- *
+ *
* // Init DataTables
* oTable = $('#example').dataTable();
* } );
@@ -863,7 +863,7 @@ this.fnGetPosition = function( nNode )
* @example
* $(document).ready(function() {
* var oTable;
- *
+ *
* // 'open' an information row when a row is clicked on
* $('#example tbody tr').click( function () {
* if ( oTable.fnIsOpen(this) ) {
@@ -872,7 +872,7 @@ this.fnGetPosition = function( nNode )
* oTable.fnOpen( this, "Temporary row opened", "info_row" );
* }
* } );
- *
+ *
* oTable = $('#example').dataTable();
* } );
*/
@@ -893,9 +893,9 @@ this.fnIsOpen = function( nTr )
/**
- * This function will place a new row directly after a row which is currently
- * on display on the page, with the HTML contents that is passed into the
- * function. This can be used, for example, to ask for confirmation that a
+ * This function will place a new row directly after a row which is currently
+ * on display on the page, with the HTML contents that is passed into the
+ * function. This can be used, for example, to ask for confirmation that a
* particular record should be deleted.
* @param {node} nTr The table row to 'open'
* @param {string|node|jQuery} mHtml The HTML to put into the row
@@ -908,7 +908,7 @@ this.fnIsOpen = function( nTr )
* @example
* $(document).ready(function() {
* var oTable;
- *
+ *
* // 'open' an information row when a row is clicked on
* $('#example tbody tr').click( function () {
* if ( oTable.fnIsOpen(this) ) {
@@ -917,7 +917,7 @@ this.fnIsOpen = function( nTr )
* oTable.fnOpen( this, "Temporary row opened", "info_row" );
* }
* } );
- *
+ *
* oTable = $('#example').dataTable();
* } );
*/
@@ -968,8 +968,8 @@ this.fnOpen = function( nTr, mHtml, sClass )
/**
- * Change the pagination - provides the internal logic for pagination in a simple API
- * function. With this function you can have a DataTables table go to the next,
+ * Change the pagination - provides the internal logic for pagination in a simple API
+ * function. With this function you can have a DataTables table go to the next,
* previous, first or last pages.
* @param {string|int} mAction Paging action to take: "first", "previous", "next" or "last"
* or page number to jump to (integer), note that page 0 is the first page.
@@ -1005,7 +1005,7 @@ this.fnPageChange = function ( mAction, bRedraw )
* @example
* $(document).ready(function() {
* var oTable = $('#example').dataTable();
- *
+ *
* // Hide the second column after initialisation
* oTable.fnSetColumnVis( 1, false );
* } );
@@ -1058,14 +1058,14 @@ this.fnSetColumnVis = function ( iCol, bShow, bRedraw )
{
if ( bAppend )
{
- aoData[i].nTr.appendChild(
+ aoData[i].nTr.appendChild(
aoData[i]._anHidden[iCol]
);
}
else
{
aoData[i].nTr.insertBefore(
- aoData[i]._anHidden[iCol],
+ aoData[i]._anHidden[iCol],
_fnGetTdNodes( oSettings, i )[iBefore] );
}
}
@@ -1101,8 +1101,8 @@ this.fnSetColumnVis = function ( iCol, bShow, bRedraw )
oSettings.aoOpenRows[i].nTr.colSpan = _fnVisbleColumns( oSettings );
}
- /* Do a redraw incase anything depending on the table columns needs it
- * (built-in: scrolling)
+ /* Do a redraw incase anything depending on the table columns needs it
+ * (built-in: scrolling)
*/
if ( bRedraw === undefined || bRedraw )
{
@@ -1116,7 +1116,7 @@ this.fnSetColumnVis = function ( iCol, bShow, bRedraw )
/**
* Get the settings for a particular table for external manipulation
- * @returns {object} DataTables settings object. See
+ * @returns {object} DataTables settings object. See
* {@link DataTable.models.oSettings}
* @dtopt API
*
@@ -1124,7 +1124,7 @@ this.fnSetColumnVis = function ( iCol, bShow, bRedraw )
* $(document).ready(function() {
* var oTable = $('#example').dataTable();
* var oSettings = oTable.fnSettings();
- *
+ *
* // Show an example parameter from the settings
* alert( oSettings._iDisplayStart );
* } );
@@ -1137,14 +1137,14 @@ this.fnSettings = function()
/**
* Sort the table by a particular column
- * @param {int} iCol the data index to sort on. Note that this will not match the
+ * @param {int} iCol the data index to sort on. Note that this will not match the
* 'display index' if you have hidden data entries
* @dtopt API
*
* @example
* $(document).ready(function() {
* var oTable = $('#example').dataTable();
- *
+ *
* // Sort immediately with columns 0 and 1
* oTable.fnSort( [ [0,'asc'], [1,'asc'] ] );
* } );
@@ -1167,7 +1167,7 @@ this.fnSort = function( aaSort )
* @example
* $(document).ready(function() {
* var oTable = $('#example').dataTable();
- *
+ *
* // Sort on column 1, when 'sorter' is clicked on
* oTable.fnSortListener( document.getElementById('sorter'), 1 );
* } );
@@ -1204,7 +1204,7 @@ this.fnUpdate = function( mData, mRow, iColumn, bRedraw, bAction )
{
var oSettings = _fnSettingsFromNode( this[DataTable.ext.iApiIndex] );
var i, sDisplay;
- var iRow = (typeof mRow === 'object') ?
+ var iRow = (typeof mRow === 'object') ?
_fnNodeToDataIndex(oSettings, mRow) : mRow;
if ( iColumn === undefined || iColumn === null )
@@ -1236,7 +1236,7 @@ this.fnUpdate = function( mData, mRow, iColumn, bRedraw, bAction )
*/
var iDisplayIndex = $.inArray( iRow, oSettings.aiDisplay );
oSettings.asDataSearch[iDisplayIndex] = _fnBuildSearchRow(
- oSettings,
+ oSettings,
_fnGetRowData( oSettings, iRow, 'filter', _fnGetColumns( oSettings, 'bSearchable' ) )
);
View
2  media/src/api/api.static.js
@@ -67,7 +67,7 @@ DataTable.fnIsDataTable = function ( nTable )
/**
* Get all DataTable tables that have been initialised - optionally you can select to
* get only currently visible tables.
- * @param {boolean} [bVisible=false] Flag to indicate if you want all (default) or
+ * @param {boolean} [bVisible=false] Flag to indicate if you want all (default) or
* visible tables only.
* @returns {array} Array of TABLE nodes (not DataTable instances) which are DataTables
* @static
View
4 media/src/core/core.columns.js
@@ -139,7 +139,7 @@ function _fnColumnOptions( oSettings, iCol, oOptions )
/**
- * Adjust the table column widths for new data. Note: you would probably want to
+ * Adjust the table column widths for new data. Note: you would probably want to
* do a redraw after calling this function!
* @param {object} oSettings dataTables settings object
* @memberof DataTable#oApi
@@ -210,7 +210,7 @@ function _fnVisbleColumns( oSettings )
/**
* Get an array of column indexes that match a given property
* @param {object} oSettings dataTables settings object
- * @param {string} sParam Parameter in aoColumns to look for - typically
+ * @param {string} sParam Parameter in aoColumns to look for - typically
* bVisible or bSearchable
* @returns {array} Array of indexes with matched properties
* @memberof DataTable#oApi
View
2  media/src/core/core.compat.js
@@ -4,7 +4,7 @@
* Create a mapping object that allows camel case parameters to be looked up
* for their Hungarian counterparts. The mapping is stored in a private
* parameter called `_hungaianMap` which can be accessed on the source object.
- * @param {object} o
+ * @param {object} o
* @memberof DataTable#oApi
*/
function _fnHungarianMap ( o )
View
6 media/src/core/core.constructor.js
@@ -171,8 +171,8 @@ else if ( oSettings.oFeatures.bDeferRender )
if ( oInit.bJQueryUI )
{
- /* Use the JUI classes object for display. You could clone the oStdClasses object if
- * you want to have multiple tables with multiple independent classes
+ /* Use the JUI classes object for display. You could clone the oStdClasses object if
+ * you want to have multiple tables with multiple independent classes
*/
$.extend( oSettings.oClasses, DataTable.ext.oJUIClasses );
@@ -226,7 +226,7 @@ if ( oInit.aaData !== null )
if ( oInit.oLanguage.sUrl !== "" )
{
/* Get the language definitions from a file - because this Ajax call makes the language
- * get async to the remainder of this function we use bInitHandedOff to indicate that
+ * get async to the remainder of this function we use bInitHandedOff to indicate that
* _fnInitialise will be fired by the returned Ajax handler, rather than the constructor
*/
oSettings.oLanguage.sUrl = oInit.oLanguage.sUrl;
View
4 media/src/core/core.data.js
@@ -1,5 +1,5 @@
/**
- * Add a data array to the table, creating DOM node etc. This is the parallel to
+ * Add a data array to the table, creating DOM node etc. This is the parallel to
* _fnGatherData, but for adding rows from a Javascript source, rather than a
* DOM source.
* @param {object} oSettings dataTables settings object
@@ -478,7 +478,7 @@ function _fnClearTable( oSettings )
/**
- * Take an array of integers (index array) and remove a target integer (value - not
+ * Take an array of integers (index array) and remove a target integer (value - not
* the key!)
* @param {array} a Index array to target
* @param {int} iTarget value to find
View
24 media/src/core/core.draw.js
@@ -141,7 +141,7 @@ function _fnBuildHead( oSettings )
_fnDetectHeader( oSettings.aoHeader, oSettings.nTHead );
}
- /* ARIA role for the rows */
+ /* ARIA role for the rows */
$(oSettings.nTHead).children('tr').attr('role', 'row');
/* Add the extra markup needed by jQuery UI's themes */
@@ -206,13 +206,13 @@ function _fnBuildHead( oSettings )
* Draw the header (or footer) element based on the column visibility states. The
* methodology here is to use the layout array from _fnDetectHeader, modified for
* the instantaneous column visibility, to construct the new layout. The grid is
- * traversed over cell at a time in a rows x columns grid fashion, although each
+ * traversed over cell at a time in a rows x columns grid fashion, although each
* cell insert can cover multiple elements in the grid - which is tracks using the
* aApplied array. Cell inserts in the grid will only occur where there isn't
* already a cell in that position.
* @param {object} oSettings dataTables settings object
* @param array {objects} aoSource Layout array from _fnDetectHeader
- * @param {boolean} [bIncludeHidden=false] If true then include the hidden columns in the calc,
+ * @param {boolean} [bIncludeHidden=false] If true then include the hidden columns in the calc,
* @memberof DataTable#oApi
*/
function _fnDrawHead( oSettings, aoSource, bIncludeHidden )
@@ -389,7 +389,7 @@ function _fnDraw( oSettings )
}
/* Row callback functions - might want to manipulate the row */
- _fnCallbackFire( oSettings, 'aoRowCallback', null,
+ _fnCallbackFire( oSettings, 'aoRowCallback', null,
[nRow, oSettings.aoData[ oSettings.aiDisplay[j] ]._aData, iRowCount, j] );
anRows.push( nRow );
@@ -437,15 +437,15 @@ function _fnDraw( oSettings )
}
/* Header and footer callbacks */
- _fnCallbackFire( oSettings, 'aoHeaderCallback', 'header', [ $(oSettings.nTHead).children('tr')[0],
+ _fnCallbackFire( oSettings, 'aoHeaderCallback', 'header', [ $(oSettings.nTHead).children('tr')[0],
_fnGetDataMaster( oSettings ), oSettings._iDisplayStart, oSettings.fnDisplayEnd(), oSettings.aiDisplay ] );
- _fnCallbackFire( oSettings, 'aoFooterCallback', 'footer', [ $(oSettings.nTFoot).children('tr')[0],
+ _fnCallbackFire( oSettings, 'aoFooterCallback', 'footer', [ $(oSettings.nTFoot).children('tr')[0],
_fnGetDataMaster( oSettings ), oSettings._iDisplayStart, oSettings.fnDisplayEnd(), oSettings.aiDisplay ] );
- /*
+ /*
* Need to remove any old row from the display - note we can't just empty the tbody using
- * $().html('') since this will unbind the jQuery event handlers (even although the node
+ * $().html('') since this will unbind the jQuery event handlers (even although the node
* still exists!) - equally we can't use innerHTML, since IE throws an exception.
*/
var
@@ -462,7 +462,7 @@ function _fnDraw( oSettings )
* up. When not infinite scroll, always do it.
*/
if ( !oSettings.oScroll.bInfinite || !oSettings._bInitComplete ||
- oSettings.bSorted || oSettings.bFiltered )
+ oSettings.bSorted || oSettings.bFiltered )
{
while( (n = oSettings.nTBody.firstChild) )
{
@@ -541,7 +541,7 @@ function _fnAddOptionsHtml ( oSettings )
var nHolding = $('<div></div>')[0];
oSettings.nTable.parentNode.insertBefore( nHolding, oSettings.nTable );
- /*
+ /*
* All DataTables are wrapped in a div
*/
oSettings.nTableWrapper = $('<div id="'+oSettings.sTableId+'_wrapper" class="'+oSettings.oClasses.sWrapper+'" role="grid"></div>')[0];
@@ -734,7 +734,7 @@ function _fnDetectHeader ( aLayout, nThead )
iColspan = (!iColspan || iColspan===0 || iColspan===1) ? 1 : iColspan;
iRowspan = (!iRowspan || iRowspan===0 || iRowspan===1) ? 1 : iRowspan;
- /* There might be colspan cells already in this row, so shift our target
+ /* There might be colspan cells already in this row, so shift our target
* accordingly
*/
iColShifted = fnShiftCol( aLayout, i, iColumn );
@@ -786,7 +786,7 @@ function _fnGetUniqueThs ( oSettings, nHeader, aLayout )
{
for ( var j=0, jLen=aLayout[i].length ; j<jLen ; j++ )
{
- if ( aLayout[i][j].unique &&
+ if ( aLayout[i][j].unique &&
(!aReturn[j] || !oSettings.bSortCellsTop) )
{
aReturn[j] = aLayout[i][j].cell;
View
46 media/src/core/core.filter.js
@@ -45,11 +45,11 @@ function _fnFeatureHtmlFilter ( oSettings )
/* Now do the filter */
if ( val != oPreviousSearch.sSearch )
{
- _fnFilterComplete( oSettings, {
- "sSearch": val,
+ _fnFilterComplete( oSettings, {
+ "sSearch": val,
"bRegex": oPreviousSearch.bRegex,
"bSmart": oPreviousSearch.bSmart ,
- "bCaseInsensitive": oPreviousSearch.bCaseInsensitive
+ "bCaseInsensitive": oPreviousSearch.bCaseInsensitive
} );
}
} );
@@ -98,7 +98,7 @@ function _fnFilterComplete ( oSettings, oInput, iForce )
/* Now do the individual column filter */
for ( var i=0 ; i<oSettings.aoPreSearchCols.length ; i++ )
{
- _fnFilterColumn( oSettings, aoPrevSearch[i].sSearch, i, aoPrevSearch[i].bRegex,
+ _fnFilterColumn( oSettings, aoPrevSearch[i].sSearch, i, aoPrevSearch[i].bRegex,
aoPrevSearch[i].bSmart, aoPrevSearch[i].bCaseInsensitive );
}
@@ -229,9 +229,9 @@ function _fnFilter( oSettings, sInput, iForce, bRegex, bSmart, bCaseInsensitive
else
{
/*
- * We are starting a new search or the new search string is smaller
+ * We are starting a new search or the new search string is smaller
* then the old one (i.e. delete). Search from the master array
- */
+ */
if ( oSettings.aiDisplay.length == oSettings.aiDisplayMaster.length ||
oPrevSearch.sSearch.length > sInput.length || iForce == 1 ||
sInput.indexOf(oPrevSearch.sSearch) !== 0 )
@@ -243,7 +243,7 @@ function _fnFilter( oSettings, sInput, iForce, bRegex, bSmart, bCaseInsensitive
_fnBuildSearchArray( oSettings, 1 );
/* Search through all records to populate the search array
- * The the oSettings.aiDisplayMaster and asDataSearch arrays have 1 to 1
+ * The the oSettings.aiDisplayMaster and asDataSearch arrays have 1 to 1
* mapping
*/
for ( i=0 ; i<oSettings.aiDisplayMaster.length ; i++ )
@@ -253,24 +253,24 @@ function _fnFilter( oSettings, sInput, iForce, bRegex, bSmart, bCaseInsensitive
oSettings.aiDisplay.push( oSettings.aiDisplayMaster[i] );
}
}
- }
- else
+ }
+ else
{
- /* Using old search array - refine it - do it this way for speed
- * Don't have to search the whole master array again
+ /* Using old search array - refine it - do it this way for speed
+ * Don't have to search the whole master array again
*/
- var iIndexCorrector = 0;
-
- /* Search the current results */
- for ( i=0 ; i<oSettings.asDataSearch.length ; i++ )
+ var iIndexCorrector = 0;
+
+ /* Search the current results */
+ for ( i=0 ; i<oSettings.asDataSearch.length ; i++ )
{
- if ( ! rpSearch.test(oSettings.asDataSearch[i]) )
+ if ( ! rpSearch.test(oSettings.asDataSearch[i]) )
{
- oSettings.aiDisplay.splice( i-iIndexCorrector, 1 );
- iIndexCorrector++;
- }
- }
- }
+ oSettings.aiDisplay.splice( i-iIndexCorrector, 1 );
+ iIndexCorrector++;
+ }
+ }
+ }
}
}
@@ -290,8 +290,8 @@ function _fnBuildSearchArray ( oSettings, iMaster )
var aiFilterColumns = _fnGetColumns( oSettings, 'bSearchable' );
var aiIndex = (iMaster===1) ?
- oSettings.aiDisplayMaster :
- oSettings.aiDisplay;
+ oSettings.aiDisplayMaster :
+ oSettings.aiDisplay;
for ( var i=0, iLen=aiIndex.length ; i<iLen ; i++ )
{
View
2  media/src/core/core.info.js
@@ -70,7 +70,7 @@ function _fnUpdateInfo ( oSettings )
if ( oLang.fnInfoCallback !== null )
{
- sOut = oLang.fnInfoCallback.call( oSettings.oInstance,
+ sOut = oLang.fnInfoCallback.call( oSettings.oInstance,
oSettings, iStart, iEnd, iMax, iTotal, sOut );
}
View
2  media/src/core/core.length.js
@@ -19,7 +19,7 @@ function _fnFeatureHtmlLength ( oSettings )
var i, iLen;
var aLengthMenu = oSettings.aLengthMenu;
- if ( aLengthMenu.length == 2 && typeof aLengthMenu[0] === 'object' &&
+ if ( aLengthMenu.length == 2 && typeof aLengthMenu[0] === 'object' &&
typeof aLengthMenu[1] === 'object' )
{
for ( i=0, iLen=aLengthMenu[0].length ; i<iLen ; i++ )
View
4 media/src/core/core.page.js
@@ -1,7 +1,7 @@
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- * Note that most of the paging logic is done in
+ * Note that most of the paging logic is done in
* DataTable.ext.oPagination
*/
@@ -21,7 +21,7 @@ function _fnFeatureHtmlPaginate ( oSettings )
var nPaginate = document.createElement( 'div' );
nPaginate.className = oSettings.oClasses.sPaging+oSettings.sPaginationType;
- DataTable.ext.oPagination[ oSettings.sPaginationType ].fnInit( oSettings, nPaginate,
+ DataTable.ext.oPagination[ oSettings.sPaginationType ].fnInit( oSettings, nPaginate,
function( oSettings ) {
_fnCalculateEnd( oSettings );
_fnDraw( oSettings );
View
22 media/src/core/core.scrolling.js
@@ -38,7 +38,7 @@ function _fnFeatureHtmlTable ( oSettings )
nScrollHeadTable = oSettings.nTable.cloneNode(false),
nScrollFootTable = oSettings.nTable.cloneNode(false),
nThead = oSettings.nTable.getElementsByTagName('thead')[0],
- nTfoot = oSettings.nTable.getElementsByTagName('tfoot').length === 0 ? null :
+ nTfoot = oSettings.nTable.getElementsByTagName('tfoot').length === 0 ? null :
oSettings.nTable.getElementsByTagName('tfoot')[0],
oClasses = oSettings.oClasses;
@@ -148,7 +148,7 @@ function _fnFeatureHtmlTable ( oSettings )
if ( !oSettings.bDrawing && $(this).scrollTop() !== 0 )
{
/* Check if we should load the next data set */
- if ( $(this).scrollTop() + $(this).height() >
+ if ( $(this).scrollTop() + $(this).height() >
$(oSettings.nTable).height() - oSettings.oScroll.iLoadGap )
{
/* Only do the redraw if we have to - we might be at the end of the data */
@@ -270,7 +270,7 @@ function _fnScrollDraw ( o )
* the scrollbar - which is shouldn't. When there is a scrollbar we need to take this
* into account.
*/
- if ( ie67 && ($('tbody', nScrollBody).height() > nScrollBody.offsetHeight ||
+ if ( ie67 && ($('tbody', nScrollBody).height() > nScrollBody.offsetHeight ||
$(nScrollBody).css('overflow-y') == "scroll") )
{
o.nTable.style.width = _fnStringToCss( $(o.nTable).outerWidth() - o.oScroll.iBarWidth);
@@ -311,16 +311,16 @@ function _fnScrollDraw ( o )
* set the width based on the real headers
*/
- // Apply all styles in one pass. Invalidates layout only once because we don't read any
+ // Apply all styles in one pass. Invalidates layout only once because we don't read any
// DOM properties.
_fnApplyToChildren( zeroOut, anHeadSizers );
-
- // Read all widths in next pass. Forces layout only once because we do not change
+
+ // Read all widths in next pass. Forces layout only once because we do not change
// any DOM properties.
_fnApplyToChildren( function(nSizer) {
aApplied.push( _fnStringToCss( $(nSizer).width() ) );
}, anHeadSizers );
-
+
// Apply all widths in final pass. Invalidates layout only once because we do not
// read any DOM properties.
_fnApplyToChildren( function(nToSize, i) {
@@ -333,11 +333,11 @@ function _fnScrollDraw ( o )
if ( o.nTFoot !== null )
{
_fnApplyToChildren( zeroOut, anFootSizers );
-
+
_fnApplyToChildren( function(nSizer) {
aAppliedFooter.push( _fnStringToCss( $(nSizer).width() ) );
}, anFootSizers );
-
+
_fnApplyToChildren( function(nToSize, i) {
nToSize.style.width = aAppliedFooter[i];
}, anFootToSize );
@@ -371,12 +371,12 @@ function _fnScrollDraw ( o )
if ( $(o.nTable).outerWidth() < iSanityWidth )
{
/* The min width depends upon if we have a vertical scrollbar visible or not */
- var iCorrection = ((nScrollBody.scrollHeight > nScrollBody.offsetHeight ||
+ var iCorrection = ((nScrollBody.scrollHeight > nScrollBody.offsetHeight ||
$(nScrollBody).css('overflow-y') == "scroll")) ?
iSanityWidth+o.oScroll.iBarWidth : iSanityWidth;
/* IE6/7 are a law unto themselves... */
- if ( ie67 && (nScrollBody.scrollHeight >
+ if ( ie67 && (nScrollBody.scrollHeight >
nScrollBody.offsetHeight || $(nScrollBody).css('overflow-y') == "scroll") )
{
o.nTable.style.width = _fnStringToCss( iCorrection-o.oScroll.iBarWidth );
View
12 media/src/core/core.sizing.js
@@ -55,7 +55,7 @@ function _fnCalculateColumnWidths ( oSettings )
if ( oSettings.aoColumns[i].sWidth !== null )
{
- iTmpWidth = _fnConvertToWidth( oSettings.aoColumns[i].sWidthOrig,
+ iTmpWidth = _fnConvertToWidth( oSettings.aoColumns[i].sWidthOrig,
nWrapper );
if ( iTmpWidth !== null )
{
@@ -67,8 +67,8 @@ function _fnCalculateColumnWidths ( oSettings )
}
}
- /* If the number of columns in the DOM equals the number that we have to process in
- * DataTables, then we can use the offsets that are created by the web-browser. No custom
+ /* If the number of columns in the DOM equals the number that we have to process in
+ * DataTables, then we can use the offsets that are created by the web-browser. No custom
* sizes can be set in order for this to happen, nor scrolling used
*/
if ( iColums == oHeaders.length && iUserInputs === 0 && iVisibleColumns == iColums &&
@@ -197,7 +197,7 @@ function _fnCalculateColumnWidths ( oSettings )
oNodes = _fnGetUniqueThs( oSettings, $('thead', nCalcTmp)[0] );
}
- /* Browsers need a bit of a hand when a width is assigned to any columns when
+ /* Browsers need a bit of a hand when a width is assigned to any columns when
* x-scrolling as they tend to collapse the table to the min-width, even if
* we sent the column widths. So we need to keep track of what the table width
* should be by summing the user given values, and the automatic values
@@ -369,7 +369,7 @@ function _fnStringToCss( s )
* @memberof DataTable#oApi
*/
function _fnScrollBarWidth ()
-{
+{
var inner = document.createElement('p');
var style = inner.style;
style.width = "100%";
@@ -398,6 +398,6 @@ function _fnScrollBarWidth ()
}
document.body.removeChild(outer);
- return (w1 - w2);
+ return (w1 - w2);
}
View
44 media/src/core/core.sort.js
@@ -11,7 +11,7 @@ function _fnSort ( oSettings, bApplyClasses )
i, iLen, j, jLen, k, kLen,
sDataType, nTh,
aSort = [],
- aiOrig = [],
+ aiOrig = [],
oExtSort = DataTable.ext.oSort,
aoData = oSettings.aoData,
aoColumns = oSettings.aoColumns,
@@ -65,7 +65,7 @@ function _fnSort ( oSettings, bApplyClasses )
sDataType = oSettings.aoColumns[ iColumn ].sSortDataType;
if ( DataTable.ext.afnSortData[sDataType] )
{
- var aData = DataTable.ext.afnSortData[sDataType].call(
+ var aData = DataTable.ext.afnSortData[sDataType].call(
oSettings.oInstance, oSettings, iColumn, iVisColumn
);
if ( aData.length === aoData.length )
@@ -113,17 +113,17 @@ function _fnSort ( oSettings, bApplyClasses )
* and sorting function (from oSort) in a certain direction. It's reasonably complex to
* follow on it's own, but this is what we want (example two column sorting):
* fnLocalSorting = function(a,b){
- * var iTest;
- * iTest = oSort['string-asc']('data11', 'data12');
- * if (iTest !== 0)
- * return iTest;
+ * var iTest;
+ * iTest = oSort['string-asc']('data11', 'data12');
+ * if (iTest !== 0)
+ * return iTest;
* iTest = oSort['numeric-desc']('data21', 'data22');
* if (iTest !== 0)
- * return iTest;
- * return oSort['numeric-asc']( aiOrig[a], aiOrig[b] );
+ * return iTest;
+ * return oSort['numeric-asc']( aiOrig[a], aiOrig[b] );
* }
* Basically we have a test for each sorting column, if the data in that column is equal,
- * test the next column. If all columns match, then we use a numeric sort on the row
+ * test the next column. If all columns match, then we use a numeric sort on the row
* positions in the original data array to provide a stable sort.
*
* Note - I know it seems excessive to have two sorting methods, but the first is around
@@ -210,7 +210,7 @@ function _fnSort ( oSettings, bApplyClasses )
{
nTh.setAttribute('aria-sort', aSort[0].dir=="asc" ? "ascending" : "descending" );
- var nextSort = (aoColumns[i].asSorting[ aSort[0].index+1 ]) ?
+ var nextSort = (aoColumns[i].asSorting[ aSort[0].index+1 ]) ?
aoColumns[i].asSorting[ aSort[0].index+1 ] : aoColumns[i].asSorting[0];
nTh.setAttribute('aria-label', sTitle+
(nextSort=="asc" ? oAria.sSortAscending : oAria.sSortDescending) );
@@ -266,14 +266,14 @@ function _fnSortAttachListener ( oSettings, nNode, iDataIndex, fnCallback )
/*
* This is a little bit odd I admit... I declare a temporary function inside the scope of
- * _fnBuildHead and the click handler in order that the code presented here can be used
- * twice - once for when bProcessing is enabled, and another time for when it is
+ * _fnBuildHead and the click handler in order that the code presented here can be used
+ * twice - once for when bProcessing is enabled, and another time for when it is
* disabled, as we need to perform slightly different actions.
- * Basically the issue here is that the Javascript engine in modern browsers don't
+ * Basically the issue here is that the Javascript engine in modern browsers don't
* appear to allow the rendering engine to update the display while it is still executing
- * it's thread (well - it does but only after long intervals). This means that the
+ * it's thread (well - it does but only after long intervals). This means that the
* 'processing' display doesn't appear for a table sort. To break the js thread up a bit
- * I force an execution break by using setTimeout - but this breaks the expected
+ * I force an execution break by using setTimeout - but this breaks the expected
* thread continuation for the end-developer's point of view (their code would execute
* too early), so we only do it when we absolutely have to.
*/
@@ -311,7 +311,7 @@ function _fnSortAttachListener ( oSettings, nNode, iDataIndex, fnCallback )
/* No sort yet - add it in */
if ( bFound === false )
{
- oSettings.aaSorting.push( [ iDataIndex,
+ oSettings.aaSorting.push( [ iDataIndex,
oSettings.aoColumns[iDataIndex].asSorting[0], 0 ] );
}
}
@@ -332,7 +332,7 @@ function _fnSortAttachListener ( oSettings, nNode, iDataIndex, fnCallback )
else
{
oSettings.aaSorting.splice( 0, oSettings.aaSorting.length );
- oSettings.aaSorting.push( [ iDataIndex,
+ oSettings.aaSorting.push( [ iDataIndex,
oSettings.aoColumns[iDataIndex].asSorting[0], 0 ] );
}
}
@@ -367,7 +367,7 @@ function _fnSortAttachListener ( oSettings, nNode, iDataIndex, fnCallback )
/**
- * Set the sorting classes on the header, Note: it is safe to call this function
+ * Set the sorting classes on the header, Note: it is safe to call this function
* when bSort and bSortClasses are false
* @param {object} oSettings dataTables settings object
* @memberof DataTable#oApi
@@ -420,13 +420,13 @@ function _fnSortingClasses( oSettings )
{
/* jQuery UI uses extra markup */
var jqSpan = $("span."+oClasses.sSortIcon, oSettings.aoColumns[i].nTh);
- jqSpan.removeClass(oClasses.sSortJUIAsc +" "+ oClasses.sSortJUIDesc +" "+
+ jqSpan.removeClass(oClasses.sSortJUIAsc +" "+ oClasses.sSortJUIDesc +" "+
oClasses.sSortJUI +" "+ oClasses.sSortJUIAscAllowed +" "+ oClasses.sSortJUIDescAllowed );
var sSpanClass;
if ( iFound == -1 )
{
- sSpanClass = oSettings.aoColumns[i].sSortingClassJUI;
+ sSpanClass = oSettings.aoColumns[i].sSortingClassJUI;
}
else if ( aaSort[iFound][1] == "asc" )
{
@@ -449,11 +449,11 @@ function _fnSortingClasses( oSettings )
}
}
- /*
+ /*
* Apply the required classes to the table body
* Note that this is given as a feature switch since it can significantly slow down a sort
* on large data sets (adding and removing of classes is always slow at the best of times..)
- * Further to this, note that this code is admittedly fairly ugly. It could be made a lot
+ * Further to this, note that this code is admittedly fairly ugly. It could be made a lot
* simpler using jQuery selectors and add/removeClass, but that is significantly slower
* (on the order of 5 times slower) - hence the direct DOM manipulation here.
* Note that for deferred drawing we do use jQuery - the reason being that taking the first
View
2  media/src/core/core.support.js
@@ -43,7 +43,7 @@ function _fnGetTrNodes ( oSettings )
/**
* Return an flat array with all TD nodes for the table, or row
* @param {object} oSettings dataTables settings object
- * @param {int} [iIndividualRow] aoData index to get the nodes for - optional
+ * @param {int} [iIndividualRow] aoData index to get the nodes for - optional
* if not given then the return array will contain all nodes for the table
* @returns {array} TD array
* @memberof DataTable#oApi
View
8 media/src/ext/ext.paging.js
@@ -1,6 +1,6 @@
/*
* Variable: oPagination
- * Purpose:
+ * Purpose:
* Scope: jQuery.fn.dataTableExt
*/
$.extend( DataTable.ext.oPagination, {
@@ -83,7 +83,7 @@ $.extend( DataTable.ext.oPagination, {
/* Previous page */
nNode.className = ( oSettings._iDisplayStart === 0 ) ?
oClasses.sPagePrevDisabled : oClasses.sPagePrevEnabled;
-
+
/* Next page */
nNode = nNode.nextSibling;
nNode.className = ( oSettings.fnDisplayEnd() == oSettings.fnRecordsDisplay() ) ?
@@ -241,12 +241,12 @@ $.extend( DataTable.ext.oPagination, {
/* Update the permanent button's classes */
anButtons = nNode.getElementsByTagName('a');
anStatic = [
- anButtons[0], anButtons[1],
+ anButtons[0], anButtons[1],
anButtons[anButtons.length-2], anButtons[anButtons.length-1]
];
$(anStatic).removeClass( oClasses.sPageButton+" "+oClasses.sPageButtonActive+" "+oClasses.sPageButtonStaticDisabled );
- $([anStatic[0], anStatic[1]]).addClass(
+ $([anStatic[0], anStatic[1]]).addClass(
(iCurrentPage==1) ?
oClasses.sPageButtonStaticDisabled :
oClasses.sPageButton
View
2  media/src/ext/ext.sorting.js
@@ -15,7 +15,7 @@ $.extend( DataTable.ext.oSort, {
return a.toLowerCase();
},
- // string-asc and -desc are retained only for compatibility with
+ // string-asc and -desc are retained only for compatibility with
"string-asc": function ( x, y )
{
return ((x < y) ? -1 : ((x > y) ? 1 : 0));
View
22 media/src/model/model.column.js
@@ -5,8 +5,8 @@
* Template object for the column information object in DataTables. This object
* is held in the settings aoColumns array and contains all the information that
* DataTables needs about each individual column.
- *
- * Note that this object is related to {@link DataTable.defaults.column}
+ *
+ * Note that this object is related to {@link DataTable.defaults.column}
* but this one is the internal data store for DataTables's cache of columns.
* It should NOT be manipulated outside of DataTables. Any configuration should
* be done through the initialisation options.
@@ -80,12 +80,12 @@ DataTable.models.oColumn = {
* Function to get data from a cell in a column. You should <b>never</b>
* access data directly through _aData internally in DataTables - always use
* the method attached to this property. It allows mData to function as
- * required. This function is automatically assigned by the column
+ * required. This function is automatically assigned by the column
* initialisation method
* @type function
- * @param {array|object} oData The data array/object for the array
+ * @param {array|object} oData The data array/object for the array
* (i.e. aoData[]._aData)
- * @param {string} sSpecific The specific data type you want to get -
+ * @param {string} sSpecific The specific data type you want to get -
* 'display', 'type' 'filter' 'sort'
* @returns {*} The data for the cell from the given row's data
* @default null
@@ -93,12 +93,12 @@ DataTable.models.oColumn = {
"fnGetData": null,
/**
- * Function to set data for a cell in the column. You should <b>never</b>
+ * Function to set data for a cell in the column. You should <b>never</b>
* set the data directly to _aData internally in DataTables - always use
* this method. It allows mData to function as required. This function
* is automatically assigned by the column initialisation method
* @type function
- * @param {array|object} oData The data array/object for the array
+ * @param {array|object} oData The data array/object for the array
* (i.e. aoData[]._aData)
* @param {*} sValue Value to set
* @default null
@@ -106,7 +106,7 @@ DataTable.models.oColumn = {
"fnSetData": null,
/**
- * Property to read the value for the cells in the column from the data
+ * Property to read the value for the cells in the column from the data
* source array / object. If null, then the default content is used, if a
* function is given then the return from the function is used.
* @type function|int|string|null
@@ -133,8 +133,8 @@ DataTable.models.oColumn = {
"nTh": null,
/**
- * Unique footer TH/TD element for this column (if there is one). Not used
- * in DataTables as such, but can be used for plug-ins to reference the
+ * Unique footer TH/TD element for this column (if there is one). Not used
+ * in DataTables as such, but can be used for plug-ins to reference the
* footer for each column.
* @type node
* @default null
@@ -152,7 +152,7 @@ DataTable.models.oColumn = {
* When DataTables calculates the column widths to assign to each column,
* it finds the longest string in each column and then constructs a
* temporary table and reads the widths from that. The problem with this
- * is that "mmm" is much wider then "iiii", but the latter is a longer
+ * is that "mmm" is much wider then "iiii", but the latter is a longer
* string - thus the calculation can go wrong (doing it properly and putting
* it into an DOM object and measuring that is horribly(!) slow). Thus as
* a "work around" we provide this option. It will append its value to the
View
118 media/src/model/model.defaults.columns.js
@@ -1,7 +1,7 @@
/*
- * Developer note - See note in model.defaults.js about the use of Hungarian
+ * Developer note - See note in model.defaults.js about the use of Hungarian
* notation and camel case.
*/
@@ -11,15 +11,15 @@
*/
DataTable.defaults.column = {
/**
- * Allows a column's sorting to take multiple columns into account when
- * doing a sort. For example first name / last name columns make sense to
+ * Allows a column's sorting to take multiple columns into account when
+ * doing a sort. For example first name / last name columns make sense to
* do a multi-column sort over the two columns.
* @type array
* @default null <i>Takes the value of the column index automatically</i>
*
* @name DataTable.defaults.column.dataSort
* @dtopt Columns
- *
+ *
* @example
* // Using `columnDefs`
* $(document).ready( function() {
@@ -31,7 +31,7 @@ DataTable.defaults.column = {
* ]
* } );
* } );
- *
+ *
* @example
* // Using `columns`
* $(document).ready( function() {
@@ -58,7 +58,7 @@ DataTable.defaults.column = {
*
* @name DataTable.defaults.column.sorting
* @dtopt Columns
- *
+ *
* @example
* // Using `columnDefs`
* $(document).ready( function() {
@@ -70,7 +70,7 @@ DataTable.defaults.column = {
* ]
* } );
* } );
- *
+ *
* @example
* // Using `columns`
* $(document).ready( function() {
@@ -95,21 +95,21 @@ DataTable.defaults.column = {
*
* @name DataTable.defaults.column.searchable
* @dtopt Columns
- *
+ *
* @example
* // Using `columnDefs`
* $(document).ready( function() {
* $('#example').dataTable( {
- * "columnDefs": [
+ * "columnDefs": [
* { "searchable": false, "targets": [ 0 ] }
* ] } );
* } );
- *
+ *
* @example
* // Using `columns`
* $(document).ready( function() {
* $('#example').dataTable( {
- * "columns": [
+ * "columns": [
* { "searchable": false },
* null,
* null,
@@ -128,21 +128,21 @@ DataTable.defaults.column = {
*
* @name DataTable.defaults.column.sortable
* @dtopt Columns
- *
+ *
* @example
* // Using `columnDefs`
* $(document).ready( function() {
* $('#example').dataTable( {
- * "columnDefs": [
+ * "columnDefs": [
* { "sortable": false, "targets": [ 0 ] }
* ] } );
* } );
- *
+ *
* @example
* // Using `columns`
* $(document).ready( function() {
* $('#example').dataTable( {
- * "columns": [
+ * "columns": [
* { "sortable": false },
* null,
* null,
@@ -161,21 +161,21 @@ DataTable.defaults.column = {
*
* @name DataTable.defaults.column.visible
* @dtopt Columns
- *
+ *
* @example
* // Using `columnDefs`
* $(document).ready( function() {
* $('#example').dataTable( {
- * "columnDefs": [
+ * "columnDefs": [
* { "visible": false, "targets": [ 0 ] }
* ] } );
* } );
- *
+ *
* @example
* // Using `columns`
* $(document).ready( function() {
* $('#example').dataTable( {
- * "columns": [
+ * "columns": [
* { "visible": false },
* null,
* null,
@@ -201,7 +201,7 @@ DataTable.defaults.column = {
*
* @name DataTable.defaults.column.createdCell
* @dtopt Columns
- *
+ *
* @example
* $(document).ready( function() {
* $('#example').dataTable( {
@@ -228,22 +228,22 @@ DataTable.defaults.column = {
*
* @name DataTable.defaults.column.dataSort
* @dtopt Columns
- *
+ *
* @example
* // Using `columnDefs`
* $(document).ready( function() {
* $('#example').dataTable( {
- * "columnDefs": [
+ * "columnDefs": [
* { "dataSort": 1, "targets": [ 0 ] }
* ]
* } );
* } );
- *
+ *
* @example
* // Using `columns`
* $(document).ready( function() {
* $('#example').dataTable( {
- * "columns": [
+ * "columns": [
* { "dataSort": 1 },
* null,
* null,
@@ -445,7 +445,7 @@ DataTable.defaults.column = {
* but this parameter is much easier to use as there is no 'set' option.
* Like `data` this option can be given in a number of different ways to
* effect its behaviour:
- *
+ *
* * `integer` - treated as an array index for the data source. This is the
* default that DataTables uses (incrementally increased for each column).
* * `string` - read an object property from the data source. There are
@@ -485,7 +485,7 @@ DataTable.defaults.column = {
*
* @name DataTable.defaults.column.render
* @dtopt Columns
- *
+ *
* @example
* // Create a comma separated list from an array of objects
* $(document).ready( function() {
@@ -501,7 +501,7 @@ DataTable.defaults.column = {
* ]
* } );
* } );
- *
+ *
* @example
* // Execute a function to obtain data
* $(document).ready( function() {
@@ -513,7 +513,7 @@ DataTable.defaults.column = {
* } ]
* } );
* } );
- *
+ *
* @example
* // Use as a function to create a link from the data source
* $(document).ready( function() {
@@ -540,7 +540,7 @@ DataTable.defaults.column = {
*
* @name DataTable.defaults.column.cellType
* @dtopt Columns
- *
+ *
* @example
* // Make the first column use TH cells
* $(document).ready( function() {
@@ -562,22 +562,22 @@ DataTable.defaults.column = {
*
* @name DataTable.defaults.column.class
* @dtopt Columns
- *
+ *
* @example
* // Using `columnDefs`
* $(document).ready( function() {
* $('#example').dataTable( {
- * "columnDefs": [
+ * "columnDefs": [
* { "class": "my_class", "targets": [ 0 ] }
* ]
* } );
* } );
- *
+ *
* @example
* // Using `columns`
* $(document).ready( function() {
* $('#example').dataTable( {
- * "columns": [
+ * "columns": [
* { "class": "my_class" },
* null,
* null,
@@ -593,7 +593,7 @@ DataTable.defaults.column = {
* When DataTables calculates the column widths to assign to each column,
* it finds the longest string in each column and then constructs a
* temporary table and reads the widths from that. The problem with this
- * is that "mmm" is much wider then "iiii", but the latter is a longer
+ * is that "mmm" is much wider then "iiii", but the latter is a longer
* string - thus the calculation can go wrong (doing it properly and putting
* it into an DOM object and measuring that is horribly(!) slow). Thus as
* a "work around" we provide this option. It will append its value to the
@@ -604,12 +604,12 @@ DataTable.defaults.column = {
*
* @name DataTable.defaults.column.contentPadding
* @dtopt Columns
- *
+ *
* @example
* // Using `columns`
* $(document).ready( function() {
* $('#example').dataTable( {
- * "columns": [
+ * "columns": [
* null,
* null,
* null,
@@ -632,12 +632,12 @@ DataTable.defaults.column = {
*
* @name DataTable.defaults.column.defaultContent
* @dtopt Columns
- *
+ *
* @example
* // Using `columnDefs`
* $(document).ready( function() {
* $('#example').dataTable( {
- * "columnDefs": [
+ * "columnDefs": [
* {
* "data": null,
* "defaultContent": "Edit",
@@ -646,12 +646,12 @@ DataTable.defaults.column = {
* ]
* } );
* } );
- *
+ *
* @example
* // Using `columns`
* $(document).ready( function() {
* $('#example').dataTable( {
- * "columns": [
+ * "columns": [
* null,
* null,
* null,
@@ -678,12 +678,12 @@ DataTable.defaults.column = {
*
* @name DataTable.defaults.column.name
* @dtopt Columns
- *
+ *
* @example
* // Using `columnDefs`
* $(document).ready( function() {
* $('#example').dataTable( {
- * "columnDefs": [
+ * "columnDefs": [
* { "name": "engine", "targets": [ 0 ] },
* { "name": "browser", "targets": [ 1 ] },
* { "name": "platform", "targets": [ 2 ] },
@@ -692,12 +692,12 @@ DataTable.defaults.column = {
* ]
* } );
* } );
- *
+ *
* @example
* // Using `columns`
* $(document).ready( function() {
* $('#example').dataTable( {
- * "columns": [
+ * "columns": [
* { "name": "engine" },
* { "name": "browser" },
* { "name": "platform" },
@@ -720,7 +720,7 @@ DataTable.defaults.column = {
*
* @name DataTable.defaults.column.sortDataType
* @dtopt Columns
- *
+ *
* @example
* // Using `columnDefs`
* $(document).ready( function() {
@@ -733,7 +733,7 @@ DataTable.defaults.column = {
* ]
* } );
* } );
- *
+ *
* @example
* // Using `columns`
* $(document).ready( function() {
@@ -755,27 +755,27 @@ DataTable.defaults.column = {
/**
* The title of this column.
* @type string
- * @default null <i>Derived from the 'TH' value for this column in the
+ * @default null <i>Derived from the 'TH' value for this column in the
* original HTML table.</i>
*
* @name DataTable.defaults.column.title
* @dtopt Columns
- *
+ *
* @example
* // Using `columnDefs`
* $(document).ready( function() {
* $('#example').dataTable( {
- * "columnDefs": [
+ * "columnDefs": [
* { "title": "My column title", "targets": [ 0 ] }
* ]
* } );
* } );
- *
+ *
* @example
* // Using `columns`
* $(document).ready( function() {
* $('#example').dataTable( {
- * "columns": [
+ * "columns": [
* { "title": "My column title" },
* null,
* null,
@@ -801,22 +801,22 @@ DataTable.defaults.column = {
*
* @name DataTable.defaults.column.type
* @dtopt Columns
- *
+ *
* @example
* // Using `columnDefs`
* $(document).ready( function() {
* $('#example').dataTable( {
- * "columnDefs": [
+ * "columnDefs": [
* { "type": "html", "targets": [ 0 ] }
* ]
* } );
* } );
- *
+ *
* @example
* // Using `columns`
* $(document).ready( function() {
* $('#example').dataTable( {
- * "columns": [
+ * "columns": [
* { "type": "html" },
* null,
* null,
@@ -839,22 +839,22 @@ DataTable.defaults.column = {
*
* @name DataTable.defaults.column.width
* @dtopt Columns
- *
+ *
* @example
* // Using `columnDefs`
* $(document).ready( function() {
* $('#example').dataTable( {
- * "columnDefs": [
+ * "columnDefs": [
* { "width": "20%", "targets": [ 0 ] }
* ]
* } );
* } );
- *
+ *
* @example
* // Using `columns`
* $(document).ready( function() {
* $('#example').dataTable( {
- * "columns": [
+ * "columns": [
* { "width": "20%" },
* null,
* null,
View
268 media/src/model/model.defaults.js
@@ -16,13 +16,13 @@
*/
/**
- * Initialisation options that can be given to DataTables at initialisation
+ * Initialisation options that can be given to DataTables at initialisation
* time.
* @namespace
*/
DataTable.defaults = {
/**
- * An array of data to use for the table, passed in at initialisation which
+ * An array of data to use for the table, passed in at initialisation which
* will be used in preference to any data which is already in the DOM. This is
* particularly useful for constructing tables purely in Javascript, for
* example with a custom Ajax call.
@@ -31,7 +31,7 @@ DataTable.defaults = {
*
* @dtopt Option
* @name DataTable.defaults.data
- *
+ *
* @example
* // Using a 2D array data source
* $(document).ready( function () {
@@ -49,7 +49,7 @@ DataTable.defaults = {
* ]
* } );
* } );
- *
+ *
* @example
* // Using an array of objects as a data source (`data`)
* $(document).ready( function () {
@@ -84,17 +84,17 @@ DataTable.defaults = {
/**
- * If sorting is enabled, then DataTables will perform a first pass sort on
- * initialisation. You can define which column(s) the sort is performed upon,
- * and the sorting direction, with this variable. The `sorting` array should
- * contain an array for each column to be sorted initially containing the
+ * If sorting is enabled, then DataTables will perform a first pass sort on
+ * initialisation. You can define which column(s) the sort is performed upon,
+ * and the sorting direction, with this variable. The `sorting` array should
+ * contain an array for each column to be sorted initially containing the
* column's index and a direction string ('asc' or 'desc').
* @type array
* @default [[0,'asc']]
*
* @dtopt Option
* @name DataTable.defaults.sorting
- *
+ *
* @example
* // Sort by 3rd column first, and then 4th column
* $(document).ready( function() {
@@ -102,7 +102,7 @@ DataTable.defaults = {
* "sorting": [[2,'asc'], [3,'desc']]
* } );
* } );
- *
+ *
* // No initial sorting
* $(document).ready( function() {
* $('#example').dataTable( {
@@ -114,18 +114,18 @@ DataTable.defaults = {
/**
- * This parameter is basically identical to the `sorting` parameter, but
- * cannot be overridden by user interaction with the table. What this means
- * is that you could have a column (visible or hidden) which the sorting will
- * always be forced on first - any sorting after that (from the user) will
- * then be performed as required. This can be useful for grouping rows
+ * This parameter is basically identical to the `sorting` parameter, but
+ * cannot be overridden by user interaction with the table. What this means
+ * is that you could have a column (visible or hidden) which the sorting will
+ * always be forced on first - any sorting after that (from the user) will
+ * then be performed as required. This can be useful for grouping rows
* together.
* @type array
* @default null
*
* @dtopt Option
* @name DataTable.defaults.sortingFixed
- *
+ *
* @example
* $(document).ready( function() {
* $('#example').dataTable( {
@@ -283,7 +283,7 @@ DataTable.defaults = {
* $('#example').dataTable( {
* "ajax": function (data, callback, settings) {
* callback(
- * JSON.parse( localStorage.getItem('dataTablesData') )
+ * JSON.parse( localStorage.getItem('dataTablesData') )
* );
* }
* } );
@@ -293,10 +293,10 @@ DataTable.defaults = {
/**
* This parameter allows you to readily specify the entries in the length drop
- * down menu that DataTables shows when pagination is enabled. It can be
- * either a 1D array of options which will be used for both the displayed
- * option and the value, or a 2D array which will use the array in the first
- * position as the value, and the array in the second position as the
+ * down menu that DataTables shows when pagination is enabled. It can be
+ * either a 1D array of options which will be used for both the displayed
+ * option and the value, or a 2D array which will use the array in the first
+ * position as the value, and the array in the second position as the
* displayed options (useful for language strings such as 'All').
*
* Note that the `displayLength` property will be automatically set to the
@@ -306,7 +306,7 @@ DataTable.defaults = {
*
* @dtopt Option
* @name DataTable.defaults.lengthMenu
- *
+ *
* @example
* $(document).ready( function() {
* $('#example').dataTable( {
@@ -320,7 +320,7 @@ DataTable.defaults = {
/**
* The `columns` option in the initialisation parameter allows you to define
* details about the way individual columns behave. For a full list of
- * column options that can be set, please see
+ * column options that can be set, please see
* {@link DataTable.defaults.column}. Note that if you use `columns` to
* define your columns, you must have an entry in the array for every single
* column that you have in your table (these can be null if you don't which
@@ -332,11 +332,11 @@ DataTable.defaults = {
"aoColumns": null,
/**
- * Very similar to `columns`, `columnDefs` allows you to target a specific
- * column, multiple columns, or all columns, using the `targets` property of
- * each object in the array. This allows great flexibility when creating
- * tables, as the `columnDefs` arrays can be of any length, targeting the
- * columns you specifically want. `columnDefs` may use any of the column
+ * Very similar to `columns`, `columnDefs` allows you to target a specific
+ * column, multiple columns, or all columns, using the `targets` property of
+ * each object in the array. This allows great flexibility when creating
+ * tables, as the `columnDefs` arrays can be of any length, targeting the
+ * columns you specifically want. `columnDefs` may use any of the column
* options available: {@link DataTable.defaults.column}, but it _must_
* have `targets` defined in each object in the array. Values in the `targets`
* array may be:
@@ -355,7 +355,7 @@ DataTable.defaults = {
/**
* Basically the same as `search`, this parameter defines the individual column
- * filtering state at initialisation time. The array must be of the same size
+ * filtering state at initialisation time. The array must be of the same size
* as the number of columns, and each element be an object with the parameters
* `search` and `escapeRegex` (the latter is optional). 'null' is also
* accepted and the default will be used.
@@ -364,7 +364,7 @@ DataTable.defaults = {
*
* @dtopt Option
* @name DataTable.defaults.searchCols
- *
+ *
* @example
* $(document).ready( function() {
* $('#example').dataTable( {
@@ -381,8 +381,8 @@ DataTable.defaults = {
/**
- * An array of CSS classes that should be applied to displayed rows. This
- * array may be of any length, and DataTables will apply each class
+ * An array of CSS classes that should be applied to displayed rows. This
+ * array may be of any length, and DataTables will apply each class
* sequentially, looping when required.
* @type array
* @default null <i>Will take the values determined by the `oClasses.stripe*`
@@ -390,7 +390,7 @@ DataTable.defaults = {
*
* @dtopt Option
* @name DataTable.defaults.stripeClasses
- *
+ *
* @example
* $(document).ready( function() {
* $('#example').dataTable( {
@@ -410,7 +410,7 @@ DataTable.defaults = {
*
* @dtopt Features
* @name DataTable.defaults.autoWidth
- *
+ *
* @example
* $(document).ready( function () {
* $('#example').dataTable( {
@@ -432,7 +432,7 @@ DataTable.defaults = {
*
* @dtopt Features
* @name DataTable.defaults.deferRender
- *
+ *
* @example
* $(document).ready( function() {
* $('#example').dataTable( {
@@ -445,7 +445,7 @@ DataTable.defaults = {
/**
- * Replace a DataTable which matches the given selector and replace it with
+ * Replace a DataTable which matches the given selector and replace it with
* one which has the properties of the new initialisation object passed. If no
* table matches the selector, then the new DataTable will be constructed as
* per normal.
@@ -454,14 +454,14 @@ DataTable.defaults = {
*
* @dtopt Options
* @name DataTable.defaults.destroy
- *
+ *
* @example
* $(document).ready( function() {
* $('#example').dataTable( {
* "srollY": "200px",
* "paginate": false
* } );
- *
+ *
* // Some time later....
* $('#example').dataTable( {
* "filter": false,
@@ -485,7 +485,7 @@ DataTable.defaults = {
*
* @dtopt Features
* @name DataTable.defaults.filter
- *
+ *
* @example
* $(document).ready( function () {
* $('#example').dataTable( {
@@ -497,7 +497,7 @@ DataTable.defaults = {
/**
- * Enable or disable the table information display. This shows information
+ * Enable or disable the table information display. This shows information
* about the data that is currently visible on the page, including information
* about filtered data if that action is being performed.
* @type boolean
@@ -505,7 +505,7 @@ DataTable.defaults = {
*
* @dtopt Features
* @name DataTable.defaults.info
- *
+ *
* @example
* $(document).ready( function () {
* $('#example').dataTable( {
@@ -525,7 +525,7 @@ DataTable.defaults = {
*
* @dtopt Features
* @name DataTable.defaults.jQueryUI
- *
+ *
* @example
* $(document).ready( function() {
* $('#example').dataTable( {
@@ -544,7 +544,7 @@ DataTable.defaults = {
*
* @dtopt Features
* @name DataTable.defaults.lengthChange
- *
+ *
* @example
* $(document).ready( function () {
* $('#example').dataTable( {
@@ -562,7 +562,7 @@ DataTable.defaults = {
*
* @dtopt Features
* @name DataTable.defaults.paginate
- *
+ *
* @example
* $(document).ready( function () {
* $('#example').dataTable( {
@@ -583,7 +583,7 @@ DataTable.defaults = {
*
* @dtopt Features
* @name DataTable.defaults.processing
- *
+ *
* @example
* $(document).ready( function () {
* $('#example').dataTable( {
@@ -607,13 +607,13 @@ DataTable.defaults = {
*
* @dtopt Options
* @name DataTable.defaults.retrieve
- *
+ *
* @example
* $(document).ready( function() {
* initTable();
* tableActions();
* } );
- *
+ *
* function initTable ()
* {
* return $('#example').dataTable( {
@@ -622,11 +622,11 @@ DataTable.defaults = {
* "retrieve": true
* } );
* }
- *
+ *
* function tableActions ()
* {
* var table = initTable();
- * // perform API operations with oTable
+ * // perform API operations with oTable
* }
*/
"bRetrieve": false,
@@ -641,7 +641,7 @@ DataTable.defaults = {
*
* @dtopt Options
* @name DataTable.defaults.scrollAutoCss
- *
+ *
* @example
* $(document).ready( function() {
* $('#example').dataTable( {
@@ -665,7 +665,7 @@ DataTable.defaults = {
*
* @dtopt Options
* @name DataTable.defaults.scrollCollapse
- *
+ *
* @example
* $(document).ready( function() {
* $('#example').dataTable( {
@@ -689,7 +689,7 @@ DataTable.defaults = {
*
* @dtopt Features
* @name DataTable.defaults.scrollInfinite
- *
+ *
* @example
* $(document).ready( function() {
* $('#example').dataTable( {
@@ -712,7 +712,7 @@ DataTable.defaults = {
* @dtopt Features
* @dtopt Server-side
* @name DataTable.defaults.serverSide
- *
+ *
* @example
* $(document).ready( function () {
* $('#example').dataTable( {
@@ -732,7 +732,7 @@ DataTable.defaults = {
*
* @dtopt Features
* @name DataTable.defaults.sort
- *
+ *
* @example
* $(document).ready( function () {
* $('#example').dataTable( {
@@ -752,7 +752,7 @@ DataTable.defaults = {
*
* @dtopt Options
* @name DataTable.defaults.sortCellsTop
- *
+ *
* @example
* $(document).ready( function() {
* $('#example').dataTable( {
@@ -774,7 +774,7 @@ DataTable.defaults = {
*
* @dtopt Features
* @name DataTable.defaults.sortClasses
- *
+ *
* @example
* $(document).ready( function () {
* $('#example').dataTable( {
@@ -786,11 +786,11 @@ DataTable.defaults = {
/**
- * Enable or disable state saving. When enabled HTML5 `localStorage` will be
- * used to save table display information such as pagination information,
+ * Enable or disable state saving. When enabled HTML5 `localStorage` will be
+ * used to save table display information such as pagination information,
* display length, filtering and sorting. As such when the end user reloads
* the page the display display will match what thy had previously set up.
- *
+ *
* Due to the use of `localStorage` the default state saving is not supported
* in IE6 or 7. If state saving is required in those browsers, use
* `stateSaveCallback` to provide a storage solution such as cookies.
@@ -799,7 +799,7 @@ DataTable.defaults = {
*
* @dtopt Features
* @name DataTable.defaults.stateSave
- *
+ *
* @example
* $(document).ready( function () {
* $('#example').dataTable( {
@@ -821,7 +821,7 @@ DataTable.defaults = {
*
* @dtopt Callbacks
* @name DataTable.defaults.createdRow
- *
+ *
* @example
* $(document).ready( function() {
* $('#example').dataTable( {
@@ -846,7 +846,7 @@ DataTable.defaults = {
*
* @dtopt Callbacks
* @name DataTable.defaults.drawCallback
- *