diff --git a/README.md b/README.md index b7142f44..10884de5 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,41 @@ tablesorter can successfully parse and sort many types of data including linked View the [complete listing here](https://github.com/Mottie/tablesorter/wiki/Change). +#### Version 2.13.3 (11/9/2013) + +* Pager (plugin/widget) + * Fixed initial filter settings when using pager ajax. Fixes [issue #388](https://github.com/Mottie/tablesorter/issues/388). + * Fixed ajax pager not recognizing column sorting. Fixes [issue #408](https://github.com/Mottie/tablesorter/issues/408). + * The core plugin now remove rows from table when using pager ajax. Fixes [issue #411](https://github.com/Mottie/tablesorter/issues/411). + +* Filter widget + * Renamed all variables & restructured the entire widget. + * Added better integration with the pager plugin/widget to minimize ajax server calls by getting default filter settings. Fixes [issue #388](https://github.com/Mottie/tablesorter/issues/388). + * Fixed filter formatter HTML5 spinner to properly find exact matches. + * Added a new fuzzy search parameter + * Fuzzy searches match sequential characters, similar to how Sublime Text searches work + * Start the search with a tilde `~` followed by any sequential characters to match. + * Examples: `~bee` will match both "Bruce Lee" and "Brenda Lee", `~bcd` will find "Brandon Clark" and `~piano` will find "Philip Aaron Wong" + * Added `filter_anyMatch` + * Set this option to `true` when using an external search filter. + * Setting this option should work properly with or without the column filters. The only issue you would have is if you triggered a search on the table using an array with undefined or null array values. + * Some limitations are applied when using any match. Search operators, range queries and not-matches are not allowed. + * See [the demo](http://mottie.github.io/tablesorter/docs/example-widget-filter-any-match.html) for examples & more details. + * Thanks to [@prainho](https://github.com/prainho) for the suggestion, code and feedback in [issue #405](https://github.com/Mottie/tablesorter/issues/405)! + * Modified the `bindSearch` function to allow using it on external filters: + * Use as follows: `$.tablesorter.filter.bindSearch( $('table'), $('.search') );` + * Binding the search input using this method allows the search to use `filter_liveSearch`, delayed searching and pressing escape to clear the search. + * See the [filter any match demo](http://mottie.github.io/tablesorter/docs/example-widget-filter-any-match.html) for example usage. + +* UITheme widget + * Added caption styling + * Updated css for jQuery UI theme and Bootstrap theme. + +* Theme, demo & doc updates + * Added jQuery UI theme switcher to [jQuery UI theme demo](http://mottie.github.io/tablesorter/docs/example-widget-ui-theme.html) & [jQuery UI filter formatter demo](http://mottie.github.io/tablesorter/docs/example-widget-filter-formatter-1.html). + * Added ignore articles parser to [saveSort widget demo](http://mottie.github.io/tablesorter/docs/example-widget-savesort.html). + * Updated history of changes made to `cssAsc`, `cssDesc` & `cssHeader` on the main documentation page. See [issue #407](https://github.com/Mottie/tablesorter/issues/407). + #### Version 2.13.2 (11/2/2013) * Updated pager & filter widget to work when the pager `countChildRows` option is `true`: diff --git a/docs/example-widget-filter-one-input.html b/docs/example-widget-filter-any-match.html similarity index 54% rename from docs/example-widget-filter-one-input.html rename to docs/example-widget-filter-any-match.html index 3916d756..29e802bd 100644 --- a/docs/example-widget-filter-one-input.html +++ b/docs/example-widget-filter-any-match.html @@ -2,7 +2,7 @@ - jQuery plugin: Tablesorter 2.0 - Filter Widget + jQuery plugin: Tablesorter 2.0 - Filter Widget Any Match @@ -22,35 +22,31 @@ @@ -67,13 +63,33 @@

NOTE!

@@ -81,7 +97,7 @@
- + diff --git a/docs/example-widget-filter.html b/docs/example-widget-filter.html index 4c43ae6f..7d6dd3b9 100644 --- a/docs/example-widget-filter.html +++ b/docs/example-widget-filter.html @@ -14,6 +14,10 @@ + @@ -104,13 +108,14 @@ // External search // buttons set up like this: - // - $('button.search').click(function(){ + // + $('button[data-filter-column]').click(function(){ /*** first method *** data-filter-column="1" data-filter-text="!son" add search value to Discount column (zero based index) input */ var filters = [], - col = $(this).data('filter-column'), // zero-based index - txt = $(this).data('filter-text'); // text to add to filter + $t = $(this), + col = $t.data('filter-column'), // zero-based index + txt = $t.data('filter-text') || $t.text(); // text to add to filter filters[col] = txt; // using "table.hasFilters" here to make sure we aren't targetting a sticky header @@ -139,15 +144,15 @@