From 36e5371df77e86325a18ec66f6780e55ecb2eaab Mon Sep 17 00:00:00 2001 From: Mottie Date: Thu, 17 Jul 2014 20:42:01 -0500 Subject: [PATCH] Docs: fix a bunch of minor HTML problems --- docs/css/jq.css | 2 +- docs/example-add-rows.html | 2 +- docs/example-child-rows-filtered.html | 4 +- docs/example-child-rows.html | 2 +- docs/example-header-column-span.html | 2 +- docs/example-locale-sort.html | 2 +- docs/example-method-sortreset.html | 2 +- docs/example-option-custom-sort.html | 3 +- docs/example-option-date-format.html | 4 +- docs/example-option-digits.html | 2 +- docs/example-option-show-processing.html | 2 +- docs/example-option-sort-append.html | 2 +- docs/example-option-sort-empty.html | 2 +- docs/example-option-sort-force.html | 2 +- docs/example-option-sort-key.html | 2 +- .../example-option-sortreset-sortrestart.html | 2 +- docs/example-option-text-extraction.html | 2 +- docs/example-option-textsorter-semver.html | 2 +- docs/example-option-theme-metro-style.html | 2 +- ...xample-options-headers-digits-strings.html | 2 +- docs/example-options-headers-locked.html | 2 +- docs/example-options-headers-order.html | 2 +- docs/example-options-headers-parser.html | 2 +- docs/example-options-headers.html | 2 +- docs/example-pager-filtered.html | 2 +- docs/example-pager.html | 2 +- docs/example-parsers-advanced.html | 2 +- docs/example-parsers-class-name.html | 2 +- docs/example-parsers-dates.html | 6 +- docs/example-parsers-ignore-articles.html | 2 +- docs/example-parsers-ip-address.html | 2 +- docs/example-parsers-jquery-data.html | 2 +- docs/example-parsers-metric.html | 4 +- docs/example-parsers-roman.html | 2 +- docs/example-parsers.html | 2 +- docs/example-trigger-sort.html | 2 +- docs/example-update-all.html | 2 +- docs/example-update-cell.html | 2 +- docs/example-widget-align-character.html | 4 +- docs/example-widget-bootstrap-theme.html | 2 +- docs/example-widget-column-selector.html | 2 +- docs/example-widget-columns.html | 2 +- docs/example-widget-editable.html | 4 +- docs/example-widget-filter-custom-search.html | 38 +++++---- docs/example-widget-filter-custom.html | 6 +- ...example-widget-filter-external-inputs.html | 4 +- docs/example-widget-filter-formatter-2.html | 6 +- ...ample-widget-filter-formatter-select2.html | 2 +- ...mple-widget-grouping-filter-childrows.html | 14 ++-- docs/example-widget-grouping.html | 2 +- docs/example-widget-header-titles.html | 2 +- docs/example-widget-pager-ajax.html | 3 +- docs/example-widget-pager.html | 2 +- docs/example-widget-print.html | 2 +- docs/example-widget-reflow.html | 2 +- docs/example-widget-resizable.html | 2 +- docs/example-widget-savesort.html | 2 +- docs/example-widget-scroller.html | 2 +- docs/example-widget-static-row.html | 4 +- docs/example-widget-sticky-header.html | 2 +- docs/example-widget-ui-theme.html | 2 +- docs/example-widget-zebra.html | 2 +- docs/index.html | 84 ++++++++++--------- 63 files changed, 146 insertions(+), 138 deletions(-) diff --git a/docs/css/jq.css b/docs/css/jq.css index e1efa812..1b0b9473 100644 --- a/docs/css/jq.css +++ b/docs/css/jq.css @@ -18,7 +18,7 @@ table.tablesorter table.info tbody th,table.tablesorter table.info td {border:#0 table.tablesorter table.info tbody th {background:#eee;} table.options {width:100%;} table.options pre {width:95%;} -table.options .property, .setWidth {width:115px;} +table.options .property, .setwidth {width:115px;} table.options .type {width:100px; } table.options .defaults {width:160px;} table.options .examples {width:60px;} diff --git a/docs/example-add-rows.html b/docs/example-add-rows.html index 94643faa..d4c2a431 100644 --- a/docs/example-add-rows.html +++ b/docs/example-add-rows.html @@ -63,7 +63,7 @@
  • This example could have used the "update" method to add rows, but to remove rows only the "update" method works.
  • This method is better used for the pager plugin when not all of the rows are displayed.
  • -

    +

    Demo


    diff --git a/docs/example-child-rows-filtered.html b/docs/example-child-rows-filtered.html index 7ee7e7bd..a1c5da6f 100644 --- a/docs/example-child-rows-filtered.html +++ b/docs/example-child-rows-filtered.html @@ -108,11 +108,11 @@ -

    +

    Demo


    -
    : true + : true -

    +

    Demo

    diff --git a/docs/example-header-column-span.html b/docs/example-header-column-span.html index 3bb7e250..a55cebdd 100644 --- a/docs/example-header-column-span.html +++ b/docs/example-header-column-span.html @@ -36,7 +36,7 @@
  • Clicking on any of the sortable header cells will cause all columns below it to sort.
  • This demo will only work in tablesorter version 2.3+.
  • -

    +

    Demo

    diff --git a/docs/example-locale-sort.html b/docs/example-locale-sort.html index 268a9bab..358a2279 100644 --- a/docs/example-locale-sort.html +++ b/docs/example-locale-sort.html @@ -75,7 +75,7 @@
  • In the javascript code block below you can see the default $.tablesorter.characterEquivalents table and an example of how to extend it to include other equivalents.
  • If you have a specific language requirement, please refer to the Language wiki pages to see if it is there. If not, please consider sharing the code or even just share the character equivalents themselves.
  • -

    +

    Demo

    diff --git a/docs/example-method-sortreset.html b/docs/example-method-sortreset.html index 972b7f80..60958542 100644 --- a/docs/example-method-sortreset.html +++ b/docs/example-method-sortreset.html @@ -47,7 +47,7 @@
  • Reset the table by triggering a sortReset event on the table (see the javascript code below).
  • This method was added in version 2.4.7.
  • -

    +

    Demo

    diff --git a/docs/example-option-custom-sort.html b/docs/example-option-custom-sort.html index 511ee328..e30bd299 100644 --- a/docs/example-option-custom-sort.html +++ b/docs/example-option-custom-sort.html @@ -75,7 +75,8 @@
  • One custom sort used here is from the original tablesorter plugin v2.0.3. Sort the first "Plain Text Sort" column to see how it sorts alphanumeric data.
  • This option is not part of the original plugin (v2.2).
  • -

    +

    +

    Demo

    diff --git a/docs/example-option-date-format.html b/docs/example-option-date-format.html index e15b6894..88ee8e58 100644 --- a/docs/example-option-date-format.html +++ b/docs/example-option-date-format.html @@ -49,7 +49,7 @@
  • The dateFormat option was modified in version 2.0.23 (not part of the original plugin).
  • The dateFormat option will ONLY work with the shortDate parser.
  • The date can be separated by any of the following: slash, dash, period, comma, space(s) or tab (/-., ).
  • -
  • This date format parser will only work with a four digit year. You can write your own if you need a two digit year parser. +
  • This date format parser will only work with a four digit year. You can write your own if you need a two digit year parser.
  • In versions 2.3+, columns can be disabled using any of the following methods (they all do the same thing), in order of priority:
    • jQuery data data-date-format="mmddyyyy" (see the Javascript block below on how to set it directly; data-dateFormat is equivalent to data-date-format).
    • @@ -60,7 +60,7 @@
  • -

    +

    Demo

    diff --git a/docs/example-option-digits.html b/docs/example-option-digits.html index d64479b9..2bb4d7c2 100644 --- a/docs/example-option-digits.html +++ b/docs/example-option-digits.html @@ -40,7 +40,7 @@
  • This example demonstrates that common table values are auto-detected (including plain text, currency, percentages, and positive & negative numbers), so there is no need to set a specific parser unless you notice an issue with how a column is sorting.
  • Issues may arise if a column contains mixed data, e.g. "N/A" is located at the top of a numeric column; in this case the column will be detected as a text column and not a numeric column. If issues occur, add a sorter-digit class name to that header cell.
  • -

    +

    Demo

    diff --git a/docs/example-option-show-processing.html b/docs/example-option-show-processing.html index ce5ffc41..42b1932f 100644 --- a/docs/example-option-show-processing.html +++ b/docs/example-option-show-processing.html @@ -71,7 +71,7 @@
  • As of v2.16.3, there is a built-in 500 millisecond delay before the processing icon will show. If the sort has completed within that time, the icon will not appear.
  • There is an issue with the processing icon not appearing at all, or the animation appears frozen when processing data in very large tables. This is due to javascript only being able to process one thread at-a-time; If you know of a solution or work-around please add a comment or contribute a fix!
  • -

    +

    Javascript

    diff --git a/docs/example-option-sort-append.html b/docs/example-option-sort-append.html index 0594c5c8..68f79f09 100644 --- a/docs/example-option-sort-append.html +++ b/docs/example-option-sort-append.html @@ -47,7 +47,7 @@
  • Click to sort any column header to see the the first column sort is appended to the selected sort order.
  • This option is part of the original plugin
  • -

    +

    Demo

    diff --git a/docs/example-option-sort-empty.html b/docs/example-option-sort-empty.html index 814d547a..f5a816cc 100644 --- a/docs/example-option-sort-empty.html +++ b/docs/example-option-sort-empty.html @@ -65,7 +65,7 @@ $(function(){
  • emptyToBottom option was added in v2.1.11, then replaced by the emptyTo option in v2.1.16.
  • -

    +

    Demo

    diff --git a/docs/example-option-sort-force.html b/docs/example-option-sort-force.html index d6a0297c..df0ac065 100644 --- a/docs/example-option-sort-force.html +++ b/docs/example-option-sort-force.html @@ -49,7 +49,7 @@
  • Click to sort any column header to see the forcing of the first column sort.
  • This option is part of the original plugin
  • -

    +

    Demo

    diff --git a/docs/example-option-sort-key.html b/docs/example-option-sort-key.html index ae7b6541..5c4afe21 100644 --- a/docs/example-option-sort-key.html +++ b/docs/example-option-sort-key.html @@ -40,7 +40,7 @@

    NOTE! Click to sort any column header, then hold down the alt key and select a second column. Continue selecting columns as desired. -

    +

    Demo

    diff --git a/docs/example-option-sortreset-sortrestart.html b/docs/example-option-sortreset-sortrestart.html index 294e081a..2ee81191 100644 --- a/docs/example-option-sortreset-sortrestart.html +++ b/docs/example-option-sortreset-sortrestart.html @@ -58,7 +58,7 @@
  • Test the sortReset option by clicking on any column at least three times. It should sort in the sortInitialOrder direction on the first click, the opposite direction on the second click, then reset to the original sort order on the third click. This cycle repeats on subsequent sorts.
  • Test the sortRestart option by clicking on any unsorted column to see that it will always restart from the sortInitialOrder.
  • -

    +

    Demo

    diff --git a/docs/example-option-text-extraction.html b/docs/example-option-text-extraction.html index 60f5246d..1590b94b 100644 --- a/docs/example-option-text-extraction.html +++ b/docs/example-option-text-extraction.html @@ -63,7 +63,7 @@
  • The "First Name" column is sorting by the contents of the <strong> tag (in red).
  • Added "table" and "cellIndex" variables to the textExtraction function (v2.1.2).
  • -

    +

    Demo

    diff --git a/docs/example-option-textsorter-semver.html b/docs/example-option-textsorter-semver.html index 38657dc3..390a50da 100644 --- a/docs/example-option-textsorter-semver.html +++ b/docs/example-option-textsorter-semver.html @@ -81,7 +81,7 @@
  • Semver example order, from semver.org:
    1.0.0-alpha < 1.0.0-alpha.1 < 1.0.0-alpha.beta < 1.0.0-beta < 1.0.0-beta.2 < 1.0.0-beta.11 < 1.0.0-rc.1 < 1.0.0
  • -

    +

    Demo

    diff --git a/docs/example-option-theme-metro-style.html b/docs/example-option-theme-metro-style.html index 71c2980e..2d91b9a7 100644 --- a/docs/example-option-theme-metro-style.html +++ b/docs/example-option-theme-metro-style.html @@ -67,7 +67,7 @@
  • For alternate thead & tfoot row colors, add the class name dark-row. See the HTML below.
  • -

    +

    Demo

    diff --git a/docs/example-options-headers-digits-strings.html b/docs/example-options-headers-digits-strings.html index d0d37d8e..9fd99a89 100644 --- a/docs/example-options-headers-digits-strings.html +++ b/docs/example-options-headers-digits-strings.html @@ -73,7 +73,7 @@
  • Sort columns three through eight to see how the sort has changed. Note that the text is sorted separately from the numeric values.
  • The emptyTo option defaults to bottom, so all empty cells will sort at the bottom of the table, except for the second column.
  • -

    +

    Demo

    diff --git a/docs/example-options-headers-locked.html b/docs/example-options-headers-locked.html index b2d76729..fb9984b6 100644 --- a/docs/example-options-headers-locked.html +++ b/docs/example-options-headers-locked.html @@ -53,7 +53,7 @@ -

    +

    Demo

    diff --git a/docs/example-options-headers-order.html b/docs/example-options-headers-order.html index 48d5e185..e493e17b 100644 --- a/docs/example-options-headers-order.html +++ b/docs/example-options-headers-order.html @@ -56,7 +56,7 @@ -

    +

    Demo

    diff --git a/docs/example-options-headers-parser.html b/docs/example-options-headers-parser.html index 9af41061..a466dec5 100644 --- a/docs/example-options-headers-parser.html +++ b/docs/example-options-headers-parser.html @@ -68,7 +68,7 @@ -

    +

    Demo

    diff --git a/docs/example-options-headers.html b/docs/example-options-headers.html index a8ec3c67..a81b3e8d 100644 --- a/docs/example-options-headers.html +++ b/docs/example-options-headers.html @@ -58,7 +58,7 @@ -

    +

    Demo

    diff --git a/docs/example-pager-filtered.html b/docs/example-pager-filtered.html index 1168be96..a831631f 100644 --- a/docs/example-pager-filtered.html +++ b/docs/example-pager-filtered.html @@ -139,7 +139,7 @@
  • This combination was not possible in tablesorter versions prior to version 2.4.
  • This combination can not be applied to the original tablesorter.
  • -

    +

    Demo


    diff --git a/docs/example-pager.html b/docs/example-pager.html index 083e937f..ebfa6f2e 100644 --- a/docs/example-pager.html +++ b/docs/example-pager.html @@ -201,7 +201,7 @@
  • There have been lots of changes made in version 2.1, please check out the change log.
  • In v2.11, the savePages option was added to saves the current page size and number (requires storage script).
  • -

    +

    Triggered Events

      diff --git a/docs/example-parsers-advanced.html b/docs/example-parsers-advanced.html index 95229508..353ddfec 100644 --- a/docs/example-parsers-advanced.html +++ b/docs/example-parsers-advanced.html @@ -88,7 +88,7 @@ $(function(){
    • This method of writing custom parsers will NOT work with the original tablesorter 2.0.5b plugin because the format function does not consistently provide the cell and cellIndex parameters.
    -

    +

    Demo

    diff --git a/docs/example-parsers-class-name.html b/docs/example-parsers-class-name.html index 00ac6027..2bba75e9 100644 --- a/docs/example-parsers-class-name.html +++ b/docs/example-parsers-class-name.html @@ -44,7 +44,7 @@ -

    +

    Demo

    diff --git a/docs/example-parsers-dates.html b/docs/example-parsers-dates.html index 58f17cdd..a3020674 100644 --- a/docs/example-parsers-dates.html +++ b/docs/example-parsers-dates.html @@ -61,8 +61,8 @@
    • Formats for "mmddyy", "ddmmyy" and "yymmdd" are available
    • Within the parser code is a range variable which is set to 50 years range, which sets the date be within +/- range of the listed two digit year.
    • -
    • So if the current year is 2020, and the listed two digit year is 80 (2080 - 2020 > 50), it becomes 1980.
    • -
    • If the listed two digit year is 50 (2050 - 2020 < 50), then it becomes 2050. I hope that makes it clearer.
    • +
    • So if the current year is 2020, and the listed two digit year is 80 (2080 - 2020 > 50), it becomes 1980.
    • +
    • If the listed two digit year is 50 (2050 - 2020 < 50), then it becomes 2050. I hope that makes it clearer.
    • Try out the two digit year calculator below the table.
    • In v2.14.0, the range can be set using the dateRange option (see the initialization code below).
    @@ -71,7 +71,7 @@ -

    +

    Demo

    diff --git a/docs/example-parsers-ignore-articles.html b/docs/example-parsers-ignore-articles.html index 8f7362ab..7de6c801 100644 --- a/docs/example-parsers-ignore-articles.html +++ b/docs/example-parsers-ignore-articles.html @@ -91,7 +91,7 @@ $('table').tablesorter({ "hu" : "a, az, egy" }; -

    +

    Demo


    diff --git a/docs/example-parsers-ip-address.html b/docs/example-parsers-ip-address.html index 66279ef7..05705653 100644 --- a/docs/example-parsers-ip-address.html +++ b/docs/example-parsers-ip-address.html @@ -68,7 +68,7 @@ }); -

    +

    Demo

    diff --git a/docs/example-parsers-jquery-data.html b/docs/example-parsers-jquery-data.html index e68cd3cd..0b772882 100644 --- a/docs/example-parsers-jquery-data.html +++ b/docs/example-parsers-jquery-data.html @@ -32,7 +32,7 @@

    NOTE! This functionality was added in version 2.2.3 (it is not part of the original plugin). -

    +

    Demo

    diff --git a/docs/example-parsers-metric.html b/docs/example-parsers-metric.html index d7649f8c..638c8880 100644 --- a/docs/example-parsers-metric.html +++ b/docs/example-parsers-metric.html @@ -57,7 +57,7 @@
  • Supported prefixes include: Yotta (1024), Zetta (1021), Exa (1018), Peta (1015), Tera (1012), Giga (109), Mega (106), kilo (103), hecto (102), deka (101), deci (10-1), centi (10-2), milli (10-3), micro (10-6), nano (10-9), pico (10-12), femto (10-15), atto (10-18), zepto (10-21) and yocto (10-24).
  • This demo includes the stored metric values within the table cells, toggle the view using the button below.
  • -

    +

    Demo

    @@ -91,7 +91,7 @@ <script src="../js/jquery.tablesorter.js"></script> <!-- load metric parser --> -<script src="../js/parsers/parser-metric.js"></script> +<script src="../js/parsers/parser-metric.js"></script>

    Javascript

    diff --git a/docs/example-parsers-roman.html b/docs/example-parsers-roman.html index 920ea887..69ebab76 100644 --- a/docs/example-parsers-roman.html +++ b/docs/example-parsers-roman.html @@ -213,7 +213,7 @@ <script src="../js/jquery.tablesorter.js"></script> <!-- load roman numeral parser --> -<script src="../js/parsers/parser-roman.js"></script> +<script src="../js/parsers/parser-roman.js"></script>

    Javascript

    diff --git a/docs/example-parsers.html b/docs/example-parsers.html index 845a566f..28a8da19 100644 --- a/docs/example-parsers.html +++ b/docs/example-parsers.html @@ -153,7 +153,7 @@ $(function() {

    HTML

    NOTE! Assigning the parser using a class name was added in version 2.0.11 (it is not part of the original plugin; use the headers option in older versions). -

    +

    
     	
    diff --git a/docs/example-trigger-sort.html b/docs/example-trigger-sort.html index 4e9052dd..d1679456 100644 --- a/docs/example-trigger-sort.html +++ b/docs/example-trigger-sort.html @@ -102,7 +102,7 @@
  • In v2.17.0, added sorton values (a)scending, (d)escending, (n)ext, (s)ame & (o)pposite. Use the demo below help understand how to use these settings.
  • In v2.9, a "sort" event can be triggered on the header cell to toggle the sort.
  • -

    +

    diff --git a/docs/example-update-all.html b/docs/example-update-all.html index 8f71d93c..f9873eb9 100644 --- a/docs/example-update-all.html +++ b/docs/example-update-all.html @@ -68,7 +68,7 @@
  • This method allows you to update the cache with data from both the thead and tbody of the table.
  • The update method only updates the cache from the tbody.
  • -

    +

    Demo

    diff --git a/docs/example-update-cell.html b/docs/example-update-cell.html index e3595c86..74befcf6 100644 --- a/docs/example-update-cell.html +++ b/docs/example-update-cell.html @@ -60,7 +60,7 @@
  • This option is part of the original plugin.
  • Automatic resorting after "updateCell" is triggered was added in version 2.0.14.
  • -

    +

    Demo

    diff --git a/docs/example-widget-align-character.html b/docs/example-widget-align-character.html index 2cbc738e..8e73d2b3 100644 --- a/docs/example-widget-align-character.html +++ b/docs/example-widget-align-character.html @@ -122,13 +122,13 @@ td:nth-child(3) .ts-align-right i { </span> </td> When this option is set with some HTML: -
    alignChar_wrap : '<i/>'
    +
    alignChar_wrap : '<i/>'
    it results in this layout:
    <td>
     	<span class="ts-align-wrap">
     		<span class="ts-align-left" style="min-width:37%">Ox&nbsp;</span>
     		<span class="ts-align-right" style="min-width:63%">
    -			<i>=</i>&nbsp;stinky
    +			<i>=</i>&nbsp;stinky
     		</span>
     	</span>
     </td>
    diff --git a/docs/example-widget-bootstrap-theme.html b/docs/example-widget-bootstrap-theme.html index 765d5e65..8f743d1a 100644 --- a/docs/example-widget-bootstrap-theme.html +++ b/docs/example-widget-bootstrap-theme.html @@ -177,7 +177,7 @@
  • This demo uses HTML5 data attributes and therefore needs jQuery 1.4+.
  • -

    +

    Demo

    diff --git a/docs/example-widget-column-selector.html b/docs/example-widget-column-selector.html index e8a68fcc..94af1178 100644 --- a/docs/example-widget-column-selector.html +++ b/docs/example-widget-column-selector.html @@ -401,7 +401,7 @@ -

    +

    Demo

    diff --git a/docs/example-widget-columns.html b/docs/example-widget-columns.html index 82099e13..588eff91 100644 --- a/docs/example-widget-columns.html +++ b/docs/example-widget-columns.html @@ -88,7 +88,7 @@ $(function() {
  • The original "widgetColumns" option has been replaced by "widgetOptions.columns". See the javascript block below for more details (v2.1).
  • Table header and footer rows now get updated with the columns widget classes. Check out the "grey" theme to see (v2.4).
  • -

    +

    Demo

    Choose Theme: diff --git a/docs/example-widget-editable.html b/docs/example-widget-editable.html index 7261af8a..9c4d0689 100644 --- a/docs/example-widget-editable.html +++ b/docs/example-widget-editable.html @@ -150,7 +150,7 @@ td.no-edit, span.no-edit { -
    Class name on table cells to search for that are not to become editable. . + Class name on table cells to search for that are not to become editable.

    The search is only done within the columns set by the editable_columns option.
    @@ -176,7 +176,7 @@ td.no-edit, span.no-edit {
    -

    +

    Demo

    diff --git a/docs/example-widget-filter-custom-search.html b/docs/example-widget-filter-custom-search.html index f3b188c7..b0d29de4 100644 --- a/docs/example-widget-filter-custom-search.html +++ b/docs/example-widget-filter-custom-search.html @@ -133,25 +133,26 @@ $(function() {

    How to add Custom filter types

      -
    • The first step is to decide what you want your filter to do. +
    • The first step is to decide what you want your filter to do.
    • +
    • Should it look for a symbol at the beginning, middle or end of the filter?
    • +
    • Does the designator need spaces around it (e.g. " and " or " or ") to prevent problems? You wouldn't be able to find the country of "Andorra" if the "and" or "or" designators didn't require spaces.
    • +
    • Make sure to name your filter so that it doesn't interfere with already existing ones, unless your filter is meant to replace an existing one. See the "Built-in Filters" section for a full list of filter function names.
    • +
    • Within your filter, first test for your designator symbol.
        -
      • Should it look for a symbol at the beginning, middle or end of the filter?
      • -
      • Does the designator need spaces around it (e.g. " and " or " or ") to prevent problems? You wouldn't be able to find the country of "Andorra" if the "and" or "or" designators didn't require spaces.
      • -
      • Make sure to name your filter so that it doesn't interfere with already existing ones, unless your filter is meant to replace an existing one. See the "Built-in Filters" section for a full list of filter function names.
      • -
      • Within your filter, first test for your designator symbol. +
      • If it exists within the filter, then do your comparison and return a boolean of true or false.
      • +
      • Four arguments are passed to the filter function:
          -
        • If it exists within the filter, then do your comparison and return a boolean of true or false.
        • -
        • Four arguments are passed to the filter function: -
            -
          • filter - The exact text from the filter input (e.g. ^h).
          • -
          • iFilter - The text from the filter in all lower case for case insensitive searches.
          • -
          • exact - The exact (or parsed) text from the current table cell; the parsed text is passed when the column has a "filter-parsed" class name set.
          • -
          • iExact - The exact (or parsed) text in all lower case for case insensitive searches.
          • -
          -
        • -
        • If your designator doesn't exist, you *must* return null to allow comparisons with other filter types.
        • -
        • Here is a basic example with extensive comments: -
          // search for a match from the beginning of a string
          +							
        • filter - The exact text from the filter input (e.g. ^h).
        • +
        • iFilter - The text from the filter in all lower case for case insensitive searches.
        • +
        • exact - The exact (or parsed) text from the current table cell; the parsed text is passed when the column has a "filter-parsed" class name set.
        • +
        • iExact - The exact (or parsed) text in all lower case for case insensitive searches.
        • +
        +
      • +
      • If your designator doesn't exist, you *must* return null to allow comparisons with other filter types.
      • +
      +
    • +
    • Here is a basic example with extensive comments: +
      // search for a match from the beginning of a string
       // "^l" matches "lion" but not "koala"
       $.tablesorter.filter.types.start = function( filter, iFilter, exact, iExact ) {
       	// test for filter type designator. In this example, "^" must be at the beginning of the filter
      @@ -167,7 +168,8 @@ $.tablesorter.filter.types.start = function( filter, iFilter, exact, iExact ) {
       	}
       	// ALWAYS return null if your custom filter type doesn't match
       	return null;
      -};
    • +}; +
    diff --git a/docs/example-widget-filter-custom.html b/docs/example-widget-filter-custom.html index 50aaa27c..56cb8844 100644 --- a/docs/example-widget-filter-custom.html +++ b/docs/example-widget-filter-custom.html @@ -237,9 +237,9 @@ // Note that only the normalized (n) value will contain numerical data // If you use the exact text, you'll need to parse it (parseFloat or parseInt) 4 : { - "< $10" : function(e, n, f, i, $r) { return n < 10; }, - "$10 - $100" : function(e, n, f, i, $r) { return n >= 10 && n <=100; }, - "> $100" : function(e, n, f, i, $r) { return n > 100; } + "< $10" : function(e, n, f, i, $r) { return n < 10; }, + "$10 - $100" : function(e, n, f, i, $r) { return n >= 10 && n <=100; }, + "> $100" : function(e, n, f, i, $r) { return n > 100; } } }
  • See the "Filter function information" section below.
  • diff --git a/docs/example-widget-filter-external-inputs.html b/docs/example-widget-filter-external-inputs.html index f903f7dc..416ae7f5 100644 --- a/docs/example-widget-filter-external-inputs.html +++ b/docs/example-widget-filter-external-inputs.html @@ -5,7 +5,7 @@ jQuery plugin: Tablesorter 2.0 - Filter Widget External Inputs - + @@ -81,7 +81,7 @@
  • As of v2.15,
    • A new filter widget filter_external option has been added that essentially does the same thing as the $.tablesorter.bindSearch function.
    • - Use either to bind external search inputs. +
    • Use either to bind external search inputs.
    • To change an input from searching one column (or all columns) to search any other column, call the $.tablesorter.bindSearch function to update the external inputs, even if the inputs are set using the filter_external option. Pass an additional false flag as the last parameter to force the inputs to update.
      $.tablesorter.bindSearch( $('table'), $('.search'), false );
    • diff --git a/docs/example-widget-filter-formatter-2.html b/docs/example-widget-filter-formatter-2.html index fa860ee9..75385263 100644 --- a/docs/example-widget-filter-formatter-2.html +++ b/docs/example-widget-filter-formatter-2.html @@ -162,7 +162,7 @@ max: 100, delayed: true, valueToHeader: true, - compare : [ '=', '>=', '<=' ], + compare : [ '=', '>=', '<=' ], selected: 1 }); }, @@ -175,7 +175,7 @@ max: 150, delayed: true, valueToHeader: true, - compare : '>=' + compare : '>=' }); } @@ -274,7 +274,7 @@ max: 44, delayed: true, addToggle: false, - compare: [ '<=', '=', '>=' ], + compare: [ '<=', '=', '>=' ], selected: 2 }); } diff --git a/docs/example-widget-filter-formatter-select2.html b/docs/example-widget-filter-formatter-select2.html index bd8ca5fa..7bcf92f2 100644 --- a/docs/example-widget-filter-formatter-select2.html +++ b/docs/example-widget-filter-formatter-select2.html @@ -169,7 +169,7 @@ -

      +

      Demo

      diff --git a/docs/example-widget-grouping-filter-childrows.html b/docs/example-widget-grouping-filter-childrows.html index 33cf335b..3dd58e24 100644 --- a/docs/example-widget-grouping-filter-childrows.html +++ b/docs/example-widget-grouping-filter-childrows.html @@ -123,7 +123,7 @@ tr.group-header.collapsed td i {
  • -

    +

    Demo

    @@ -139,7 +139,7 @@ tr.group-header.collapsed td i { - + @@ -147,25 +147,25 @@ tr.group-header.collapsed td i { - + - + - + - + @@ -188,5 +188,7 @@ tr.group-header.collapsed td i {
    
     
    +
    +
     
    diff --git a/docs/example-widget-grouping.html b/docs/example-widget-grouping.html
    index eeb23ab4..d6a149a6 100644
    --- a/docs/example-widget-grouping.html
    +++ b/docs/example-widget-grouping.html
    @@ -395,7 +395,7 @@ group_dateString : function(date) {
     						
    -						
    +						
    diff --git a/docs/example-widget-header-titles.html b/docs/example-widget-header-titles.html
    index 0c646b10..a5aa8331 100644
    --- a/docs/example-widget-header-titles.html
    +++ b/docs/example-widget-header-titles.html
    @@ -145,7 +145,7 @@
     				
  • This widget adds a title to the table headers when they are sorted.
  • Click on any header. You may have to move the mouse off, then back on the header to see the title appear.
  • This widget will not work with the original tablesorter plugin (v2.0.5).
  • -
  • The examples uses the tipsy jQuery plugin
  • +
  • The examples uses the tipsy jQuery plugin
  • diff --git a/docs/example-widget-pager-ajax.html b/docs/example-widget-pager-ajax.html index 89c023a8..b1b37f9a 100644 --- a/docs/example-widget-pager-ajax.html +++ b/docs/example-widget-pager-ajax.html @@ -178,8 +178,7 @@
  • The "ID" column has a default filter setting of ">30" and a descending sort, but neither is applied as this demo is not connected a server (just a basic JSON file).
  • -

    - +

    Demo

    Original Ajax url:
    diff --git a/docs/example-widget-pager.html b/docs/example-widget-pager.html index 4690b556..05b750c8 100644 --- a/docs/example-widget-pager.html +++ b/docs/example-widget-pager.html @@ -226,7 +226,7 @@ -

    +

    Triggered Events

      diff --git a/docs/example-widget-print.html b/docs/example-widget-print.html index 768f7b0f..a3c56ee9 100644 --- a/docs/example-widget-print.html +++ b/docs/example-widget-print.html @@ -264,7 +264,7 @@ print_callback : function( config, $table, printStyle ) { -

      +

      Demo

      diff --git a/docs/example-widget-reflow.html b/docs/example-widget-reflow.html index 7d1a6140..3a52f590 100644 --- a/docs/example-widget-reflow.html +++ b/docs/example-widget-reflow.html @@ -493,7 +493,7 @@ table.ui-table-reflow .ui-table-cell-label.ui-table-cell-label-top {
      -

      +

      Demo (Pick a table width or resize the browser window)

      Reflow widget only

      diff --git a/docs/example-widget-resizable.html b/docs/example-widget-resizable.html index 0681e3db..2e8d00b6 100644 --- a/docs/example-widget-resizable.html +++ b/docs/example-widget-resizable.html @@ -91,7 +91,7 @@
    • In order to save the resized widths, jQuery version 1.4.1+ should be used because jQuery's parseJson() function is needed.
    • Setting the resizable_addLastColumn widget option to true will add the resizable handle to the last column, see the "non-full" width table below (v2.9.0).
    -

    +

    Demo

    diff --git a/docs/example-widget-savesort.html b/docs/example-widget-savesort.html index 8724bc07..bb215937 100644 --- a/docs/example-widget-savesort.html +++ b/docs/example-widget-savesort.html @@ -57,7 +57,7 @@
  • Because this widget uses jQuery's parseJson() function, it requires jQuery version 1.4.1+.
  • Added a saveSortReset method which only clears the stored information (v2.7.11).
  • -

    +

    Demo

    diff --git a/docs/example-widget-scroller.html b/docs/example-widget-scroller.html index 89a57408..68b22607 100644 --- a/docs/example-widget-scroller.html +++ b/docs/example-widget-scroller.html @@ -135,7 +135,7 @@ $(function() { -

    +

    Javascript

    diff --git a/docs/example-widget-static-row.html b/docs/example-widget-static-row.html index ce2f39b1..523b8491 100644 --- a/docs/example-widget-static-row.html +++ b/docs/example-widget-static-row.html @@ -184,7 +184,7 @@ $(table).trigger('staticRowsRefresh');

    Demo

    Note Make any row static or normal by toggling the static class name using Ctrl + left click ( + click on Mac)

    Single tbody

    -

    Move "Iguana" row:

    +

    Move "Iguana" row:

    Good ToysUSA80%
    Good ToysUSA80%
    1561651finish0$5
    558815finish0$55
    21485213in progress2$7
    12547854finish0$18
    Cycle Initial Bike CompanyUSA36%
    Cycle Initial Bike CompanyUSA36%
    12574521in progress1$5
    7895452in progress2$78
    1542021finish0$28
    4489885finish0$18
    Sports StoreUSA90%
    Sports StoreUSA90%
    18915in progress2$5
    5402574in progress2$78
    26478finish0$28
    25682finish0$18
    Locks CompanyUK24%
    Locks CompanyUK24%
    18915in progress2$5
    5402574in progress1$78
    26478finish0$28
    25682finish0$18
    Famous Bike ShopUK12%
    Famous Bike ShopUK12%
    185406in progress2$5
    541265in progress2$78
    Group the rows by year.
    "group-date-month"*"group-date-month"* Group the rows by month.
    @@ -272,5 +272,7 @@ $(table).trigger('staticRowsRefresh');
    
     
    +
    +
     
    \ No newline at end of file
    diff --git a/docs/example-widget-sticky-header.html b/docs/example-widget-sticky-header.html
    index 267d3882..76967d6d 100644
    --- a/docs/example-widget-sticky-header.html
    +++ b/docs/example-widget-sticky-header.html
    @@ -148,7 +148,7 @@ $(function() {
     			
  • Add the class name sticky-false to any header rows you don't want to become sticky (v2.1.18).
  • Because of the limitations of Internet Explorer version 7 and older, this widget will not work.
  • -

    +

    CSS

    diff --git a/docs/example-widget-ui-theme.html b/docs/example-widget-ui-theme.html index a833ed17..b6051da1 100644 --- a/docs/example-widget-ui-theme.html +++ b/docs/example-widget-ui-theme.html @@ -112,7 +112,7 @@
  • Earlier widget versions required jQuery 1.4+. The UITheme widget for tablesorter 2.4+ requires jQuery 1.2.6+.
  • -

    +

    Demo


    diff --git a/docs/example-widget-zebra.html b/docs/example-widget-zebra.html index 26955c3d..7ecec596 100644 --- a/docs/example-widget-zebra.html +++ b/docs/example-widget-zebra.html @@ -63,7 +63,7 @@ table.tablesorter tbody tr.alt-row td {
  • The original "widgetZebra" option has been replaced by "widgetOptions.zebra". See the javascript block below for more details (v2.1).
  • If the "widgetZebra" option exists, it will over-ride this newer "widgetOptions.zebra" option in order to maintain backwards compatibility.
  • -

    +

    Demo

    Column 1Column 2Column 3
    diff --git a/docs/index.html b/docs/index.html index f885278c..c948cb15 100644 --- a/docs/index.html +++ b/docs/index.html @@ -118,7 +118,7 @@ Licence: Dual licensed under MIT or GPL licenses.
    -

    +

    Contents

    @@ -145,7 +145,7 @@ standard HTML table with THEAD and TBODY tags into a sortable table without page refreshes. tablesorter can successfully parse and sort many types of data including linked data in a cell. It has many useful features including: -

    +

    • Multi-column sorting
    • @@ -162,7 +162,7 @@

      Demo

      -
    +
    @@ -241,7 +241,7 @@

    TIP! Sort multiple columns simultaneously by holding down the Shift key and clicking a second, third or even fourth column header! -

    +

    Getting started

    @@ -249,7 +249,7 @@ To use the tablesorter plugin, include the jQuery library and the tablesorter plugin inside the <head> tag of your HTML document: -

    +

    <!-- choose a theme file -->
     <link rel="stylesheet" href="/path/to/theme.default.css">
    @@ -261,7 +261,7 @@
     <script type="text/javascript" src="/path/to/jquery.tablesorter.widgets.js"></script>
     
    -

    tablesorter works on standard HTML tables. You must include THEAD and TBODY tags:

    +

    tablesorter works on standard HTML tables. You must include THEAD and TBODY tags:

    <table id="myTable" class="tablesorter">
       <thead>
    @@ -305,7 +305,7 @@
       </tbody>
     </table>
    -

    Start by telling tablesorter to sort your table when the document is loaded:

    +

    Start by telling tablesorter to sort your table when the document is loaded:

    $(function(){
       $("#myTable").tablesorter();
    @@ -315,7 +315,7 @@
     		Click on the headers and you'll see that your table is now sortable!  You can
     		also pass in configuration options when you initialize the table.  This tells
     		tablesorter to sort on the first and second column in ascending order.
    -	

    +

    $(function(){
       $("#myTable").tablesorter({ sortList: [[0,0], [1,0]] });
    @@ -323,14 +323,14 @@
     
     	

    NOTE! tablesorter will auto-detect most data types including numbers, dates, ip-adresses for more information see Examples -

    +

    Examples

    These examples will show what's possible with tablesorter. You need Javascript enabled to run these samples, just like you and your users will need Javascript enabled to use tablesorter. -

    +

    Basic

    @@ -391,7 +391,7 @@ @@ -460,7 +460,6 @@

    Plugins / Widgets
    -

    these widgets are included in the jquery.tablesorter.widgets.js file (except for extra filter formatter functions)
    this widget is included with the plugin core. @@ -521,7 +520,7 @@
  • Zebra stripe widget
  • -

    Custom Parsers

    +

    Custom Parsers

    • Date parsers (v2.8; v2.14; includes weekday, month, two-digit year & sugar.js date parsers).
    • File type parser (v2.13).
    • @@ -552,7 +551,7 @@ TIP! Click on the link in the property column to reveal full details (or toggle|show|hide all) or double click to update the browser location.
    -
    Account #
    +
    @@ -1520,7 +1519,7 @@ $(function(){ // direction: true = ascending; false = descending // columnIndex: zero-based index of the current table column being sorted // table: table DOM element (access options by using table.config) - return a > b ? 1 : (a < b ? -1 : 0); + return a > b ? 1 : (a < b ? -1 : 0); }, 1 : $.tablesorter.sortText, // same as the function in column 0 above (modified in v2.12) 2 : $.tablesorter.sortNatural, // renamed v2.12 from $.tablesorter.sortText - performs natural sort @@ -1858,7 +1857,7 @@ $(function(){

    Widget & Pager Options

    -
    Property
    +
    @@ -1888,7 +1887,7 @@ $(function(){ TIP! Click on the link in the property column to reveal full details (or toggle|show|hide all) or double click to update the browser location. -
    Widget PriorityNameRequires jQueryLimiting function
    +
    @@ -2153,8 +2152,8 @@ $(function(){ In v2.17.0, the filter_functions column can also be referenced by using a jQuery selector (e.g. class name or ID).
    filter_functions : {
         ".col-date" : {
    -        "< 2004" : function (e, n, f, i) {
    -            return n < Date.UTC(2004, 0, 1); // < Jan 1 2004
    +        "< 2004" : function (e, n, f, i) {
    +            return n < Date.UTC(2004, 0, 1); // < Jan 1 2004
             },
             ...
         }
    @@ -2668,7 +2667,7 @@ $('table').trigger('search', false);
    Property Sticky Headers widget: This additional CSS class applied to the sticky header row (v2.11).

    Changed to empty string in v2.11, as the "tablesorter-stickyHeader" class will always be added to the sticky header row; this option now contains any additional class names to add. -

    Previously, this option contained the class name to be applied to the sticky header row (tr) (v2.1).

    +

    Previously, this option contained the class name to be applied to the sticky header row (tr) (v2.1).

    Use the "stickyHeaders" option to add an extra css class name as follows:
    $(function(){
       $("table").tablesorter({
    @@ -2926,7 +2925,7 @@ $('table').trigger('search', false);
    widgets: ["resizable"], widgetOptions : { // set to true for a default 5ms throttling delay - // or set to a number < 10 (more than that makes the resizing adjustment unusable + // or set to a number < 10 (more than that makes the resizing adjustment unusable resizable_throttle : true } }); @@ -3867,7 +3866,7 @@ $.extend($.tablesorter.themes.jui, { TIP! Click on the link in the method column to reveal full details (or toggle|show|hide all) or double click to update the browser location. - +
    @@ -4315,7 +4314,7 @@ $('table').trigger( 'search', [['', '', '', '', 'orange']] ); // find orange in TIP! Click on the link in the event column to reveal full details (or toggle|show|hide all) or double click to update the browser location. -
    Method
    +
    @@ -4680,12 +4679,14 @@ $('table').trigger( 'search', [['', '', '', '', 'orange']] ); // find orange in TIP! Click on the link in the variable column to reveal full details (or toggle|show|hide all) or double click to update the browser location. -
    Event
    +
    - - - - + + + + + + @@ -4767,6 +4768,7 @@ $('table').trigger( 'search', [['', '', '', '', 'orange']] ); // find orange in }); + @@ -5165,16 +5167,16 @@ var wo = $('#mytable').data('tablesorter').widgetOptions;

    Functions

    TIP! Click on the link in the function column to reveal full details (or toggle|show|hide all) or double click to update the browser location. -
    VariableTypeDescriptionLink
    VariableTypeDescriptionLink
    +
    - + - + @@ -5198,7 +5200,7 @@ var wo = $('#mytable').data('tablesorter').widgetOptions;
    var tbodyIndex, _tbody,
     	table = $('#my-table')[0],
     	tbodies = table.tBodies, // use table.config.$tbodies for all tbodies EXcluding information only tbodies
    -for (tbodyIndex = 0; tbodyIndex < tbodies.length; tbodyIndex++) {
    +for (tbodyIndex = 0; tbodyIndex < tbodies.length; tbodyIndex++) {
     	// detach tbody from table
     	_tbody = $.tablesorter.processTbody( table, tbodies[tbodyIndex], true );
     	// do something magical to the tbody
    @@ -5363,7 +5365,7 @@ myArray.sort(function(a,b) { return $.tablesorter.sortText(a, b); });
    Here is a basic example of how this function is used:
    $.tablesorter.replaceAccents("áàâãä"); // result: "aaaaa"
    - This function is used when the sortLocaleCompare option is set to true. Please refer to the option and the demo for more details on the defaults values and how to add more accented characters. + This function is used when the sortLocaleCompare option is set to true. Please refer to the option and the demo for more details on the defaults values and how to add more accented characters. @@ -5496,7 +5498,7 @@ widget.format( table, table.config, table.config.widgetOptions );
  • doAll - optional, boolean flag.
  • dontapply - optional, boolean flag.
  • - The doAll flag is set to true if all widgets contained with the global $.tablesorter.widgets array are to be removed.
    + The doAll flag is set to true if all widgets contained with the global $.tablesorter.widgets array are to be removed.

    This function is called when the refreshWidgets method is triggered. @@ -5507,7 +5509,7 @@ widget.format( table, table.config, table.config.widgetOptions ); @@ -5665,7 +5667,7 @@ $.tablesorter.isDigit( "(2,345.67)" ); $.tablesorter.getFilters( $('table') ); This function returns an array of filter values (e.g. [ '', '', '', '', '', '2?%' ]), or false if the selected table does not have a filter row. It will also return an additional parameter if an external input with data-column="all" containing the value used when matching any table column.

    - In v2.15, this function will also return values from any external filters (set either by the filter_external option or using the bindSearch function) - with or without an internal filter row.
    + In v2.15, this function will also return values from any external filters (set either by the filter_external option or using the bindSearch function) - with or without an internal filter row.

    If the second parameter is set to true, it forces the function to get all of the current filter values directly from the inputs. Otherwise, by default, the function returns the last search as found in this stored data $('table').data('lastSearch');. @@ -5691,7 +5693,7 @@ $.tablesorter.setFilters( $('table'), [ '', '', '', '', '', '2?%' ] ); $.tablesorter.setFilters( $('table'), [ '', '', '', '', '', '2?%' ], true ); // this will now use the search method This function returns true if the filters were sucessfully applied, or false if the table does not have a filter row.

    - As of v2.15, this function will also set values in any external filters (set either by the filter_external option or using the bindSearch function). An additional search parameter can be included to match any column, but please include an external input with data-column="all" using the bindSearch function so your users will know that a search has been applied.
    + As of v2.15, this function will also set values in any external filters (set either by the filter_external option or using the bindSearch function). An additional search parameter can be included to match any column, but please include an external input with data-column="all" using the bindSearch function so your users will know that a search has been applied.

    Also, changed is that when a true value is passed as a third parameter, the search is forced to refresh on the table; otherwise, if the filters set in the search exactly match the previous search, it would be ignored - this was added to prevent numerous ajax calls with exactly the same search or sort parameters (when using the pager). @@ -5876,7 +5878,7 @@ $.tablesorter.addHeaderResizeEvent( table, true );
  • NickCraver
  • and all the contributors!
  • -

    +

    John Resig for the fantastic jQuery

    FunctionFunction Description
    Core Functions
    This functions gets the sorter, string, empty, etc options for each column from jQuery data, metadata, header option or header class name ("sorter-false") (v2.1.16).

    - priority = jQuery data > meta > headers option > header class name
    + priority = jQuery data > meta > headers option > header class name

    Use it as follows:
    $.tablesorter.getData(headerCell, configHeaders, key);
    @@ -5542,7 +5544,7 @@ $.tablesorter.getData( headerCell, config.headers[column], "sorter" );
    This function uses the usNumberFormat option to determine if either commas or decimals are removed before converting the value within the string parameter into a number type variable. This function does not use the $.tablesorter.isDigit function.

    - Any numbers wrapped within parenthesis are converted into negative numbers; but any other symbols (e.g. currency) are not removed and will cause this function to determine the string as a non-number (e.g. "$1.25" will be returned as a string).
    + Any numbers wrapped within parentheses are converted into negative numbers; but any other symbols (e.g. currency) are not removed and will cause this function to determine the string as a non-number (e.g. "$1.25" will be returned as a string).

    Use this function as follows:
    // result: -2345.67 if usNumberFormat option is true
    @@ -5609,8 +5611,8 @@ $.tablesorter.isDigit( "(2,345.67)" );
    1. Plain string - "table refuses to cooperate"
    2. HTML row string - '<tr><td colspan="' + table.config.columns + '">yeah, instead of showing your data... I am taking a nap</td></tr>' (the table.config.columns variable contains the number of table columns; use as needed)
    3. -
    4. undefined - completely leave out a message parameter $.tablesorter.showError( table ); to remove all error rows from the table thead.
    5. - +
    6. undefined - completely leave out a message parameter $.tablesorter.showError( table ); to remove all error rows from the table thead.
    7. +