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
fdc698c97d
commit
8310e01197
66
README.md
66
README.md
@ -36,13 +36,67 @@ tablesorter can successfully parse and sort many types of data including linked
|
|||||||
### Special Thanks
|
### Special Thanks
|
||||||
|
|
||||||
* Big shout-out to [Nick Craver](https://github.com/NickCraver) for getting rid of the `eval()` function that was previously needed for multi-column sorting.
|
* Big shout-out to [Nick Craver](https://github.com/NickCraver) for getting rid of the `eval()` function that was previously needed for multi-column sorting.
|
||||||
* Also big thanks to [thezoggy](https://github.com/thezoggy) for helping with code, themes and providing valuable feedback.
|
* Big thanks to [thezoggy](https://github.com/thezoggy) for helping with code, themes and providing valuable feedback.
|
||||||
* And, thanks to everyone else that has contributed, and continues to contribute to this forked project!
|
* Big thanks to [ThsSin-](https://github.com/TheSin-) for taking over for a while and also providing valuable feedback.
|
||||||
|
* And, of course thanks to everyone else that has contributed, and continues to contribute to this forked project!
|
||||||
|
|
||||||
### Change Log
|
### Change Log
|
||||||
|
|
||||||
View the [complete listing here](https://github.com/Mottie/tablesorter/wiki/Change).
|
View the [complete listing here](https://github.com/Mottie/tablesorter/wiki/Change).
|
||||||
|
|
||||||
|
#### <a name="v2.12">Version 2.12</a> (10/18/2013)
|
||||||
|
|
||||||
|
**Core**
|
||||||
|
* Added `numberSorter` option allowing you to modify the overall numeric sorter.
|
||||||
|
* Updated the `textSorter` option to allow setting a text sorter for each column.
|
||||||
|
* The `textSorter` functon parameters have changed from `(a, b, table, column)` to `(a, b, direction, column, table)`.
|
||||||
|
* Restructured & combined sorting functions internally so that tablesorter will always sort empty cells no matter what sorting algorithm is used by the `textSorter`.
|
||||||
|
* Renamed `$.tablesorter.sortText()` to `$.tablesorter.sortNatural()`
|
||||||
|
* Added a new basic alphabetical sort algorithm `$.tablesorter.sortText = function(a, b) { return a > b ? 1 : (a < b ? -1 : 0); };` which can be set using the `textSorter` option.
|
||||||
|
* New examples can be found in the updated [custom sort demo](http://mottie.github.io/tablesorter/docs/example-option-custom-sort.html).
|
||||||
|
|
||||||
|
* Added `fixedUrl` option for use with the `$.tablesorter.storage()` function.
|
||||||
|
* Setting this with a fixed name (it doesn't need to be a url) allows saving table data (`saveSort` widget, `savePages` in pager widget) for tables on multiple pages in a domain.
|
||||||
|
* Additional storage options are described below under "Storage".
|
||||||
|
* An accurate number of table columns is now contained within `table.config.columns`. This accounts for multiple header rows, tds, ths, etc.
|
||||||
|
* Replaced `.innerHTML` with jQuery's `.html()` to fix issues in IE8. Fixes [issue #385](https://github.com/Mottie/tablesorter/issues/385).
|
||||||
|
* Version numbers should now all be accurate, even in the comments.. at least this time ;). Fixes [issue #386](https://github.com/Mottie/tablesorter/issues/386).
|
||||||
|
|
||||||
|
**Pager**
|
||||||
|
* In attempts to initialize the pager after the filter widget:
|
||||||
|
* Added a pager widget (still beta testing) to allow initializing the pager after certain widgets (filter widget).
|
||||||
|
* Updated tablesorter core (properly count table columns) & filter widget code to allow it to initialize on an empty table (thanks @stanislavprokopov!).
|
||||||
|
* Hopefully one or both of these changes fixes [issue #388](https://github.com/Mottie/tablesorter/issues/388).
|
||||||
|
* New pager widget demos: [basic](http://mottie.github.io/tablesorter/docs/example-widget-pager.html) & [ajax](http://mottie.github.io/tablesorter/docs/example-widget-pager-ajax.html).
|
||||||
|
* `savePages` option
|
||||||
|
* Should no longer cause an error if stored data is malformed or unrecognized. Fixes [issue #387](https://github.com/Mottie/tablesorter/issues/387).
|
||||||
|
* The stored size and page is now cleared if the table is destroyed.
|
||||||
|
* Fixed an error occuring in IE when trying to determine if a variable is an array (`toString` function call not recognized). Fixes [issue #390](https://github.com/Mottie/tablesorter/issues/390).
|
||||||
|
* Updated pager rendering to prevent multiple ajax calls.
|
||||||
|
* During this update, the pager page size would return as zero and set the totalPages value to inifinity. Yeah, it doesn't do that anymore; but you can still set the pager size to zero if you want!
|
||||||
|
|
||||||
|
**Widgets**
|
||||||
|
* Filter widget:
|
||||||
|
* Should now properly initialize when the pager plugin/widget is used with ajax and/or the `filter_serversideFiltering` option is `true`. Fixes [issue #388](https://github.com/Mottie/tablesorter/issues/388).
|
||||||
|
* Please note that the select dropdowns still sort using the natural sort algorithm, but since it is using the function directly, empty cells will not sort based on the `emptyTo` option. If this is a big problem, let me know!
|
||||||
|
* Grouping widget:
|
||||||
|
* Added `group_callback` option - this sets a callback function which allows modification of each group header label - like adding a subtotal for each group, or something. See the [updated demo](http://mottie.github.io/tablesorter/docs/example-widget-grouping.html).
|
||||||
|
* Added `group_complete` option which is `"groupingComplete"` by default. This is the name of the event that is triggered once the grouping widget has completed updating.
|
||||||
|
* Updated the editable widget:
|
||||||
|
* Added `editable_editComplete` option which names the event that is triggered after tablesorter has completed updating the recent edit.
|
||||||
|
* You can also bind to the `change` event for that editable element, but it may occur before tablesorter has updated its internal data cache.
|
||||||
|
* Storage
|
||||||
|
* The `$.tablesorter.storage()` function now has options including the `fixedUrl` option described in the core section above.
|
||||||
|
* Also added storage options which can be used for custom widgets: `$.tablesorter.storage(table, key, value, { url : 'mydomain', id : 'table-group' })`.
|
||||||
|
* Additionally, for already build-in widgets, you can apply data-attributes to the table: `<table class="tablesorter" data-table-page="mydomain" data-table-group="financial">...</table>`.
|
||||||
|
* For more details, please see [issue #389](https://github.com/Mottie/tablesorter/issues/389).
|
||||||
|
|
||||||
|
**Parsers**
|
||||||
|
* Added an IPv6 parser
|
||||||
|
* This parser will auto-detect (the `is` function checks for valid IPv6 addresses).
|
||||||
|
* Added a new [IPv6 parser demo](http://mottie.github.io/tablesorter/docs/example-parsers-ip-address.html).
|
||||||
|
* Included rather extensive unit tests for just this parser o.O.
|
||||||
|
|
||||||
#### <a name="v2.11.1">Version 2.11.1</a> (10/11/2013)
|
#### <a name="v2.11.1">Version 2.11.1</a> (10/11/2013)
|
||||||
|
|
||||||
* Fixed an updating bug:
|
* Fixed an updating bug:
|
||||||
@ -165,11 +219,3 @@ View the [complete listing here](https://github.com/Mottie/tablesorter/wiki/Chan
|
|||||||
* [External filters using Select2 plugin](http://mottie.github.io/tablesorter/beta-testing/example-external-filters-using-select2.html) - should be working properly.
|
* [External filters using Select2 plugin](http://mottie.github.io/tablesorter/beta-testing/example-external-filters-using-select2.html) - should be working properly.
|
||||||
* [Column reorder widget](http://mottie.github.io/tablesorter/beta-testing/example-widget-column-reorder.html) - not working 100% with sticky headers.
|
* [Column reorder widget](http://mottie.github.io/tablesorter/beta-testing/example-widget-column-reorder.html) - not working 100% with sticky headers.
|
||||||
* [Column sum widget](http://mottie.github.io/tablesorter/beta-testing/example-widget-sum-columns.html) - still needs LOTS of work!
|
* [Column sum widget](http://mottie.github.io/tablesorter/beta-testing/example-widget-sum-columns.html) - still needs LOTS of work!
|
||||||
|
|
||||||
#### <a name="v2.10.6">Version 2.10.6</a> (5/30/2013)
|
|
||||||
|
|
||||||
* Added `skipTest` options to the HTML5 filter formatter functions. Fixes [issue #307](https://github.com/Mottie/tablesorter/issues/307).
|
|
||||||
|
|
||||||
#### <a name="v2.10.5">Version 2.10.5</a> (5/30/2013)
|
|
||||||
|
|
||||||
* Filter formatter functions now works properly within sticky headers. Fixes issues [#290](https://github.com/Mottie/tablesorter/issues/290) & [#317](https://github.com/Mottie/tablesorter/issues/317).
|
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
* updated 10/18/2013
|
* updated 10/18/2013
|
||||||
*/
|
*/
|
||||||
/*jshint browser:true, jquery:true, unused:false */
|
/*jshint browser:true, jquery:true, unused:false */
|
||||||
/*global toString:true */
|
|
||||||
;(function($) {
|
;(function($) {
|
||||||
"use strict";
|
"use strict";
|
||||||
/*jshint supernew:true */
|
/*jshint supernew:true */
|
||||||
@ -386,7 +385,7 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
renderTable = function(table, rows, p) {
|
renderTable = function(table, rows, p) {
|
||||||
var i, j, o, $tb,
|
var i, $tb,
|
||||||
l = rows && rows.length || 0, // rows may be undefined
|
l = rows && rows.length || 0, // rows may be undefined
|
||||||
s = ( p.page * p.size ),
|
s = ( p.page * p.size ),
|
||||||
e = ( s + p.size );
|
e = ( s + p.size );
|
||||||
@ -632,7 +631,7 @@
|
|||||||
.bind('change', function(){
|
.bind('change', function(){
|
||||||
p.page = $(this).val() - 1;
|
p.page = $(this).val() - 1;
|
||||||
moveToPage(table, p);
|
moveToPage(table, p);
|
||||||
updatePageDisplay(table, p, false)
|
updatePageDisplay(table, p, false);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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",
|
"name": "tablesorter",
|
||||||
"version": "2.11.1",
|
"version": "2.12.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"jquery": ">=1.2.6"
|
"jquery": ">=1.2.6"
|
||||||
}
|
}
|
||||||
|
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
22
js/jquery.tablesorter.widgets.min.js
vendored
22
js/jquery.tablesorter.widgets.min.js
vendored
File diff suppressed because one or more lines are too long
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "tablesorter",
|
"name": "tablesorter",
|
||||||
"title": "tablesorter",
|
"title": "tablesorter",
|
||||||
"version": "2.11.1",
|
"version": "2.12.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.",
|
"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": {
|
"author": {
|
||||||
"name": "Christian Bach",
|
"name": "Christian Bach",
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "tablesorter",
|
"name": "tablesorter",
|
||||||
"title": "tablesorter",
|
"title": "tablesorter",
|
||||||
"version": "2.11.1",
|
"version": "2.12.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.",
|
"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": {
|
"author": {
|
||||||
"name": "Christian Bach",
|
"name": "Christian Bach",
|
||||||
|
Loading…
Reference in New Issue
Block a user