Subversion-Projekte lars-tiefland.cienc

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
8 lars 1
/**
2
 * Set the point at which DataTables will start it's display of data in the
3
 * table.
4
 *
5
 *  @name fnDisplayStart
6
 *  @summary Change the table's paging display start.
7
 *  @author [Allan Jardine](http://sprymedia.co.uk)
8
 *  @deprecated
9
 *
10
 *  @param {integer} iStart Display start index.
11
 *  @param {boolean} [bRedraw=false] Indicate if the table should do a redraw or not.
12
 *
13
 *  @example
14
 *    var table = $('#example').dataTable();
15
 *    table.fnDisplayStart( 21 );
16
 */
17
 
18
jQuery.fn.dataTableExt.oApi.fnDisplayStart = function ( oSettings, iStart, bRedraw )
19
{
20
    if ( typeof bRedraw == 'undefined' ) {
21
        bRedraw = true;
22
    }
23
 
24
    oSettings._iDisplayStart = iStart;
25
    if ( oSettings.oApi._fnCalculateEnd ) {
26
        oSettings.oApi._fnCalculateEnd( oSettings );
27
    }
28
 
29
    if ( bRedraw ) {
30
        oSettings.oApi._fnDraw( oSettings );
31
    }
32
};