Skip to content

Commit

Permalink
Fix - docs: Typo in -init rowCallback's markup
Browse files Browse the repository at this point in the history
- Fixes DataTables/DataTables #888
  • Loading branch information
Allan Jardine committed Dec 2, 2016
1 parent 875b2d0 commit 31a7cf3
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 72 deletions.
2 changes: 1 addition & 1 deletion .datatables-commit-sync
@@ -1 +1 @@
74856dedb15077753ab098337f8d9d3fe5837640
0eb2fcf5ad965bf2f13fc4378a489282369792c9
3 changes: 1 addition & 2 deletions examples/basic_init/alt_pagination.html
Expand Up @@ -37,14 +37,13 @@ <h1>DataTables example <span>Alternative pagination</span></h1>
<p>The default page control presented by DataTables (forward and backward buttons with up to 7 page numbers in-between) is fine for most situations, but there are
cases where you may wish to customise the options presented to the end user. This is done through DataTables' extensible pagination mechanism, the <a href=
"//datatables.net/reference/option/pagingType"><code class="option" title="DataTables initialisation option">pagingType</code></a> option.</p>
<p>There are six built-in options for which pagination controls DataTables should show:</p>
<p>There are four built-in options for which pagination controls DataTables should show:</p>
<ul class="markdown">
<li><code class="string" title="String">numbers</code> - Page number buttons only</li>
<li><code class="string" title="String">simple</code> - 'Previous' and 'Next' buttons only</li>
<li><code class="string" title="String">simple_numbers</code> - 'Previous' and 'Next' buttons, plus page numbers</li>
<li><code class="string" title="String">full</code> - 'First', 'Previous', 'Next' and 'Last' buttons</li>
<li><code class="string" title="String">full_numbers</code> - 'First', 'Previous', 'Next' and 'Last' buttons, plus page numbers</li>
<li><code class="string" title="String">first_last_numbers</code> - 'First' and 'Last' buttons, plus page numbers</li>
</ul>
<p>The language strings of 'First', 'Previous' etc can be optionally through the internationalisation options of DataTables; <a href=
"//datatables.net/reference/option/language.paginate.first"><code class="option" title="DataTables initialisation option">language.paginate.first</code></a>,
Expand Down
11 changes: 3 additions & 8 deletions media/js/jquery.dataTables.js
Expand Up @@ -11851,15 +11851,14 @@


/**
* DataTables features six different built-in options for the buttons to
* DataTables features four different built-in options for the buttons to
* display for pagination control:
*
* * `numbers` - Page number buttons only
* * `simple` - 'Previous' and 'Next' buttons only
* * 'simple_numbers` - 'Previous' and 'Next' buttons, plus page numbers
* * `full` - 'First', 'Previous', 'Next' and 'Last' buttons
* * `full_numbers` - 'First', 'Previous', 'Next' and 'Last' buttons, plus page numbers
* * `first_last_numbers` - 'First' and 'Last' buttons, plus page numbers
* * `full_numbers` - 'First', 'Previous', 'Next' and 'Last' buttons, plus
* page numbers
*
* Further methods can be added using {@link DataTable.ext.oPagination}.
* @type string
Expand Down Expand Up @@ -14508,10 +14507,6 @@
full_numbers: function ( page, pages ) {
return [ 'first', 'previous', _numbers(page, pages), 'next', 'last' ];
},

first_last_numbers: function (page, pages) {
return ['first', _numbers(page, pages), 'last'];
},

// For testing and plug-ins to use
_numbers: _numbers,
Expand Down

0 comments on commit 31a7cf3

Please sign in to comment.