Cleanup & version bump

This commit is contained in:
Mottie 2014-07-17 12:40:11 -05:00
parent a5a793b393
commit e861f6c3fc
14 changed files with 63 additions and 207 deletions

212
README.md
View File

@ -60,6 +60,40 @@ 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.5">Version 2.17.5</a> (7/17/2014)
* Core
* Update `config.totalRows` variable before initialization. Fixes [issue #670](https://github.com/Mottie/tablesorter/issues/670).
* Add `config.table` variable; useful for functions that only pass the `config`.
* Ensure widget init functions are only called once; and set indicator for all widgets, not just ones with options (for `hasWidget`).
* Docs
* Add [custom filter widget search types demo](http://mottie.github.io/tablesorter/docs/example-filter-custom-search.html).
* Add `imgAttr` parser "utility option" instructions.
* Filter
* Force cache build on initial search when `delayInit` is `true`. Fixes [issue #678](https://github.com/Mottie/tablesorter/issues/678).
* Make `config.filteredRows` count available within `filterInit` event. Fixes [issue #670](https://github.com/Mottie/tablesorter/issues/670).
* Selects now obtain parsed data when it is set for a particular column. Fixes [issue #684](https://github.com/Mottie/tablesorter/issues/684).
* Ignore change event if input value hasn't changed, otherwise it interferes with other events within the table. Fixes [issue #685](https://github.com/Mottie/tablesorter/issues/685).
* Ensure search query is parsed for both specific filter types and non-filter type searches, if the column is set to use parsed data.
* Filter initialization ("filterInit") event is now delayed to prevent filterStart &amp; filterEnd event spamming. Fixes [issue #668](https://github.com/Mottie/tablesorter/issues/668).
* Filter formatter functions are now required to call a function after initialization to delay "filterInit" event. Fixes [issue #668](https://github.com/Mottie/tablesorter/issues/668).
* Output
* Update download method which allows downloading files without modifying the server htaccess. Fixes [issue #681](https://github.com/Mottie/tablesorter/issues/681).
* Pager
* Initialize without building cache when `delayInit` is `true`. Fixes [issue #678](https://github.com/Mottie/tablesorter/issues/678).
* Parsers
* Update input/select element binding
* Add image alt parser; set `config.imgAttr` with attribute to target (default is `"alt"`).
* Add `select-text` parser which grabs the currently selected option text instead of the select value.
* Resizable
* Remove unused grip code
#### <a name="v2.17.4">Version 2.17.4</a> (7/4/2014)
* Docs
@ -119,181 +153,3 @@ View the [complete listing here](https://github.com/Mottie/tablesorter/wiki/Chan
* Parsers
* Added new Roman numeral parsers. There are three different parsers to cover three different use cases. Please see the [roman numeral parser demo](http://mottie.github.io/tablesorter/docs/example-parsers-roman.html) for details.
#### <a name="v2.17.2">Version 2.17.2</a> (6/18/2014)
* Docs
* Added more details about using pager ajax options.
* Core
* The `clearTableBody` function now detaches rows instead of incorrectly detaching the tbody.
* Editable widget:
* Corrected document option name typo. Fixes [issue #635](https://github.com/Mottie/tablesorter/issues/635). Thanks [shobute](https://github.com/shobute)!
* Filter widget:
* The `selectSource` option now correctly handles parsed values that return zero.
* Filter formatter for jQuery UI datepicker now remembers the correct date.
* Corrected filter events & prevent table manipulation if filters are empty on initialization. Fixes [issue #645](https://github.com/Mottie/tablesorter/issues/645).
* Pager addon/widget:
* Specifically target rows to prevent issues with ember scripts. Fixes [issue #638](https://github.com/Mottie/tablesorter/issues/638).
* Correctly detach and append jQuery rows provided by the `ajaxProcessing` function. Fixes [issue #650](https://github.com/Mottie/tablesorter/issues/650).
* Print
* jQuery requirement modified to support jQuery v1.2+ (previously it was v1.7+).
* Popup now automatically closes with print dialog. Fixes [issue #643](https://github.com/Mottie/tablesorter/issues/643).
* Scroller widget:
* The `thead` width is now set in IE. Fixes [issue #637](https://github.com/Mottie/tablesorter/issues/637).
* Set column widths are now maintained, including Bootstrap. Fixes issues [#634](https://github.com/Mottie/tablesorter/issues/634) &amp; [#380](https://github.com/Mottie/tablesorter/issues/380).
* Change default scroll bar width to `18`. Fixes [issue #363](https://github.com/Mottie/tablesorter/issues/363).
* Scroller now behaves properly with horizontal overflow scroll, column alignments, and hidden cells. Fixes issues [#340](https://github.com/Mottie/tablesorter/issues/340) &amp; [#333](https://github.com/Mottie/tablesorter/issues/333).
* Themes
* Bootstrap white unsorted icon now shows when the `icon-white` class is added. See [issue #648](https://github.com/Mottie/tablesorter/issues/648).
* Remove auto height settings from filter elements.
#### <a name="v2.17.1">Version 2.17.1</a> (5/28/2014)
* Docs:
* Add some missing examples &amp; updated some version number comments for the last update
* Reflow widget: Fix demo to use preset widths &amp; css transitions instead of forcing users to manually resize the examples.
* Output widget: add note about modifying the `.htaccess` file to enable downloading in both IE &amp; Firefox.
* Core
* Allow use of select &amp; buttons within header cells. Previously only inputs were allowed. Fixes [issue #625](https://github.com/Mottie/tablesorter/issues/625).
* Add `parser-false` setting to prevent extracting &amp; parsing of content from set columns. Fixes [issue #629](https://github.com/Mottie/tablesorter/issues/629).
* Filter widget
* Add a not-exact-match (`!=`) filter type (e.g. `!"Bruce"` or `!Bruce=` will show all rows that don't exactly match `Bruce`). See [issue #628](https://github.com/Mottie/tablesorter/issues/628).
* Math widget
* Values are now obtained from data-attributes first, then the actual cell content. This will allow making calculations with higher precision values. Fixes [issue #624](https://github.com/Mottie/tablesorter/issues/624).
* Pager (addon &amp; widget)
* The `ajaxProcessing` function now includes the jqxhr parameter. Thanks [JuarezTurrini](https://github.com/JuarezTurrini)! See [pull #626](https://github.com/Mottie/tablesorter/pull/626)
* Update the custom controls example to properly work with the pager widget. Fixes [issue #631](https://github.com/Mottie/tablesorter/issues/631).
* Fix widgets sometimes not being applied after page change.
* Parser
* input-select parser no longer binds to non-tablesorter tables. Fixes [issue #633](https://github.com/Mottie/tablesorter/issues/633).
#### <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 &amp; 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) &amp; "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 &amp; 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 &amp; 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).

View File

@ -1,6 +1,6 @@
/*!
* tablesorter pager plugin
* updated 7/4/2014 (v2.17.4)
* updated 7/17/2014 (v2.17.5)
*/
/*jshint browser:true, jquery:true, unused:false */
;(function($) {

File diff suppressed because one or more lines are too long

View File

@ -493,7 +493,7 @@
<li><a href="example-widget-header-titles.html">Header titles widget</a> (v2.15.6; <span class="version updated">2.15.7</span>)</li>
<li><span class="label label-info">Beta</span> <a href="example-widget-math.html">Math widget</a> (<span class="version">v2.16</span>; <span class="version updated">v2.17.0</span>).</li>
<li>
<span class="label label-info">Beta</span> <a href="example-widget-output.html">Output widget</a> (<span class="version">v2.16</span>; <span class="version updated">v2.17.0</span>)
<span class="label label-info">Beta</span> <a href="example-widget-output.html">Output widget</a> (<span class="version">v2.16</span>; <span class="version updated">v2.17.5</span>)
<br><br>
</li>
@ -526,7 +526,7 @@
<li><a href="example-parsers-dates.html">Date parsers</a> (<span class="version">v2.8</span>; <span class="version updated">v2.14</span>; includes weekday, month, two-digit year &amp; <a href="http://sugarjs.com/dates">sugar.js</a> date parsers).</li>
<li><a href="example-parsers-file-type.html">File type parser</a> (<span class="version">v2.13</span>).</li>
<li><a href="example-parsers-ignore-articles.html">Ignore leading articles parser</a> (Ignore &quot;A&quot;, &quot;An&quot; and &quot;The&quot; in titles) (<span class="version">v2.8</span>).</li>
<li><a href="example-widget-grouping.html">Input/select parsers</a> (used by Grouping rows widget) (<span class="version">v2.8</span>; <span class="version updated">v2.17.1</span>).</li>
<li><a href="example-widget-grouping.html">Input/select parsers</a> (used by Grouping rows widget) (<span class="version">v2.8</span>; <span class="version updated">v2.17.5</span>).</li>
<li><a href="example-parsers-ip-address.html">IPv6 address parser</a> (<span class="version">v2.12</span>).</li>
<li><a href="example-parsers-feet-inch-fraction.html">Feet-inch-fraction parser</a> (<span class="version">v2.8</span>).</li>
<li><a href="example-parsers-metric.html">Metric parser</a> (<span class="version">v2.8</span>).</li>

View File

@ -1,5 +1,5 @@
/**!
* TableSorter 2.17.4 - Client-side table sorting with ease!
* TableSorter 2.17.5 - 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.17.4";
ts.version = "2.17.5";
ts.parsers = [];
ts.widgets = [];

File diff suppressed because one or more lines are too long

View File

@ -1,4 +1,4 @@
/*! Filter widget formatter functions - updated 4/30/2014 (v2.16.3)
/*! Filter widget select2 formatter function - updated 7/17/2014 (v2.17.5)
* requires: jQuery 1.7.2+, tableSorter 2.16+, filter widget 2.16+ and select2 v3.4.6+ plugin
*/
/*jshint browser:true, jquery:true, unused:false */

View File

@ -1,4 +1,4 @@
/*! Filter widget formatter functions - updated 6/18/2014 (v2.17.2)
/*! Filter widget formatter functions - updated 7/17/2014 (v2.17.5)
* requires: tableSorter 2.15+ and jQuery 1.4.3+
*
* uiSpinner (jQuery UI spinner)

View File

@ -1,4 +1,4 @@
/*! tableSorter 2.16+ widgets - updated 7/4/2014 (v2.17.4)
/*! tableSorter 2.16+ widgets - updated 7/17/2014 (v2.17.5)
*
* Column Styles
* Column Filters

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,5 @@
/*! image alt attribute parser for jQuery 1.7+ & tablesorter 2.7.11+
* New 7/8/2014 (v2.17.4)
* New 7/17/2014 (v2.17.5)
*/
/*jshint jquery:true, unused:false */
;(function($){

View File

@ -1,5 +1,5 @@
/*! input & select parsers for jQuery 1.7+ & tablesorter 2.7.11+
* Updated 5/28/2014 (v2.17.1)
* Updated 7/17/2014 (v2.17.5)
* Demo: http://mottie.github.com/tablesorter/docs/example-widget-grouping.html
*/
/*jshint browser: true, jquery:true, unused:false */

View File

@ -1,4 +1,4 @@
/* Output widget (beta) for TableSorter 5/22/2014 (v2.17.0)
/* Output widget (beta) for TableSorter 7/17/2014 (v2.17.5)
* Requires tablesorter v2.8+ and jQuery 1.7+
* Modified from:
* HTML Table to CSV: http://www.kunalbabre.com/projects/table2CSV.php (License unknown?)
@ -237,9 +237,9 @@ output = ts.output = {
// test for blob support
try {
gotBlob = !!new Blob();
} catch (e) {
} catch (err) {
gotBlob = false;
};
}
// Use HTML5 Blob if browser supports it
if ( gotBlob ) {

View File

@ -1,4 +1,4 @@
/* Pager widget for TableSorter 7/4/2014 (v2.17.4) */
/* Pager widget for TableSorter 7/17/2014 (v2.17.5) */
/*jshint browser:true, jquery:true, unused:false */
;(function($){
"use strict";