From 4e0efdffc756a2d80114436cd3ca86df416cfe48 Mon Sep 17 00:00:00 2001 From: Mottie Date: Sun, 20 Apr 2014 22:48:13 -0500 Subject: [PATCH] Add note about using buttons & forms. Fixes #543 --- docs/example-widget-filter-formatter-select2.html | 2 +- docs/index.html | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/example-widget-filter-formatter-select2.html b/docs/example-widget-filter-formatter-select2.html index f1d2d797..1213547a 100644 --- a/docs/example-widget-filter-formatter-select2.html +++ b/docs/example-widget-filter-formatter-select2.html @@ -83,7 +83,7 @@
  • There are only two filter formatter options, the rest are all select2 options (defaults shown below):
    // select2 filter formatter options
     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)
     multiple : true,  // allow multiple selections
    diff --git a/docs/index.html b/docs/index.html
    index 69f69964..6d1db1bc 100644
    --- a/docs/index.html
    +++ b/docs/index.html
    @@ -2886,7 +2886,8 @@ $.extend($.tablesorter.themes.jui, {
         </select>
         <select class="gotoPage" title="Select page number"></select>
       </form>
    -</div>
    Add this option as follows:
    $(function(){
    +</div>
    Caution If you use buttons in your pager container, make sure the buttons include a button type (<button type="button">Next</button>) to prevent form submission and page reloading every time the button is clicked.
    +
    Use this option as follows:
    $(function(){
       $("table")
         .tablesorter()
         .tablesorterPager({