Permalink
Browse files

empty cell sort & ui theme fixes

  • Loading branch information...
1 parent 95311a7 commit 8c04cd4400761bb70a05de6167ce86a1c7711feb @Mottie committed Dec 14, 2011
View
@@ -34,6 +34,11 @@ Included all original [document pages](http://mottie.github.com/tablesorter/docs
View the [complete listing here](http://mottie.github.com/tablesorter/changelog.txt).
+####Version 2.0.25 (2011-12-14)
+
+* The ui theme and sticky header widgets now work together and update the arrow direction. Fix for [issue #15](https://github.com/Mottie/tablesorter/issues/15).
+* Empty cells with only a tab or space will now sort at the bottom. Thanks to [pursual](https://github.com/pursual) for the fix for [issue #16](https://github.com/Mottie/tablesorter/issues/16).
+
####Version 2.0.24 (2011-12-12)
* Modified empty cell sorting to always sort at the bottom. Fix for [issue #14](https://github.com/Mottie/tablesorter/issues/14).
@@ -144,78 +149,3 @@ View the [complete listing here](http://mottie.github.com/tablesorter/changelog.
* Added "filter-false" class, that when applied will disable the filter widget for that column.
* Updated the headers docs and the filter widget demo.
* Updated the currency parser to use unicode characters to better work in different document formats.
-
-#### Version 2.0.19 (2011-09-16)
-
-* Added code in attempt to clear the table headers between multiple tables - fix for [issue #2](https://github.com/Mottie/tablesorter/issues/2).
-* Cleaned up some code and wrapped the widget code to prevent conflicts with other javascript libraries.
-* Updated the columns widget:
- * Added css examples to the [demo](http://mottie.github.com/tablesorter/docs/example-widget-columns.html).
- * Removed the `widgetColumns` option from the core, but it is still used by the widget - the way it is used hasn't changed.
-* Updated the uitheme widget:
- * Added `widgetUitheme` option - used by the widget, but not included in the core. See the demo for a better example.
- * Example added to the [uitheme widget demo](http://mottie.github.com/tablesorter/docs/example-widget-columns.html).
-
-#### Version 2.0.18.1 (2011-09-14)
-
-* Updated the "uitheme" widget with method to add zebra striping and hovered header classes.
-
-#### Version 2.0.18 (2011-09-13)
-
-* Fixed a bug in the column widget, it would cause an error if no initial sort was set.
-* Fixed a bug where an error would occur if a widget doesn't exist.
-* Updated pager widget to allow restoring the pager plugin & updated demo.
-* Added column filter widget. It is designed so that each column has an filter.
-
-#### Version 2.0.17 (2011-09-11)
-
-* Added a jquery.tablesorter.widget.js file:
- * It contains the "uitheme" widget, to add any jQuery UI theme, and the new "columns" widget, to style columns.
- * The blue and green themes have been updated with the added styles from the columns widget.
- * Added a Columns Widget demo and instructions.
-* Added a `widgetColumns` option which defines the css classes added by the columns widget.
-* Added notes to the pager plugin demo page to better specify when a change was added.
-* The green theme header images have been modified to better work with variable width tables.
-
-#### Version 2.0.16 (2011-09-08)
-
-* Added notes to demo pages to indicate if the original (version 2.0.5, at [tablesorter.com](http://tablesorter.com/docs/)) does have that option or method.
-* Added "addRows" method that allows adding table rows.
- * This method differs from the "update" method in that it only adds rows to the cache.
- * Use this new method to add rows to a table with the pager plugin applied. Using the "update" method on a table with the pager plugin will remove all hidden rows from the cache.
-* Added a "destroy.pager" method to remove the pager from the table - pager demo updated.
-
-#### Version 2.0.15 (2011-08-23)
-
-* Fixed a problem that caused a javascript error when a table header cell doesn't have a class name.
-
-#### Version 2.0.14 (2011-08-22)
-
-* Reverted the changes made in 2.0.13 and added checks to prevent errors.
-* Allowed sorting an empty table which would then automatically sort its contents when the table is updated.
-* Modified "Update" and "UpdateCell" methods to automatically resort the table using the existing sort.
-* Updated the [Initializing tablesorter on an empty table](http://mottie.github.com/tablesorter/docs/example-empty-table.html) demo and [Updating a table cell](http://mottie.github.com/tablesorter/docs/example-update-cell.html).
-
-#### Version 2.0.13 (2011-08-19)
-
-* Fixed a problem where a javascript error would occur when initializing a multi sort on an empty table. Thanks again to Eugene Ivakhiv!
-
-#### Version 2.0.12 (2011-08-19)
-
-* Updated the `textExtraction` functionality
- * The original textExtraction function was only able to be applied to all cells.
- * Apparently the ability to define textExtraction on a per column basis was misinterpreted by me, so now I've added it.
- * Use the option as follows:
-
- ```javascript
- $("table").tablesorter({
- textExtraction: {
- 0: function(node) { return $(node).find(selector1).text(); },
- 1: function(node) { return $(node).find(selector2).text(); },
- // etc
- }
- });
- ```
-
- * Updated the [Dealing with markup inside cells](http://mottie.github.com/tablesorter/docs/example-option-text-extraction.html) demo.
- * Thanks to Eugene Ivakhiv for bringing this issue to my attention in my blog.
View
@@ -1,5 +1,11 @@
TableSorter Change Log
+Version 2.0.25 (2011-12-14)
+============================
+
+* The ui theme and sticky header widgets now work together and update the arrow direction. Fix for [issue #15](https://github.com/Mottie/tablesorter/issues/15).
+* Empty cells with only a tab or space will now sort at the bottom. Thanks to [pursual](https://github.com/pursual) for the fix for [issue #16](https://github.com/Mottie/tablesorter/issues/16).
+
Version 2.0.24 (2011-12-12)
============================
View
@@ -1,6 +1,6 @@
/*
* TableSorter 2.0 - Client-side table sorting with ease!
-* Version 2.0.24
+* Version 2.0.25
* @requires jQuery v1.2.3
*
* Copyright (c) 2007 Christian Bach
@@ -252,7 +252,7 @@
}
cache.row.push(c);
for (j = 0; j < totalCells; ++j) {
- t = getElementText(table.config, c[0].cells[j], j);
+ t = trimAndGetNodeText(table.config, c[0].cells[j], j);
// don't bother parsing if the string is empty - previously parsing would change it to zero
cols.push( t === '' ? '' : parsers[j].format(t, table, c[0].cells[j], j));
}
Oops, something went wrong.

0 comments on commit 8c04cd4

Please sign in to comment.