Add note about using buttons & forms. Fixes #543

This commit is contained in:
Mottie 2014-04-20 22:48:13 -05:00
parent 6d068d347d
commit 4e0efdffc7
2 changed files with 3 additions and 2 deletions

View File

@ -83,7 +83,7 @@
<li>There are only two filter formatter options, the rest are all select2 options (defaults shown below): <li>There are only two filter formatter options, the rest are all select2 options (defaults shown below):
<pre class="prettyprint lang-js">// select2 filter formatter options <pre class="prettyprint lang-js">// select2 filter formatter options
cellText : '', // Text (wrapped in a label element) cellText : '', // Text (wrapped in a label element)
match : true, // adds "filter-match" to header & modifys search match : true, // adds "filter-match" to header & modifies search
// ANY select2 options can be include below (showing default settings for this formatter code) // ANY select2 options can be include below (showing default settings for this formatter code)
multiple : true, // allow multiple selections multiple : true, // allow multiple selections

View File

@ -2886,7 +2886,8 @@ $.extend($.tablesorter.themes.jui, {
&lt;/select&gt; &lt;/select&gt;
&lt;select class="gotoPage" title="Select page number"&gt;&lt;/select&gt; &lt;select class="gotoPage" title="Select page number"&gt;&lt;/select&gt;
&lt;/form&gt; &lt;/form&gt;
&lt;/div&gt;</pre>Add this option as follows:<pre class="prettyprint lang-js">$(function(){ &lt;/div&gt;</pre><span class="label label-warning">Caution</span> If you use buttons in your pager container, make sure the buttons include a button type (<code>&lt;button type=&quot;button&quot;&gt;Next&lt;/button&gt;</code>) to prevent form submission and page reloading every time the button is clicked.<br>
<br>Use this option as follows:<pre class="prettyprint lang-js">$(function(){
$("table") $("table")
.tablesorter() .tablesorter()
.tablesorterPager({ .tablesorterPager({