mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
Merge branch 'master' into gh-pages
This commit is contained in:
commit
fdf3393545
55
README.md
55
README.md
@ -13,6 +13,17 @@ tablesorter (FORK) is a jQuery plugin for turning a standard HTML table with THE
|
||||
* Information from my blog post on [undocumented options](https://wowmotty.blogspot.com/2011/06/jquery-tablesorter-missing-docs.html) and lots of new demos have also been included.
|
||||
* Change log moved from included text file into the [wiki documentation](https://github.com/Mottie/tablesorter/wiki/Changes).
|
||||
|
||||
### Questions?
|
||||
|
||||
[![irc-image]][irc-url] [![gitter-image]][gitter-url] [![stackoverflow-image]][stackoverflow-url]
|
||||
|
||||
* Check the [FAQ](https://github.com/Mottie/tablesorter/wiki/FAQ) page.
|
||||
* Search the [main documentation](https://mottie.github.io/tablesorter/docs/) (click the menu button in the upper left corner).
|
||||
* Search the [issues](https://github.com/Mottie/tablesorter/issues) to see if the question or problem has been brought up before, and hopefully resolved.
|
||||
* If someone is available, ask your question in the `#tablesorter` IRC channel at freenode.net.
|
||||
* Ask your question at [Stackoverflow](https://stackoverflow.com/questions/tagged/tablesorter) using a tablesorter tag.
|
||||
* Please don't open a [new issue](https://github.com/Mottie/tablesorter/issues) unless it really is an issue with the plugin, or a feature request. Thanks!
|
||||
|
||||
### Demos
|
||||
|
||||
* [Basic alpha-numeric sort Demo](https://mottie.github.io/tablesorter/).
|
||||
@ -53,6 +64,7 @@ tablesorter (FORK) is a jQuery plugin for turning a standard HTML table with THE
|
||||
* [Plugin for Rails](https://github.com/themilkman/jquery-tablesorter-rails). Maintained by [themilkman](https://github.com/themilkman).
|
||||
* [UserFrosting](https://github.com/alexweissman/UserFrosting) (A secure, modern user management system for PHP that uses tablesorter) by [alexweissman](https://github.com/alexweissman).
|
||||
* [Grav CMS](https://getgrav.org/): `bin/gpm install tablesorter` ([ref](https://github.com/Perlkonig/grav-plugin-tablesorter)).
|
||||
* [tablesorter-pagercontrols](https://github.com/isg-software/tablesorter-pagercontrols) – programmatically adds pager controls below a table and applies the pager add-on for large HTML tables by [isg-software](https://github.com/isg-software).
|
||||
|
||||
### Contributing
|
||||
|
||||
@ -72,17 +84,6 @@ If you would like to contribute, please...
|
||||
* Also extra thanks to [christhomas](https://github.com/christhomas) and [Lynesth](https://github.com/Lynesth) for help with code.
|
||||
* And, of course thanks to everyone else that has contributed, and continues to contribute to this forked project!
|
||||
|
||||
### Questions?
|
||||
|
||||
[![irc-image]][irc-url] [![gitter-image]][gitter-url] [![stackoverflow-image]][stackoverflow-url]
|
||||
|
||||
* Check the [FAQ](https://github.com/Mottie/tablesorter/wiki/FAQ) page.
|
||||
* Search the [main documentation](https://mottie.github.io/tablesorter/docs/) (click the menu button in the upper left corner).
|
||||
* Search the [issues](https://github.com/Mottie/tablesorter/issues) to see if the question or problem has been brought up before, and hopefully resolved.
|
||||
* If someone is available, ask your question in the `#tablesorter` IRC channel at freenode.net.
|
||||
* Ask your question at [Stackoverflow](https://stackoverflow.com/questions/tagged/tablesorter) using a tablesorter tag.
|
||||
* Please don't open a [new issue](https://github.com/Mottie/tablesorter/issues) unless it really is an issue with the plugin, or a feature request. Thanks!
|
||||
|
||||
[npm-url]: https://npmjs.org/package/tablesorter
|
||||
[npm-image]: https://img.shields.io/npm/v/tablesorter.svg
|
||||
[david-dev-url]: https://david-dm.org/Mottie/tablesorter?type=dev
|
||||
@ -103,6 +104,18 @@ If you would like to contribute, please...
|
||||
|
||||
View the [complete change log here](https://github.com/Mottie/tablesorter/wiki/Changes).
|
||||
|
||||
#### <a name="v2.28.5">Version 2.28.5</a> (1/28/2017)
|
||||
|
||||
* Docs: Fix "update" labels.
|
||||
* Output:
|
||||
* Prevent multiple popups/download with dblClick (i.e. triggering "outputTable" multiple times).
|
||||
* Remove extraneous console log.
|
||||
* Resizable:
|
||||
* Add "resizableUpdate" & "resizableReset" methods.
|
||||
* Scroller:
|
||||
* Add `scrollerComplete` event. Fixes [issue #1351](https://github.com/Mottie/tablesorter/issues/1351).
|
||||
* Readme: Add related project, tablesorter-pagercontrols
|
||||
|
||||
#### <a name="v2.28.4">Version 2.28.4</a> (1/6/2017)
|
||||
|
||||
* Docs:
|
||||
@ -146,23 +159,3 @@ View the [complete change log here](https://github.com/Mottie/tablesorter/wiki/C
|
||||
|
||||
* Core: Fix internal version numbering.
|
||||
* Grunt: add version check.
|
||||
|
||||
#### <a name="v2.28.2">Version 2.28.2</a> (12/15/2016)
|
||||
|
||||
* ColumnSelector:
|
||||
* Target header column attr. Fixes [issue #1238](https://github.com/Mottie/tablesorter/issues/1238).
|
||||
* Include HTML in empty headers, then reverted. Fixes [issue #1335](https://github.com/Mottie/tablesorter/issues/1335).
|
||||
* Add `layoutCustomizer` option. Fixes [issue #1335](https://github.com/Mottie/tablesorter/issues/1335).
|
||||
* Reorder:
|
||||
* Add style to `<HEAD>`.
|
||||
* Resizable:
|
||||
* Adding style in `<HEAD>` tag not at the end of file. See [pull #1337](https://github.com/Mottie/tablesorter/pull/1337); thanks [@Frennetix](https://github.com/Frennetix)!
|
||||
* Scroller:
|
||||
* Adding style in `<HEAD>` tag not at the end of file. See [pull #1338](https://github.com/Mottie/tablesorter/pull/1338); thanks [@Frennetix](https://github.com/Frennetix)!
|
||||
* Code cleanup. See [pull #1338](https://github.com/Mottie/tablesorter/pull/1338).
|
||||
* Theme:
|
||||
* Convert theme.less to theme.scss. See [pull #1332](https://github.com/Mottie/tablesorter/pull/1332); thanks to [@HongPong](https://github.com/HongPong)!
|
||||
* Fix SCSS theme & add demo. See [pull #1332](https://github.com/Mottie/tablesorter/pull/1332)
|
||||
* Meta:
|
||||
* Add jsDelivr CDN link to readme.
|
||||
* Add scss to dist folder.
|
||||
|
13
dist/js/jquery.tablesorter.combined.js
vendored
13
dist/js/jquery.tablesorter.combined.js
vendored
@ -1,4 +1,4 @@
|
||||
/*! tablesorter (FORK) - updated 01-06-2017 (v2.28.4)*/
|
||||
/*! tablesorter (FORK) - updated 01-28-2017 (v2.28.5)*/
|
||||
/* Includes widgets ( storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort ) */
|
||||
(function(factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
@ -10,7 +10,7 @@
|
||||
}
|
||||
}(function(jQuery) {
|
||||
|
||||
/*! TableSorter (FORK) v2.28.4 *//*
|
||||
/*! TableSorter (FORK) v2.28.5 *//*
|
||||
* Client-side table sorting with ease!
|
||||
* @requires jQuery v1.2.6+
|
||||
*
|
||||
@ -34,7 +34,7 @@
|
||||
'use strict';
|
||||
var ts = $.tablesorter = {
|
||||
|
||||
version : '2.28.4',
|
||||
version : '2.28.5',
|
||||
|
||||
parsers : [],
|
||||
widgets : [],
|
||||
@ -5368,7 +5368,7 @@
|
||||
|
||||
})(jQuery, window);
|
||||
|
||||
/*! Widget: resizable - updated 12/15/2016 (v2.28.2) */
|
||||
/*! Widget: resizable - updated 1/28/2017 (v2.28.5) */
|
||||
/*jshint browser:true, jquery:true, unused:false */
|
||||
;(function ($, window) {
|
||||
'use strict';
|
||||
@ -5624,9 +5624,12 @@
|
||||
|
||||
// right click to reset columns to default widths
|
||||
c.$table
|
||||
.bind( 'columnUpdate' + namespace + ' pagerComplete' + namespace, function() {
|
||||
.bind( 'columnUpdate pagerComplete resizableUpdate '.split( ' ' ).join( namespace + ' ' ), function() {
|
||||
ts.resizable.setHandlePosition( c, wo );
|
||||
})
|
||||
.bind( 'resizableReset' + namespace, function() {
|
||||
ts.resizableReset( c.table );
|
||||
})
|
||||
.find( 'thead:first' )
|
||||
.add( $( c.namespace + '_extra_table' ).find( 'thead:first' ) )
|
||||
.bind( 'contextmenu' + namespace, function() {
|
||||
|
6
dist/js/jquery.tablesorter.combined.min.js
vendored
6
dist/js/jquery.tablesorter.combined.min.js
vendored
File diff suppressed because one or more lines are too long
4
dist/js/jquery.tablesorter.js
vendored
4
dist/js/jquery.tablesorter.js
vendored
@ -8,7 +8,7 @@
|
||||
}
|
||||
}(function(jQuery) {
|
||||
|
||||
/*! TableSorter (FORK) v2.28.4 *//*
|
||||
/*! TableSorter (FORK) v2.28.5 *//*
|
||||
* Client-side table sorting with ease!
|
||||
* @requires jQuery v1.2.6+
|
||||
*
|
||||
@ -32,7 +32,7 @@
|
||||
'use strict';
|
||||
var ts = $.tablesorter = {
|
||||
|
||||
version : '2.28.4',
|
||||
version : '2.28.5',
|
||||
|
||||
parsers : [],
|
||||
widgets : [],
|
||||
|
2
dist/js/jquery.tablesorter.min.js
vendored
2
dist/js/jquery.tablesorter.min.js
vendored
File diff suppressed because one or more lines are too long
9
dist/js/jquery.tablesorter.widgets.js
vendored
9
dist/js/jquery.tablesorter.widgets.js
vendored
@ -1,4 +1,4 @@
|
||||
/*! tablesorter (FORK) - updated 01-06-2017 (v2.28.4)*/
|
||||
/*! tablesorter (FORK) - updated 01-28-2017 (v2.28.5)*/
|
||||
/* Includes widgets ( storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort ) */
|
||||
(function(factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
@ -2573,7 +2573,7 @@
|
||||
|
||||
})(jQuery, window);
|
||||
|
||||
/*! Widget: resizable - updated 12/15/2016 (v2.28.2) */
|
||||
/*! Widget: resizable - updated 1/28/2017 (v2.28.5) */
|
||||
/*jshint browser:true, jquery:true, unused:false */
|
||||
;(function ($, window) {
|
||||
'use strict';
|
||||
@ -2829,9 +2829,12 @@
|
||||
|
||||
// right click to reset columns to default widths
|
||||
c.$table
|
||||
.bind( 'columnUpdate' + namespace + ' pagerComplete' + namespace, function() {
|
||||
.bind( 'columnUpdate pagerComplete resizableUpdate '.split( ' ' ).join( namespace + ' ' ), function() {
|
||||
ts.resizable.setHandlePosition( c, wo );
|
||||
})
|
||||
.bind( 'resizableReset' + namespace, function() {
|
||||
ts.resizableReset( c.table );
|
||||
})
|
||||
.find( 'thead:first' )
|
||||
.add( $( c.namespace + '_extra_table' ).find( 'thead:first' ) )
|
||||
.bind( 'contextmenu' + namespace, function() {
|
||||
|
4
dist/js/jquery.tablesorter.widgets.min.js
vendored
4
dist/js/jquery.tablesorter.widgets.min.js
vendored
File diff suppressed because one or more lines are too long
4
dist/js/widgets/widget-output.min.js
vendored
4
dist/js/widgets/widget-output.min.js
vendored
File diff suppressed because one or more lines are too long
4
dist/js/widgets/widget-resizable.min.js
vendored
4
dist/js/widgets/widget-resizable.min.js
vendored
File diff suppressed because one or more lines are too long
4
dist/js/widgets/widget-scroller.min.js
vendored
4
dist/js/widgets/widget-scroller.min.js
vendored
File diff suppressed because one or more lines are too long
@ -271,6 +271,7 @@ table.tablesorter tbody tr.even.checked td {
|
||||
|
||||
<h4>Changes</h4>
|
||||
<ul>
|
||||
<li>In <span class="version">v2.28.5</span>, triggering of the "outputTable" event multiple times in rapid succession (within 600 milliseconds) will now prevent the opening of multiple popups or cause mutliple downloads.</li>
|
||||
<li>In <span class="version">v2.28.4</span>,
|
||||
<ul>
|
||||
<li>Added <a class="intlink" href="#output_includeheader"><code>output_includeHeader</code></a> option.</li>
|
||||
|
@ -107,9 +107,15 @@
|
||||
<div>
|
||||
<ul>
|
||||
<li><span class="label label-info">IMPORTANT</span> If using jQuery versions older than 1.8, css box-sizing for the table <em>MUST</em> be set as <code>box-sizing: content-box;</code> or the resizable widget will not work properly.</li>
|
||||
<li><span class="label label-info">IMPORTANT</span> The resize div ends up with a zero height if the header cell is empty. Please include at least a <code>&nbsp;</code> in the cell to allow it to render properly (<a href="https://github.com/Mottie/tablesorter/issues/844" title="Thanks gigib82!">ref</a>).</li>
|
||||
<li><span class="label label-info">IMPORTANT</span> The resizable will not work properly if the <a href="index.html#widthfixed"><code>widthFixed</code></a> option is set to <code>true</code>. Make sure it is set to <code>false</code> (default setting).<br><br></li>
|
||||
<li><span class="label label-info">IMPORTANT</span> The resizable will not work properly if the <a href="index.html#widthfixed"><code>widthFixed</code></a> option is set to <code>true</code>. Make sure it is set to <code>false</code> (default setting).</li>
|
||||
<li><del><span class="label label-info">IMPORTANT</span> The resize div ends up with a zero height if the header cell is empty. Please include at least a <code>&nbsp;</code> in the cell to allow it to render properly (<a href="https://github.com/Mottie/tablesorter/issues/844" title="Thanks gigib82!">ref</a>)</del>. No longer necessary as the resizable widget no longer adds elements inside the table header cells.<br><br></li>
|
||||
|
||||
<li>In <span class="version">v2.28.5</span>,
|
||||
<ul>
|
||||
<li>A <a class="intlink" href="#events"><code>resizableUpdate</code></a> event can be triggered on the table to update the resizable handles.</li>
|
||||
<li>A <a class="intlink" href="#events"><code>resizableReset</code></a> event can be triggered to reset the resizable columns to their default widths.</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>In <span class="version">v2.22.2</span>, resizable will now work with tables inside an overflow wrapper (see <a href="https://github.com/Mottie/tablesorter/issues/953">issue #953</a>).</li>
|
||||
<li>In <span class="version">v2.21.5</span>, this widget now works with the columnSelector widget & tables with margins (see <a href="https://github.com/Mottie/tablesorter/issues/864">issue #864</a>).</li>
|
||||
<li>In <span class="version">v2.21.3</span>
|
||||
@ -179,7 +185,7 @@
|
||||
<td>[ ]</td>
|
||||
<td>Set any default column widths within this zero-based-column-indexed array
|
||||
<div class="collapsible">
|
||||
<p>This option allows the setting of column widths initially (before any resizing occurs, or if there are no saved column widths) and when resetting (right-click on the column header).</p>
|
||||
<p>This option allows the setting of column widths initially (before any resizing occurs, or if there are no saved column widths) and when resetting (right-click on the column header) or triggering a <a class="intlink" href="#events"><code>resizableReset</code></a> event on the table.</p>
|
||||
<p>The array may contain any css allowed width definitions (e.g. percentage, pixels, em, etc).</p>
|
||||
<p>Undefined column widths to not add a specified width to the column</p>
|
||||
<p>Here is an example from the second table in this demo showing how to set this option:</p>
|
||||
@ -220,6 +226,22 @@ resizable_widths : [ '10%', '10%', '40px', '10%', '100px' ]</pre>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<h3><a href="#">Events</a></h3>
|
||||
<div>
|
||||
<h3>resizableUpdate</h3>
|
||||
<blockquote>
|
||||
A <code>resizableUpdate</code> event (added <span class="version">v2.28.5</span>) can be triggered on the table to force an update of the resizable handles. This behaves the same as triggering a <code>resize</code> event on the <code>window</code> without causing any unwanted page reflow.
|
||||
<pre class="prettyprint lang-js">// equivalent to $( window ).trigger( 'resize' );
|
||||
$( 'table' ).trigger( 'resizableUpdate' );</pre>
|
||||
</blockquote>
|
||||
|
||||
<h3>resizableReset</h3>
|
||||
<blockquote>
|
||||
A <code>resizableReset</code> event (added <span class="version">v2.28.5</span>) can be triggered on the table reset the resizable columns to their original, or set <a class="intlink" href="#resizable-widths"><code>resizable_widths</code></a> value. This is the same as the user right-clicking on the table header causing a reset.
|
||||
<pre class="prettyprint lang-js">$( 'table' ).trigger( 'resizableReset' );</pre>
|
||||
</blockquote>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<h1>Demo</h1>
|
||||
|
@ -211,6 +211,7 @@ $(function() {
|
||||
<h3><a href="#">Notes</a></h3>
|
||||
<div>
|
||||
<ul>
|
||||
<li>In <span class="version">v2.28.5</span> a <code>scrollerComplete</code> event is now triggered on the table once the scroller has completed rendering.</li>
|
||||
<li>In <span class="version">v2.22.2</span>,
|
||||
<ul>
|
||||
<li>Add support for multiple tbodies in fixed columns:
|
||||
@ -249,24 +250,24 @@ $(function() {
|
||||
<li>Thanks to <a href="https://github.com/TheSin-">TheSin-</a> for all the work he put into updating this widget... he really didn't like that scrollbar under the fixed column LOL.</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>In <span class="version">v2.22.0</span>,
|
||||
<ul>
|
||||
<li>Horizontal scrollbar now only appears on overflow.</li>
|
||||
<li><code>border-box</code> is now applied to all tables with scroller widget applied.</li>
|
||||
<li>Fixed columns no longer have pointer events disabled.</li>
|
||||
<li>Fixed column vertical scrollbar is now hidden in IE9 & older.</li>
|
||||
<li>Fixed tabbing through fixed column header cells & inputs.</li>
|
||||
<li>The "setFixedColumnSize" can now be called with no set size to refresh the fixed column.</li>
|
||||
<li>Add <code>scroller_addFixedOverlay</code> option which when <code>true</code>, adds an overlay on the fixed columns for styling.</li>
|
||||
<li>Refresh column sizes after update.</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<div class="accordion start-closed">
|
||||
<h3><a href="#">Older Notes</a></h3>
|
||||
<div>
|
||||
<ul>
|
||||
<li>In <span class="version">v2.22.0</span>,
|
||||
<ul>
|
||||
<li>Horizontal scrollbar now only appears on overflow.</li>
|
||||
<li><code>border-box</code> is now applied to all tables with scroller widget applied.</li>
|
||||
<li>Fixed columns no longer have pointer events disabled.</li>
|
||||
<li>Fixed column vertical scrollbar is now hidden in IE9 & older.</li>
|
||||
<li>Fixed tabbing through fixed column header cells & inputs.</li>
|
||||
<li>The "setFixedColumnSize" can now be called with no set size to refresh the fixed column.</li>
|
||||
<li>Add <code>scroller_addFixedOverlay</code> option which when <code>true</code>, adds an overlay on the fixed columns for styling.</li>
|
||||
<li>Refresh column sizes after update.</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>In <span class="version">v2.21.3</span>
|
||||
<ul>
|
||||
<li><span class="label warning">* NOTE *</span> Prior to v2.21.3, this widget would work with jQuery v1.4.4+, now it requires <em>jQuery v1.7+</em>.</li>
|
||||
@ -354,11 +355,9 @@ $(function() {
|
||||
<tr id="scroller-up-after-sort">
|
||||
<td><a href="#" class="permalink">scroller_upAfterSort</a></td>
|
||||
<td>true</td>
|
||||
<td>
|
||||
<td>When <code>true</code>, the scroller automatically scrolls the inner window back to the top after sorting.
|
||||
<div class="collapsible">
|
||||
<br>
|
||||
When <code>true</code>, the scroller automatically scrolls the inner window back to the top after sorting.<br>
|
||||
<br>
|
||||
Set this option to <code>false</code> to prevent this behaviour, or to stop the window from scrolling after interacting with a table cell (e.g. clicking on a checkbox); new in <span class="version">v2.17.3</span>
|
||||
</div>
|
||||
</td>
|
||||
@ -369,7 +368,7 @@ $(function() {
|
||||
<td>true</td>
|
||||
<td>Bring the header into view while scrolling.
|
||||
<div class="collapsible">
|
||||
<p>When <code>true</code>, this option makes the table header jump into view when the table body is not scolled to the top and while scrolling up the page. It's not perfect, but it works. Disable it as desired.</p>
|
||||
<p>When <code>true</code>, this option makes the table header jump into view when the table body is not scrolled to the top and while scrolling up the page. It's not perfect, but it works. Disable it as desired.</p>
|
||||
<p><span class="remark">*</span> <em>To see the difference, toggle the button in the demo below, then scroll down & up the page using a mouse wheel with the cursor at the horizontal center of the page and about 100 pixels from the top, so the cursor is within the table body.</em></p>
|
||||
</div>
|
||||
</td>
|
||||
@ -480,6 +479,17 @@ $(function() {
|
||||
</blockquote>
|
||||
</div>
|
||||
|
||||
<h3><a href="#">Events</a></h3>
|
||||
<div>
|
||||
<h3>scrollerComplete</h3>
|
||||
<blockquote>
|
||||
A <code>scrollerComplete</code> event (added <span class="version">v2.28.5</span>) is triggered on the table after the scroller widget has completed updating (including frozen columns). This event is triggered <em>after</em> an <code>updateComplete</code> event as the widget binds to that event to update the table.
|
||||
<pre class="prettyprint lang-js">$( 'table' ).on( 'scrollerComplete', function() {
|
||||
// do something
|
||||
} );</pre>
|
||||
</blockquote>
|
||||
</div>
|
||||
|
||||
<h3><a href="#">RTL Support</a></h3>
|
||||
<div>
|
||||
Two things are required to get the fixed column properly aligned on the right side:
|
||||
|
@ -4,7 +4,7 @@
|
||||
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██▀▀ ▀▀▀██
|
||||
█████▀ ▀████▀ ██ ██ ▀████▀ ██ ██ ██ ██ ▀████▀ █████▀ ██ ██ █████▀
|
||||
*/
|
||||
/*! tablesorter (FORK) - updated 01-06-2017 (v2.28.4)*/
|
||||
/*! tablesorter (FORK) - updated 01-28-2017 (v2.28.5)*/
|
||||
/* Includes widgets ( storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort ) */
|
||||
(function(factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
@ -16,7 +16,7 @@
|
||||
}
|
||||
}(function(jQuery) {
|
||||
|
||||
/*! TableSorter (FORK) v2.28.4 *//*
|
||||
/*! TableSorter (FORK) v2.28.5 *//*
|
||||
* Client-side table sorting with ease!
|
||||
* @requires jQuery v1.2.6+
|
||||
*
|
||||
@ -40,7 +40,7 @@
|
||||
'use strict';
|
||||
var ts = $.tablesorter = {
|
||||
|
||||
version : '2.28.4',
|
||||
version : '2.28.5',
|
||||
|
||||
parsers : [],
|
||||
widgets : [],
|
||||
@ -5374,7 +5374,7 @@
|
||||
|
||||
})(jQuery, window);
|
||||
|
||||
/*! Widget: resizable - updated 12/15/2016 (v2.28.2) */
|
||||
/*! Widget: resizable - updated 1/28/2017 (v2.28.5) */
|
||||
/*jshint browser:true, jquery:true, unused:false */
|
||||
;(function ($, window) {
|
||||
'use strict';
|
||||
@ -5630,9 +5630,12 @@
|
||||
|
||||
// right click to reset columns to default widths
|
||||
c.$table
|
||||
.bind( 'columnUpdate' + namespace + ' pagerComplete' + namespace, function() {
|
||||
.bind( 'columnUpdate pagerComplete resizableUpdate '.split( ' ' ).join( namespace + ' ' ), function() {
|
||||
ts.resizable.setHandlePosition( c, wo );
|
||||
})
|
||||
.bind( 'resizableReset' + namespace, function() {
|
||||
ts.resizableReset( c.table );
|
||||
})
|
||||
.find( 'thead:first' )
|
||||
.add( $( c.namespace + '_extra_table' ).find( 'thead:first' ) )
|
||||
.bind( 'contextmenu' + namespace, function() {
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*! TableSorter (FORK) v2.28.4 *//*
|
||||
/*! TableSorter (FORK) v2.28.5 *//*
|
||||
* Client-side table sorting with ease!
|
||||
* @requires jQuery v1.2.6+
|
||||
*
|
||||
@ -22,7 +22,7 @@
|
||||
'use strict';
|
||||
var ts = $.tablesorter = {
|
||||
|
||||
version : '2.28.4',
|
||||
version : '2.28.5',
|
||||
|
||||
parsers : [],
|
||||
widgets : [],
|
||||
|
@ -4,7 +4,7 @@
|
||||
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██▀▀ ▀▀▀██
|
||||
█████▀ ▀████▀ ██ ██ ▀████▀ ██ ██ ██ ██ ▀████▀ █████▀ ██ ██ █████▀
|
||||
*/
|
||||
/*! tablesorter (FORK) - updated 01-06-2017 (v2.28.4)*/
|
||||
/*! tablesorter (FORK) - updated 01-28-2017 (v2.28.5)*/
|
||||
/* Includes widgets ( storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort ) */
|
||||
(function(factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
@ -2579,7 +2579,7 @@
|
||||
|
||||
})(jQuery, window);
|
||||
|
||||
/*! Widget: resizable - updated 12/15/2016 (v2.28.2) */
|
||||
/*! Widget: resizable - updated 1/28/2017 (v2.28.5) */
|
||||
/*jshint browser:true, jquery:true, unused:false */
|
||||
;(function ($, window) {
|
||||
'use strict';
|
||||
@ -2835,9 +2835,12 @@
|
||||
|
||||
// right click to reset columns to default widths
|
||||
c.$table
|
||||
.bind( 'columnUpdate' + namespace + ' pagerComplete' + namespace, function() {
|
||||
.bind( 'columnUpdate pagerComplete resizableUpdate '.split( ' ' ).join( namespace + ' ' ), function() {
|
||||
ts.resizable.setHandlePosition( c, wo );
|
||||
})
|
||||
.bind( 'resizableReset' + namespace, function() {
|
||||
ts.resizableReset( c.table );
|
||||
})
|
||||
.find( 'thead:first' )
|
||||
.add( $( c.namespace + '_extra_table' ).find( 'thead:first' ) )
|
||||
.bind( 'contextmenu' + namespace, function() {
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*! Widget: output - updated 1/6/2017 (v2.28.4) *//*
|
||||
/*! Widget: output - updated 1/28/2017 (v2.28.5) *//*
|
||||
* Requires tablesorter v2.8+ and jQuery 1.7+
|
||||
* Modified from:
|
||||
* HTML Table to CSV: http://www.kunalbabre.com/projects/table2CSV.php (License unknown?)
|
||||
@ -15,6 +15,13 @@
|
||||
output = ts.output = {
|
||||
|
||||
event : 'outputTable',
|
||||
// Double click time is about 500ms; this value ignores double clicks
|
||||
// and prevents multiple windows from opening - issue in Firefox
|
||||
noDblClick : 600, // ms
|
||||
lastEvent : 0,
|
||||
// prevent overlapping multiple opens in case rendering of content in
|
||||
// popup or download is longer than noDblClick time.
|
||||
busy : false,
|
||||
|
||||
// wrap line breaks & tabs in quotes
|
||||
regexQuote : /([\n\t\x09\x0d\x0a]|<[^<]+>)/, // test if cell needs wrapping quotes
|
||||
@ -34,9 +41,17 @@
|
||||
.off(output.event)
|
||||
.on(output.event, function( e ) {
|
||||
e.stopPropagation();
|
||||
// explicitly use table.config.widgetOptions because we want
|
||||
// the most up-to-date values; not the 'wo' from initialization
|
||||
output.process(c, c.widgetOptions);
|
||||
// prevent multiple windows opening
|
||||
if (
|
||||
!output.busy &&
|
||||
(e.timeStamp - output.lastEvent > output.noDblClick)
|
||||
) {
|
||||
output.lastEvent = e.timeStamp;
|
||||
output.busy = true;
|
||||
// explicitly use table.config.widgetOptions because we want
|
||||
// the most up-to-date values; not the 'wo' from initialization
|
||||
output.process(c, c.widgetOptions);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
@ -210,6 +225,7 @@
|
||||
} else {
|
||||
output.download(c, wo, mydata);
|
||||
}
|
||||
output.busy = false;
|
||||
|
||||
}, // end process
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*! Widget: resizable - updated 12/15/2016 (v2.28.2) */
|
||||
/*! Widget: resizable - updated 1/28/2017 (v2.28.5) */
|
||||
/*jshint browser:true, jquery:true, unused:false */
|
||||
;(function ($, window) {
|
||||
'use strict';
|
||||
@ -254,9 +254,12 @@
|
||||
|
||||
// right click to reset columns to default widths
|
||||
c.$table
|
||||
.bind( 'columnUpdate' + namespace + ' pagerComplete' + namespace, function() {
|
||||
.bind( 'columnUpdate pagerComplete resizableUpdate '.split( ' ' ).join( namespace + ' ' ), function() {
|
||||
ts.resizable.setHandlePosition( c, wo );
|
||||
})
|
||||
.bind( 'resizableReset' + namespace, function() {
|
||||
ts.resizableReset( c.table );
|
||||
})
|
||||
.find( 'thead:first' )
|
||||
.add( $( c.namespace + '_extra_table' ).find( 'thead:first' ) )
|
||||
.bind( 'contextmenu' + namespace, function() {
|
||||
|
@ -1,4 +1,4 @@
|
||||
/*! Widget: scroller - updated 7/31/2016 (v2.27.0) *//*
|
||||
/*! Widget: scroller - updated 1/28/2017 (v2.28.5) *//*
|
||||
Copyright (C) 2011 T. Connell & Associates, Inc.
|
||||
|
||||
Dual-licensed under the MIT and GPL licenses
|
||||
@ -469,6 +469,7 @@
|
||||
// update resizable widget handles
|
||||
setTimeout( function() {
|
||||
c.$table.triggerHandler( 'resizableUpdate' );
|
||||
c.$table.triggerHandler( 'scrollerComplete' );
|
||||
}, 100 );
|
||||
|
||||
},
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "tablesorter",
|
||||
"title": "tablesorter",
|
||||
"version": "2.28.4",
|
||||
"version": "2.28.5",
|
||||
"description": "tablesorter (FORK) 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.",
|
||||
"author": {
|
||||
"name": "Christian Bach",
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "tablesorter",
|
||||
"title": "tablesorter",
|
||||
"version": "2.28.4",
|
||||
"version": "2.28.5",
|
||||
"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