src/table.js
function(oSettings) {
      //trick to show row numbers
      for (var i = 0; i < oSettings.aiDisplay.length; i++) {
        $("td:eq(0)", oSettings.aoData[oSettings.aiDisplay[i]].nTr).html(i + 1);
      }

      //Hide pagination when we have a single page
      var activePaginateButton = false;
      $(oSettings.nTableWrapper).find(".paginate_button").each(function() {
        if ($(this).attr("class").indexOf("current") == -1 && $(this).attr("class").indexOf("disabled") == -1) {
          activePaginateButton = true;
        }
      });
      if (activePaginateButton) {
        $(oSettings.nTableWrapper).find(".dataTables_paginate").show();
      } else {
        $(oSettings.nTableWrapper).find(".dataTables_paginate").hide();
      }
    }
function(oSettings) {
      //trick to show row numbers
      for (var i = 0; i < oSettings.aiDisplay.length; i++) {
        $("td:eq(0)", oSettings.aoData[oSettings.aiDisplay[i]].nTr).html(i + 1);
      }

      //Hide pagination when we have a single page
      var activePaginateButton = false;
      $(oSettings.nTableWrapper).find(".paginate_button").each(function() {
        if ($(this).attr("class").indexOf("current") == -1 && $(this).attr("class").indexOf("disabled") == -1) {
          activePaginateButton = true;
        }
      });
      if (activePaginateButton) {
        $(oSettings.nTableWrapper).find(".dataTables_paginate").show();
      } else {
        $(oSettings.nTableWrapper).find(".dataTables_paginate").hide();
      }
    }
function ( oSettings ) { //trick to show row numbers for ( var i = 0 ; i < oSettings . aiDisplay . length ; i ++ ) { $ ( "td:eq(0)" , oSettings . aoData [ oSettings . aiDisplay [ i ] ] . nTr ) . html ( i + 1 ) ; } //Hide pagination when we have a single page var activePaginateButton = false ; $ ( oSettings . nTableWrapper ) . find ( ".paginate_button" ) . each ( function ( ) { if ( $ ( this ) . attr ( "class" ) . indexOf ( "current" ) == - 1 && $ ( this ) . attr ( "class" ) . indexOf ( "disabled" ) == - 1 ) { activePaginateButton = true ; } } ) ; if ( activePaginateButton ) { $ ( oSettings . nTableWrapper ) . find ( ".dataTables_paginate" ) . show ( ) ; } else { $ ( oSettings . nTableWrapper ) . find ( ".dataTables_paginate" ) . hide ( ) ; } }
how to show the pagination options
how to show the pagination options