From 3e1ec68cc00af027852d06a22d635eb301fb14c7 Mon Sep 17 00:00:00 2001 From: Rob Garrison Date: Thu, 21 Jul 2011 23:40:00 -0500 Subject: [PATCH] lockedOrder & sortInitialOrder headers options --- README.markdown | 7 ++ changelog.markdown | 7 ++ docs/example-options-headers-locked.html | 124 +++++++++++++++++++++++ docs/example-options-headers-order.html | 119 ++++++++++++++++++++++ docs/example-options-headers.html | 8 +- docs/index.html | 30 ++++-- index.html | 2 +- js/jquery.tablesorter.js | 42 ++++---- js/jquery.tablesorter.min.js | 4 +- 9 files changed, 309 insertions(+), 34 deletions(-) create mode 100644 docs/example-options-headers-locked.html create mode 100644 docs/example-options-headers-order.html diff --git a/README.markdown b/README.markdown index 6623b86e..ba3bd89e 100644 --- a/README.markdown +++ b/README.markdown @@ -28,6 +28,13 @@ Included all original [document pages](http://mottie.github.com/tablesorter/docs View the [complete listing here](changelog.markdown). +#### Version 2.0.8 (2011-07-21) + +* Fixed parsers for currency and digits to work with number values separated by commas. Thanks to Josh Renaud for the information! +* Fixed "lockedOrder" header option and added documentation and an example on how to use it. +* Made the sort order "desc" only trigger off of the first letter, so any word/abbreviation starting with "d" will set the descending sort order, all other letters will set the order to ascending (shhh, because I'm a bad speller :P) +* Modified the "sortInitialOrder" option so it can also be set in the headers option. + #### Version 2.0.7 (2011-07-17) * Added "pagerChange" and "pagerComplete" events to the pager plugin which trigger on the table. See the [pager demo](http://mottie.github.com/tablesorter/docs/example-pager.html) for an example on how to bind to them. diff --git a/changelog.markdown b/changelog.markdown index e6080e13..f3e83210 100644 --- a/changelog.markdown +++ b/changelog.markdown @@ -1,5 +1,12 @@ ###TableSorter Change Log +#### Version 2.0.8 (2011-07-21) + +* Fixed parsers for currency and digits to work with number values separated by commas. Thanks to Josh Renaud for the information! +* Fixed "lockedOrder" header option and added documentation and an example on how to use it. +* Made the sort order "desc" only trigger off of the first letter, so any word/abbreviation starting with "d" will set the descending sort order, all other letters will set the order to ascending (shhh, because I'm a bad speller :P) +* Modified the "sortInitialOrder" option so it can also be set in the headers option. + #### Version 2.0.7 (2011-07-17) * Added "pagerChange" and "pagerComplete" events to the pager plugin which trigger on the table. See the [pager demo](http://mottie.github.com/tablesorter/docs/example-pager.html) for an example on how to bind to them. diff --git a/docs/example-options-headers-locked.html b/docs/example-options-headers-locked.html new file mode 100644 index 00000000..57be9868 --- /dev/null +++ b/docs/example-options-headers-locked.html @@ -0,0 +1,124 @@ + + + + + jQuery plugin: Tablesorter 2.0 - Lock sort order using header options + + + + + + + + + + + + + + + + + + +
+ +

+ TIP! Sort the first and third columns to see how the sort is locked. Override this by using the multisort key (shift) while clicking on the header. +

+ + +

Demo

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
First NameLast NameAgeTotalDiscountDate
PeterParker28$9.9920%Jul 6, 2006 8:14 AM
JohnHood33$19.9925%Dec 10, 2002 5:14 AM
ClarkKent18$15.8944%Jan 12, 2003 11:14 AM
BruceAlmighty45$153.1944%Jan 18, 2001 9:12 AM
BruceEvans22$13.1911%Jan 18, 2007 9:12 AM
+ +

Javascript

+
+

+	
+

HTML

+
+

+	
+ + + +
+ + + + diff --git a/docs/example-options-headers-order.html b/docs/example-options-headers-order.html new file mode 100644 index 00000000..46a60ccd --- /dev/null +++ b/docs/example-options-headers-order.html @@ -0,0 +1,119 @@ + + + + + jQuery plugin: Tablesorter 2.0 - Set initial sort order using header options + + + + + + + + + + + + + + + + + + +
+

Demo

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
First NameLast NameAgeTotalDiscountDate
PeterParker28$9.9920%Jul 6, 2006 8:14 AM
JohnHood33$19.9925%Dec 10, 2002 5:14 AM
ClarkKent18$15.8944%Jan 12, 2003 11:14 AM
BruceAlmighty45$153.1944%Jan 18, 2001 9:12 AM
BruceEvans22$13.1911%Jan 18, 2007 9:12 AM
+ +

Javascript

+
+

+	
+

HTML

+
+

+	
+ + + +
+ + + + diff --git a/docs/example-options-headers.html b/docs/example-options-headers.html index c8e75f46..7895d557 100644 --- a/docs/example-options-headers.html +++ b/docs/example-options-headers.html @@ -2,7 +2,7 @@ - jQuery plugin: Tablesorter 2.0 - Disable headers using options + jQuery plugin: Tablesorter 2.0 - Disable sort using headers options @@ -19,7 +19,7 @@ +