mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-10-08 13:44:18 +00:00
version bump
This commit is contained in:
parent
2f7bf001ba
commit
fcebad5a0f
141
README.md
141
README.md
@ -60,6 +60,123 @@ tablesorter can successfully parse and sort many types of data including linked
|
||||
|
||||
View the [complete listing here](https://github.com/Mottie/tablesorter/wiki/Change).
|
||||
|
||||
#### <a name="v2.17.0">Version 2.17.0</a> (5/22/2014)
|
||||
|
||||
* Overall
|
||||
* You can now target a column using a jQuery selector targeting the header cell (e.g. a class name, id or column index, as before).
|
||||
* This works with the core options: `headers`, `textExtraction`.
|
||||
* This also works with the widgets: `filter_formatter`, `filter_functions`, `filter_selectSource` and the `headers` options for `filter` & `resizable`.
|
||||
* This change has *not yet been implemented* to the following options: `textSorter`, `sortList`, `sortForce`, `sortAppend` and `numberSorter` (will modify this option to target columns soon).
|
||||
* What **won't work** is if you try to target the header using a filtering selector that uses an index, e.g. `"th:eq()"`, `":gt()"`, `":lt()"`, `":first"`, `":last"`, `":even"` or `":odd"`, `":first-child"`, `":last-child"`, `":nth-child()"`, `":nth-last-child()"`, etc.
|
||||
|
||||
* Docs
|
||||
* Switch from using CDN versions of jQuery, jQuery UI, Bootstrap, Sugar and Select2 instead of using [protocol-relative URLs](http://www.paulirish.com/2010/the-protocol-relative-url/) because they are a pain to use locally.
|
||||
* Change style of "Update" tags to be slightly lighter than "New" tags.
|
||||
* Updated [reflow widget demo](http://mottie.github.io/tablesorter/docs/example-widget-reflow.html) with demo tables in a resizable iframe, so the browser window no longer needs to be resized.
|
||||
* Miscellaneous updates including correcting some version numbers, fixing links & other issues with the demos.
|
||||
|
||||
* Themes
|
||||
* Fix green theme to properly include a background with the css3 sticky headers widget.
|
||||
|
||||
* Core
|
||||
* Instead of using empty or clearing rows from the table, the rows are now detached. This also applies to the pager.
|
||||
* Added `resetToLoadState` method
|
||||
* Using this method will clear out any settings that have changed since the table was initialized (refreshes the entire table); so any sorting or modified widget options will be cleared.
|
||||
* However, it will not clear any values that were saved to storage. This method is basically like reloading the page.
|
||||
* Refer to columns in the `headers` and/or `textExtraction` option by class name, ID, or column index (as before).
|
||||
|
||||
```js
|
||||
headers : {
|
||||
'.first-name' : { sorter: 'text' },
|
||||
'.disabled' : { sorter: false }
|
||||
},
|
||||
textExtraction : {
|
||||
'.styled' : function(node, table, cellIndex) {
|
||||
return $(node).find('strong').text();
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
* Added new "sorton" method values: "a" (ascending), "d" (descending), "n" (next), "s" (same) & "o" (opposite).
|
||||
|
||||
```js
|
||||
// column 0: desc sort, column 1: asc sort
|
||||
$("#table1").trigger("sorton", [ [[0,"d"],[1,"a"]] ]);
|
||||
// column 0: next sort, column 1: opposite of column 0, column 2: same as column 0
|
||||
$("#table2").trigger("sorton", [ [[0,"n"],[1,"o"],[2,"s"]] ]);
|
||||
```
|
||||
|
||||
Please refer to the [Sort table using a link outside the table](http://mottie.github.io/tablesorter/docs/example-trigger-sort.html) demo for more details.
|
||||
|
||||
|
||||
* ColumnSelector widget
|
||||
* Added a method to refresh the selected columns using `$('table').trigger('refreshColumnSelector');`.
|
||||
* Fix a js error when removing the widget.
|
||||
|
||||
* Filter widget
|
||||
* Fix child row filtering.
|
||||
* Fix `filter-match` searches.
|
||||
* Set filter parser or disable a filter in the `headers` option by referring to the header class name, ID, or column index (as before)
|
||||
|
||||
```js
|
||||
headers : {
|
||||
'.first-name' : { filter : false },
|
||||
'.last-name' : { filter : 'parsed' }
|
||||
}
|
||||
```
|
||||
|
||||
* Refer to `filter_functions`, `filter_formatter` and `filter_selectSource` columns by class name, ID, or column index (as before)
|
||||
|
||||
```js
|
||||
filter_functions : {
|
||||
".col-date" : {
|
||||
"< 2004" : function (e, n, f, i) {
|
||||
return n < Date.UTC(2004, 0, 1); // < Jan 1 2004
|
||||
},
|
||||
...
|
||||
}
|
||||
},
|
||||
filter_formatter : {
|
||||
".col-value" : function($cell, indx){
|
||||
return $.tablesorter.filterFormatter.uiSpinner( $cell, indx, {
|
||||
...
|
||||
}
|
||||
},
|
||||
filter_selectSource : {
|
||||
".model-number" : [ "abc", "def", "ghi", "xyz" ]
|
||||
}
|
||||
```
|
||||
|
||||
* Math widget
|
||||
* Now works properly with the pager. Fixes [issue #621](https://github.com/Mottie/tablesorter/issues/621).
|
||||
|
||||
* Output widget
|
||||
* Add `output_ignoreColumns` option. Set the zero-based index of the columns to ignore in this array. Fixes [issue #607](https://github.com/Mottie/tablesorter/issues/607)
|
||||
* Add `config` parameter to `output_callback` function. NOTE: this parameter is added before the data parameter, so it may break any already existing custom callback functions.
|
||||
* Add `output_duplicateSpans` option. Setting this option to `false` adds blank entries instead of duplicating the colspan or rowspan content. Fixes [issue #619](https://github.com/Mottie/tablesorter/issues/619).
|
||||
|
||||
* Pager (addon & widget)
|
||||
* Use detach instead of empty on tbody rows. This should save any data associated with the rows.
|
||||
* Fix pager updating not showing correct totals.
|
||||
|
||||
* Print widget
|
||||
* Add `print_callback` option allowing manipulation of the table & stylesheet before printing.
|
||||
* Corrected the `print_columns` settings comments.
|
||||
|
||||
* Resizable widget
|
||||
* Disable a resizable header within the `headers` option by referring to the column class name, ID, or column index (as before)
|
||||
|
||||
```js
|
||||
headers : {
|
||||
'.first-name' : { resizable: false }
|
||||
}
|
||||
```
|
||||
|
||||
* Added note about using box-sizing & jQuery versions older than 1.8.
|
||||
|
||||
* Scroller widget
|
||||
* Filter widget works with this widget again. Fixes [issue #620](https://github.com/Mottie/tablesorter/issues/620).
|
||||
|
||||
#### <a name="v2.16.4">Version 2.16.4</a> (5/5/2014)
|
||||
|
||||
* Docs
|
||||
@ -164,27 +281,3 @@ View the [complete listing here](https://github.com/Mottie/tablesorter/wiki/Chan
|
||||
* Core:
|
||||
* Fixed an issue where ajax loaded data would cause a javascript error because of improper ignoring of data.
|
||||
* Ajax loaded data will now be parsed and cached - so stuff like the grouping widget will work properly.
|
||||
|
||||
#### <a name="v2.16.0">Version 2.16.0</a> (4/23/2014)
|
||||
|
||||
* Docs
|
||||
* Add notice to readme about upgrading to v2.16.
|
||||
* Add question section to readme about where to ask questions, including the new IRC channel.
|
||||
* Update jQuery UI accordion code to reapply widgets to tables within the section, when open.
|
||||
|
||||
* Build widget
|
||||
* Now works with HTML in the data
|
||||
* Add zebra widget to demos.
|
||||
|
||||
* Core
|
||||
* Check more than the first tbody when detecting parsers. Fixes [issue #589](https://github.com/Mottie/tablesorter/issues/589).
|
||||
* Apply widgets on table initialization after a short delay.
|
||||
|
||||
* Filter widget:
|
||||
* Fix search already filtered rows
|
||||
* Fix `filteredRows` count & cleanup.
|
||||
* SetFilters now behaves more like a triggered search. Fixes [issue #588](https://github.com/Mottie/tablesorter/issues/588).
|
||||
* Filterformatter - Fix both datepicker scripts to work properly with non-U.S. formats. Fixes [issue #587](https://github.com/Mottie/tablesorter/issues/587).
|
||||
|
||||
* Pager: Now stays on the same page after updating. Fixes [issue #590](https://github.com/Mottie/tablesorter/issues/590).
|
||||
* Testing: Add some preliminary tests for the filter widget.
|
||||
|
@ -1,6 +1,6 @@
|
||||
/*!
|
||||
* tablesorter pager plugin
|
||||
* updated 4/23/2014 (v2.16.0)
|
||||
* updated 5/22/2014 (v2.17.0)
|
||||
*/
|
||||
/*jshint browser:true, jquery:true, unused:false */
|
||||
;(function($) {
|
||||
|
4
addons/pager/jquery.tablesorter.pager.min.js
vendored
4
addons/pager/jquery.tablesorter.pager.min.js
vendored
File diff suppressed because one or more lines are too long
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "tablesorter",
|
||||
"version": "2.16.4",
|
||||
"version": "2.17.0",
|
||||
"dependencies": {
|
||||
"jquery": ">=1.2.6"
|
||||
},
|
||||
|
@ -1,5 +1,5 @@
|
||||
/**!
|
||||
* TableSorter 2.16.4 - Client-side table sorting with ease!
|
||||
* TableSorter 2.17.0 - Client-side table sorting with ease!
|
||||
* @requires jQuery v1.2.6+
|
||||
*
|
||||
* Copyright (c) 2007 Christian Bach
|
||||
@ -24,7 +24,7 @@
|
||||
|
||||
var ts = this;
|
||||
|
||||
ts.version = "2.16.4";
|
||||
ts.version = "2.17.0";
|
||||
|
||||
ts.parsers = [];
|
||||
ts.widgets = [];
|
||||
|
4
js/jquery.tablesorter.min.js
vendored
4
js/jquery.tablesorter.min.js
vendored
File diff suppressed because one or more lines are too long
@ -1,4 +1,4 @@
|
||||
/*! tableSorter 2.16+ widgets - updated 5/5/2014 (v2.16.4)
|
||||
/*! tableSorter 2.16+ widgets - updated 5/22/2014 (v2.17.0)
|
||||
*
|
||||
* Column Styles
|
||||
* Column Filters
|
||||
|
32
js/jquery.tablesorter.widgets.min.js
vendored
32
js/jquery.tablesorter.widgets.min.js
vendored
File diff suppressed because one or more lines are too long
@ -1,4 +1,4 @@
|
||||
/* Column Selector/Responsive table widget (beta) for TableSorter 5/5/2014 (v2.16.4)
|
||||
/* Column Selector/Responsive table widget (beta) for TableSorter 5/22/2014 (v2.17.0)
|
||||
* Requires tablesorter v2.8+ and jQuery 1.7+
|
||||
* by Justin Hallett & Rob Garrison
|
||||
*/
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*! tablesorter math widget - beta - updated 5/5/2014 (v2.16.4)
|
||||
/*! tablesorter math widget - beta - updated 5/22/2014 (v2.17.0)
|
||||
* Requires tablesorter v2.16+ and jQuery 1.7+
|
||||
* by Rob Garrison
|
||||
*/
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Output widget (beta) for TableSorter 5/5/2014 (v2.16.4)
|
||||
/* Output widget (beta) for TableSorter 5/22/2014 (v2.17.0)
|
||||
* Requires tablesorter v2.8+ and jQuery 1.7+
|
||||
* Modified from:
|
||||
* HTML Table to CSV: http://www.kunalbabre.com/projects/table2CSV.php (License unknown?)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Pager widget (beta) for TableSorter 4/23/2014 (v2.16.0) */
|
||||
/* Pager widget (beta) for TableSorter 5/22/2014 (v2.17.0) */
|
||||
/*jshint browser:true, jquery:true, unused:false */
|
||||
;(function($){
|
||||
"use strict";
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Print widget (beta) for TableSorter 5/5/2014 (v2.16.4)
|
||||
/* Print widget (beta) for TableSorter 5/22/2014 (v2.17.0)
|
||||
* Requires tablesorter v2.8+ and jQuery 1.7+
|
||||
*/
|
||||
/*jshint browser:true, jquery:true, unused:false */
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
Resizable scroller widget for the jQuery tablesorter plugin
|
||||
|
||||
Version 2.0 - modified by Rob Garrison (4/12/2013; updated 4/27/2014 for tablesorter v2.16.2)
|
||||
Version 2.0 - modified by Rob Garrison 4/12/2013; updated 5/22/2014 (v2.17.0)
|
||||
Requires jQuery v1.7+
|
||||
Requires the tablesorter plugin, v2.8+, available at http://mottie.github.com/tablesorter/docs/
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "tablesorter",
|
||||
"title": "tablesorter",
|
||||
"version": "2.16.4",
|
||||
"version": "2.17.0",
|
||||
"description": "tablesorter is a jQuery plugin for turning a 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.\n\nThis forked version adds lots of new enhancements including: alphanumeric sorting, pager callback functons, multiple widgets providing column styling, ui theme application, sticky headers, column filters and resizer, as well as extended documentation with a lot more demos.",
|
||||
"author": {
|
||||
"name": "Christian Bach",
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "tablesorter",
|
||||
"title": "tablesorter",
|
||||
"version": "2.16.4",
|
||||
"version": "2.17.0",
|
||||
"description": "tablesorter is a jQuery plugin for turning a 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.\n\nThis forked version adds lots of new enhancements including: alphanumeric sorting, pager callback functons, multiple widgets providing column styling, ui theme application, sticky headers, column filters and resizer, as well as extended documentation with a lot more demos.",
|
||||
"author": {
|
||||
"name": "Christian Bach",
|
||||
|
Loading…
Reference in New Issue
Block a user