mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
version bump
This commit is contained in:
parent
15f5cc19e0
commit
fade388523
17
README.md
17
README.md
@ -101,6 +101,23 @@ If you would like to contribute, please...
|
|||||||
|
|
||||||
View the [complete change log here](//github.com/Mottie/tablesorter/wiki/Changes).
|
View the [complete change log here](//github.com/Mottie/tablesorter/wiki/Changes).
|
||||||
|
|
||||||
|
#### <a name="v2.25.6">Version 2.25.6</a> (3/18/2016)
|
||||||
|
|
||||||
|
* Core:
|
||||||
|
* Add debug warning when widget not found.
|
||||||
|
* Add debug warning when widget is added more than once.
|
||||||
|
* Docs:
|
||||||
|
* More notes added about including `.filter { display: none; }` in custom themes. See [issue #1172](https://github.com/Mottie/tablesorter/issues/1172).
|
||||||
|
* Add support badges to readme.
|
||||||
|
* Filter:
|
||||||
|
* Add `filterResetSaved` method. See [issue #1173](https://github.com/Mottie/tablesorter/issues/1173).
|
||||||
|
* Update cache when `delayInit` set. Fixes [issue #1180](https://github.com/Mottie/tablesorter/issues/1180).
|
||||||
|
* Lazyload:
|
||||||
|
* Trigger lazyload after filtering. Fixes [issue #1169](https://github.com/Mottie/tablesorter/issues/1169).
|
||||||
|
* Change `skip_invisible` option default to `true`.
|
||||||
|
* Grunt:
|
||||||
|
* Update dependencies.
|
||||||
|
|
||||||
#### <a name="v2.25.5">Version 2.25.5</a> (3/1/2016)
|
#### <a name="v2.25.5">Version 2.25.5</a> (3/1/2016)
|
||||||
|
|
||||||
* Global:
|
* Global:
|
||||||
|
23
dist/js/jquery.tablesorter.combined.js
vendored
23
dist/js/jquery.tablesorter.combined.js
vendored
@ -1,4 +1,4 @@
|
|||||||
/*! tablesorter (FORK) - updated 03-01-2016 (v2.25.5)*/
|
/*! tablesorter (FORK) - updated 03-18-2016 (v2.25.6)*/
|
||||||
/* Includes widgets ( storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort ) */
|
/* Includes widgets ( storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort ) */
|
||||||
(function(factory) {
|
(function(factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
@ -10,7 +10,7 @@
|
|||||||
}
|
}
|
||||||
}(function($) {
|
}(function($) {
|
||||||
|
|
||||||
/*! TableSorter (FORK) v2.25.5 *//*
|
/*! TableSorter (FORK) v2.25.6 *//*
|
||||||
* Client-side table sorting with ease!
|
* Client-side table sorting with ease!
|
||||||
* @requires jQuery v1.2.6+
|
* @requires jQuery v1.2.6+
|
||||||
*
|
*
|
||||||
@ -33,7 +33,7 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
var ts = $.tablesorter = {
|
var ts = $.tablesorter = {
|
||||||
|
|
||||||
version : '2.25.5',
|
version : '2.25.6',
|
||||||
|
|
||||||
parsers : [],
|
parsers : [],
|
||||||
widgets : [],
|
widgets : [],
|
||||||
@ -1860,6 +1860,9 @@
|
|||||||
███████▀ ██ █████▀ ▀████▀ ██████ ██ █████▀
|
███████▀ ██ █████▀ ▀████▀ ██████ ██ █████▀
|
||||||
*/
|
*/
|
||||||
addWidget : function( widget ) {
|
addWidget : function( widget ) {
|
||||||
|
if ( widget.id && !ts.isEmptyObject( ts.getWidgetById( widget.id ) ) ) {
|
||||||
|
console.warn( '"' + widget.id + '" widget was loaded more than once!' );
|
||||||
|
}
|
||||||
ts.widgets[ ts.widgets.length ] = widget;
|
ts.widgets[ ts.widgets.length ] = widget;
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -1988,6 +1991,8 @@
|
|||||||
// set priority to 10 if not defined
|
// set priority to 10 if not defined
|
||||||
if ( !widget.priority ) { widget.priority = 10; }
|
if ( !widget.priority ) { widget.priority = 10; }
|
||||||
widgets[ indx ] = widget;
|
widgets[ indx ] = widget;
|
||||||
|
} else if ( c.debug ) {
|
||||||
|
console.warn( '"' + names[ indx ] + '" widget code does not exist!' );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// sort widgets by priority
|
// sort widgets by priority
|
||||||
@ -3086,7 +3091,7 @@
|
|||||||
|
|
||||||
})(jQuery);
|
})(jQuery);
|
||||||
|
|
||||||
/*! Widget: filter - updated 3/1/2016 (v2.25.5) *//*
|
/*! Widget: filter - updated 3/18/2016 (v2.25.6) *//*
|
||||||
* Requires tablesorter v2.8+ and jQuery 1.7+
|
* Requires tablesorter v2.8+ and jQuery 1.7+
|
||||||
* by Rob Garrison
|
* by Rob Garrison
|
||||||
*/
|
*/
|
||||||
@ -3126,7 +3131,7 @@
|
|||||||
filter_defaultFilter : {}, // add a default column filter type '~{query}' to make fuzzy searches default; '{q1} AND {q2}' to make all searches use a logical AND.
|
filter_defaultFilter : {}, // add a default column filter type '~{query}' to make fuzzy searches default; '{q1} AND {q2}' to make all searches use a logical AND.
|
||||||
filter_excludeFilter : {}, // filters to exclude, per column
|
filter_excludeFilter : {}, // filters to exclude, per column
|
||||||
filter_external : '', // jQuery selector string ( or jQuery object ) of external filters
|
filter_external : '', // jQuery selector string ( or jQuery object ) of external filters
|
||||||
filter_filteredRow : 'filtered', // class added to filtered rows; needed by pager plugin
|
filter_filteredRow : 'filtered', // class added to filtered rows; define in css with "display:none" to hide the filtered-out rows
|
||||||
filter_formatter : null, // add custom filter elements to the filter row
|
filter_formatter : null, // add custom filter elements to the filter row
|
||||||
filter_functions : null, // add custom filter functions using this option
|
filter_functions : null, // add custom filter functions using this option
|
||||||
filter_hideEmpty : true, // hide filter row when table is empty
|
filter_hideEmpty : true, // hide filter row when table is empty
|
||||||
@ -3490,8 +3495,8 @@
|
|||||||
tsf.buildRow( table, c, wo );
|
tsf.buildRow( table, c, wo );
|
||||||
}
|
}
|
||||||
|
|
||||||
txt = 'addRows updateCell update updateRows updateComplete appendCache filterReset filterEnd search '
|
txt = 'addRows updateCell update updateRows updateComplete appendCache filterReset ' +
|
||||||
.split( ' ' ).join( c.namespace + 'filter ' );
|
'filterResetSaved filterEnd search '.split( ' ' ).join( c.namespace + 'filter ' );
|
||||||
c.$table.bind( txt, function( event, filter ) {
|
c.$table.bind( txt, function( event, filter ) {
|
||||||
val = wo.filter_hideEmpty &&
|
val = wo.filter_hideEmpty &&
|
||||||
$.isEmptyObject( c.cache ) &&
|
$.isEmptyObject( c.cache ) &&
|
||||||
@ -3505,6 +3510,8 @@
|
|||||||
if ( event.type === 'filterReset' ) {
|
if ( event.type === 'filterReset' ) {
|
||||||
c.$table.find( '.' + tscss.filter ).add( wo.filter_$externalFilters ).val( '' );
|
c.$table.find( '.' + tscss.filter ).add( wo.filter_$externalFilters ).val( '' );
|
||||||
tsf.searching( table, [] );
|
tsf.searching( table, [] );
|
||||||
|
} else if ( event.type === 'filterResetSaved' ) {
|
||||||
|
ts.storage( table, 'tablesorter-filters', '' );
|
||||||
} else if ( event.type === 'filterEnd' ) {
|
} else if ( event.type === 'filterEnd' ) {
|
||||||
tsf.buildDefault( table, true );
|
tsf.buildDefault( table, true );
|
||||||
} else {
|
} else {
|
||||||
@ -3920,7 +3927,7 @@
|
|||||||
// prevent errors if delay init is set
|
// prevent errors if delay init is set
|
||||||
if ( $.isEmptyObject( c.cache ) ) {
|
if ( $.isEmptyObject( c.cache ) ) {
|
||||||
// update cache if delayInit set & pager has initialized ( after user initiates a search )
|
// update cache if delayInit set & pager has initialized ( after user initiates a search )
|
||||||
if ( c.delayInit && c.pager && c.pager.initialized ) {
|
if ( c.delayInit && ( !c.pager || c.pager && c.pager.initialized ) ) {
|
||||||
ts.updateCache( c, function() {
|
ts.updateCache( c, function() {
|
||||||
tsf.checkFilters( table, false, skipFirst );
|
tsf.checkFilters( table, false, skipFirst );
|
||||||
});
|
});
|
||||||
|
8
dist/js/jquery.tablesorter.combined.min.js
vendored
8
dist/js/jquery.tablesorter.combined.min.js
vendored
File diff suppressed because one or more lines are too long
9
dist/js/jquery.tablesorter.js
vendored
9
dist/js/jquery.tablesorter.js
vendored
@ -8,7 +8,7 @@
|
|||||||
}
|
}
|
||||||
}(function($) {
|
}(function($) {
|
||||||
|
|
||||||
/*! TableSorter (FORK) v2.25.5 *//*
|
/*! TableSorter (FORK) v2.25.6 *//*
|
||||||
* Client-side table sorting with ease!
|
* Client-side table sorting with ease!
|
||||||
* @requires jQuery v1.2.6+
|
* @requires jQuery v1.2.6+
|
||||||
*
|
*
|
||||||
@ -31,7 +31,7 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
var ts = $.tablesorter = {
|
var ts = $.tablesorter = {
|
||||||
|
|
||||||
version : '2.25.5',
|
version : '2.25.6',
|
||||||
|
|
||||||
parsers : [],
|
parsers : [],
|
||||||
widgets : [],
|
widgets : [],
|
||||||
@ -1858,6 +1858,9 @@
|
|||||||
███████▀ ██ █████▀ ▀████▀ ██████ ██ █████▀
|
███████▀ ██ █████▀ ▀████▀ ██████ ██ █████▀
|
||||||
*/
|
*/
|
||||||
addWidget : function( widget ) {
|
addWidget : function( widget ) {
|
||||||
|
if ( widget.id && !ts.isEmptyObject( ts.getWidgetById( widget.id ) ) ) {
|
||||||
|
console.warn( '"' + widget.id + '" widget was loaded more than once!' );
|
||||||
|
}
|
||||||
ts.widgets[ ts.widgets.length ] = widget;
|
ts.widgets[ ts.widgets.length ] = widget;
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -1986,6 +1989,8 @@
|
|||||||
// set priority to 10 if not defined
|
// set priority to 10 if not defined
|
||||||
if ( !widget.priority ) { widget.priority = 10; }
|
if ( !widget.priority ) { widget.priority = 10; }
|
||||||
widgets[ indx ] = widget;
|
widgets[ indx ] = widget;
|
||||||
|
} else if ( c.debug ) {
|
||||||
|
console.warn( '"' + names[ indx ] + '" widget code does not exist!' );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// sort widgets by priority
|
// sort widgets by priority
|
||||||
|
4
dist/js/jquery.tablesorter.min.js
vendored
4
dist/js/jquery.tablesorter.min.js
vendored
File diff suppressed because one or more lines are too long
14
dist/js/jquery.tablesorter.widgets.js
vendored
14
dist/js/jquery.tablesorter.widgets.js
vendored
@ -1,4 +1,4 @@
|
|||||||
/*! tablesorter (FORK) - updated 03-01-2016 (v2.25.5)*/
|
/*! tablesorter (FORK) - updated 03-18-2016 (v2.25.6)*/
|
||||||
/* Includes widgets ( storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort ) */
|
/* Includes widgets ( storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort ) */
|
||||||
(function(factory) {
|
(function(factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
@ -366,7 +366,7 @@
|
|||||||
|
|
||||||
})(jQuery);
|
})(jQuery);
|
||||||
|
|
||||||
/*! Widget: filter - updated 3/1/2016 (v2.25.5) *//*
|
/*! Widget: filter - updated 3/18/2016 (v2.25.6) *//*
|
||||||
* Requires tablesorter v2.8+ and jQuery 1.7+
|
* Requires tablesorter v2.8+ and jQuery 1.7+
|
||||||
* by Rob Garrison
|
* by Rob Garrison
|
||||||
*/
|
*/
|
||||||
@ -406,7 +406,7 @@
|
|||||||
filter_defaultFilter : {}, // add a default column filter type '~{query}' to make fuzzy searches default; '{q1} AND {q2}' to make all searches use a logical AND.
|
filter_defaultFilter : {}, // add a default column filter type '~{query}' to make fuzzy searches default; '{q1} AND {q2}' to make all searches use a logical AND.
|
||||||
filter_excludeFilter : {}, // filters to exclude, per column
|
filter_excludeFilter : {}, // filters to exclude, per column
|
||||||
filter_external : '', // jQuery selector string ( or jQuery object ) of external filters
|
filter_external : '', // jQuery selector string ( or jQuery object ) of external filters
|
||||||
filter_filteredRow : 'filtered', // class added to filtered rows; needed by pager plugin
|
filter_filteredRow : 'filtered', // class added to filtered rows; define in css with "display:none" to hide the filtered-out rows
|
||||||
filter_formatter : null, // add custom filter elements to the filter row
|
filter_formatter : null, // add custom filter elements to the filter row
|
||||||
filter_functions : null, // add custom filter functions using this option
|
filter_functions : null, // add custom filter functions using this option
|
||||||
filter_hideEmpty : true, // hide filter row when table is empty
|
filter_hideEmpty : true, // hide filter row when table is empty
|
||||||
@ -770,8 +770,8 @@
|
|||||||
tsf.buildRow( table, c, wo );
|
tsf.buildRow( table, c, wo );
|
||||||
}
|
}
|
||||||
|
|
||||||
txt = 'addRows updateCell update updateRows updateComplete appendCache filterReset filterEnd search '
|
txt = 'addRows updateCell update updateRows updateComplete appendCache filterReset ' +
|
||||||
.split( ' ' ).join( c.namespace + 'filter ' );
|
'filterResetSaved filterEnd search '.split( ' ' ).join( c.namespace + 'filter ' );
|
||||||
c.$table.bind( txt, function( event, filter ) {
|
c.$table.bind( txt, function( event, filter ) {
|
||||||
val = wo.filter_hideEmpty &&
|
val = wo.filter_hideEmpty &&
|
||||||
$.isEmptyObject( c.cache ) &&
|
$.isEmptyObject( c.cache ) &&
|
||||||
@ -785,6 +785,8 @@
|
|||||||
if ( event.type === 'filterReset' ) {
|
if ( event.type === 'filterReset' ) {
|
||||||
c.$table.find( '.' + tscss.filter ).add( wo.filter_$externalFilters ).val( '' );
|
c.$table.find( '.' + tscss.filter ).add( wo.filter_$externalFilters ).val( '' );
|
||||||
tsf.searching( table, [] );
|
tsf.searching( table, [] );
|
||||||
|
} else if ( event.type === 'filterResetSaved' ) {
|
||||||
|
ts.storage( table, 'tablesorter-filters', '' );
|
||||||
} else if ( event.type === 'filterEnd' ) {
|
} else if ( event.type === 'filterEnd' ) {
|
||||||
tsf.buildDefault( table, true );
|
tsf.buildDefault( table, true );
|
||||||
} else {
|
} else {
|
||||||
@ -1200,7 +1202,7 @@
|
|||||||
// prevent errors if delay init is set
|
// prevent errors if delay init is set
|
||||||
if ( $.isEmptyObject( c.cache ) ) {
|
if ( $.isEmptyObject( c.cache ) ) {
|
||||||
// update cache if delayInit set & pager has initialized ( after user initiates a search )
|
// update cache if delayInit set & pager has initialized ( after user initiates a search )
|
||||||
if ( c.delayInit && c.pager && c.pager.initialized ) {
|
if ( c.delayInit && ( !c.pager || c.pager && c.pager.initialized ) ) {
|
||||||
ts.updateCache( c, function() {
|
ts.updateCache( c, function() {
|
||||||
tsf.checkFilters( table, false, skipFirst );
|
tsf.checkFilters( table, false, skipFirst );
|
||||||
});
|
});
|
||||||
|
6
dist/js/jquery.tablesorter.widgets.min.js
vendored
6
dist/js/jquery.tablesorter.widgets.min.js
vendored
File diff suppressed because one or more lines are too long
4
dist/js/widgets/widget-filter.min.js
vendored
4
dist/js/widgets/widget-filter.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/js/widgets/widget-lazyload.min.js
vendored
2
dist/js/widgets/widget-lazyload.min.js
vendored
@ -1,4 +1,4 @@
|
|||||||
/*! Widget: lazyload (BETA) - 10/31/2015 (v2.24.0) */
|
/*! Widget: lazyload (BETA) - 3/18/2016 (v2.25.6) */
|
||||||
!function(a,b){"use strict";var c=a.tablesorter;c.lazyload={init:function(d,e){"scrollstop"!==e.lazyload_event||c.addScrollStopDone||(c.addScrollStop(),c.addScrollStopDone=!0,a.event.special.scrollstop.latency=e.lazyload_latency||250),c.lazyload.update(d,e);var f=d.namespace+"lazyload ",g=[e.lazyload_update,"pagerUpdate",e.columnSelector_updated||"columnUpdate",""].join(f);d.$table.on(g,function(){c.lazyload.update(d,d.widgetOptions)}).on("filterEnd"+f,function(){a(b).scroll()})},update:function(a,b){var c=(/(\.|#)/.test(b.lazyload_imageClass)?"":".")+b.lazyload_imageClass;a.$table.find(c).lazyload({threshold:b.lazyload_threshold,failure_limit:b.lazyload_failure_limit,event:b.lazyload_event,effect:b.lazyload_effect,container:b.lazyload_container,data_attribute:b.lazyload_data_attribute,skip_invisible:b.lazyload_skip_invisible,appear:b.lazyload_appear,load:b.lazyload_load,placeholder:b.lazyload_placeholder})},remove:function(a,b){a.$table.off(a.namespace+"lazyload")}},c.addWidget({id:"lazyload",options:{lazyload_imageClass:"lazy",lazyload_update:"lazyloadUpdate",lazyload_latency:250,lazyload_threshold:0,lazyload_failure_limit:0,lazyload_event:"scrollstop",lazyload_effect:"show",lazyload_container:b,lazyload_data_attribute:"original",lazyload_skip_invisible:!0,lazyload_appear:null,lazyload_load:null,lazyload_placeholder:"data:image/gif;base64,R0lGODlhAQABAIABAP///wAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="},init:function(a,b,d,e){c.lazyload.init(d,e)},remove:function(a,b,d){c.lazyload.remove(b,d)}}),c.addScrollStop=function(){var b=a.event.dispatch||a.event.handle,c=a.event.special,d="D"+ +new Date,e="D"+(+new Date+1);c.scrollstart={setup:function(e){var f,g=a.extend({latency:c.scrollstop.latency},e),h=function(a){var c=this,d=arguments;f?clearTimeout(f):(a.type="scrollstart",b.apply(c,d)),f=setTimeout(function(){f=null},g.latency)};a(this).bind("scroll",h).data(d,h)},teardown:function(){a(this).unbind("scroll",a(this).data(d))}},c.scrollstop={latency:250,setup:function(d){var f,g=a.extend({latency:c.scrollstop.latency},d),h=function(a){var c=this,d=arguments;f&&clearTimeout(f),f=setTimeout(function(){f=null,a.type="scrollstop",b.apply(c,d)},g.latency)};a(this).bind("scroll",h).data(e,h)},teardown:function(){a(this).unbind("scroll",a(this).data(e))}}}}(jQuery,window),/*!
|
!function(a,b){"use strict";var c=a.tablesorter;c.lazyload={init:function(d,e){"scrollstop"!==e.lazyload_event||c.addScrollStopDone||(c.addScrollStop(),c.addScrollStopDone=!0,a.event.special.scrollstop.latency=e.lazyload_latency||250),c.lazyload.update(d,e);var f=d.namespace+"lazyload ",g=[e.lazyload_update,"pagerUpdate",e.columnSelector_updated||"columnUpdate",""].join(f);d.$table.on(g,function(){c.lazyload.update(d,d.widgetOptions)}).on("filterEnd"+f,function(){a(b).scroll()})},update:function(a,b){var c=(/(\.|#)/.test(b.lazyload_imageClass)?"":".")+b.lazyload_imageClass;a.$table.find(c).lazyload({threshold:b.lazyload_threshold,failure_limit:b.lazyload_failure_limit,event:b.lazyload_event,effect:b.lazyload_effect,container:b.lazyload_container,data_attribute:b.lazyload_data_attribute,skip_invisible:b.lazyload_skip_invisible,appear:b.lazyload_appear,load:b.lazyload_load,placeholder:b.lazyload_placeholder})},remove:function(a,b){a.$table.off(a.namespace+"lazyload")}},c.addWidget({id:"lazyload",options:{lazyload_imageClass:"lazy",lazyload_update:"lazyloadUpdate",lazyload_latency:250,lazyload_threshold:0,lazyload_failure_limit:0,lazyload_event:"scrollstop",lazyload_effect:"show",lazyload_container:b,lazyload_data_attribute:"original",lazyload_skip_invisible:!0,lazyload_appear:null,lazyload_load:null,lazyload_placeholder:"data:image/gif;base64,R0lGODlhAQABAIABAP///wAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="},init:function(a,b,d,e){c.lazyload.init(d,e)},remove:function(a,b,d){c.lazyload.remove(b,d)}}),c.addScrollStop=function(){var b=a.event.dispatch||a.event.handle,c=a.event.special,d="D"+ +new Date,e="D"+(+new Date+1);c.scrollstart={setup:function(e){var f,g=a.extend({latency:c.scrollstop.latency},e),h=function(a){var c=this,d=arguments;f?clearTimeout(f):(a.type="scrollstart",b.apply(c,d)),f=setTimeout(function(){f=null},g.latency)};a(this).bind("scroll",h).data(d,h)},teardown:function(){a(this).unbind("scroll",a(this).data(d))}},c.scrollstop={latency:250,setup:function(d){var f,g=a.extend({latency:c.scrollstop.latency},d),h=function(a){var c=this,d=arguments;f&&clearTimeout(f),f=setTimeout(function(){f=null,a.type="scrollstop",b.apply(c,d)},g.latency)};a(this).bind("scroll",h).data(e,h)},teardown:function(){a(this).unbind("scroll",a(this).data(e))}}}}(jQuery,window),/*!
|
||||||
* Lazy Load - jQuery plugin for lazy loading images
|
* Lazy Load - jQuery plugin for lazy loading images
|
||||||
*
|
*
|
||||||
|
@ -5327,7 +5327,7 @@ $('table').trigger( 'search', [['', '', '', '', 'orange']] ); // find orange in
|
|||||||
$.tablesorter.storage( $('#myTable'), 'tablesorter-filters', '' );</pre>
|
$.tablesorter.storage( $('#myTable'), 'tablesorter-filters', '' );</pre>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td><a href="example-widget-filter.html">Example</td>
|
<td><a href="example-widget-filter.html">Example</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr id="savesortreset">
|
<tr id="savesortreset">
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██▀▀ ▀▀▀██
|
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██▀▀ ▀▀▀██
|
||||||
█████▀ ▀████▀ ██ ██ ▀████▀ ██ ██ ██ ██ ▀████▀ █████▀ ██ ██ █████▀
|
█████▀ ▀████▀ ██ ██ ▀████▀ ██ ██ ██ ██ ▀████▀ █████▀ ██ ██ █████▀
|
||||||
*/
|
*/
|
||||||
/*! tablesorter (FORK) - updated 03-01-2016 (v2.25.5)*/
|
/*! tablesorter (FORK) - updated 03-18-2016 (v2.25.6)*/
|
||||||
/* Includes widgets ( storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort ) */
|
/* Includes widgets ( storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort ) */
|
||||||
(function(factory) {
|
(function(factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
@ -16,7 +16,7 @@
|
|||||||
}
|
}
|
||||||
}(function($) {
|
}(function($) {
|
||||||
|
|
||||||
/*! TableSorter (FORK) v2.25.5 *//*
|
/*! TableSorter (FORK) v2.25.6 *//*
|
||||||
* Client-side table sorting with ease!
|
* Client-side table sorting with ease!
|
||||||
* @requires jQuery v1.2.6+
|
* @requires jQuery v1.2.6+
|
||||||
*
|
*
|
||||||
@ -39,7 +39,7 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
var ts = $.tablesorter = {
|
var ts = $.tablesorter = {
|
||||||
|
|
||||||
version : '2.25.5',
|
version : '2.25.6',
|
||||||
|
|
||||||
parsers : [],
|
parsers : [],
|
||||||
widgets : [],
|
widgets : [],
|
||||||
@ -1866,6 +1866,9 @@
|
|||||||
███████▀ ██ █████▀ ▀████▀ ██████ ██ █████▀
|
███████▀ ██ █████▀ ▀████▀ ██████ ██ █████▀
|
||||||
*/
|
*/
|
||||||
addWidget : function( widget ) {
|
addWidget : function( widget ) {
|
||||||
|
if ( widget.id && !ts.isEmptyObject( ts.getWidgetById( widget.id ) ) ) {
|
||||||
|
console.warn( '"' + widget.id + '" widget was loaded more than once!' );
|
||||||
|
}
|
||||||
ts.widgets[ ts.widgets.length ] = widget;
|
ts.widgets[ ts.widgets.length ] = widget;
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -1994,6 +1997,8 @@
|
|||||||
// set priority to 10 if not defined
|
// set priority to 10 if not defined
|
||||||
if ( !widget.priority ) { widget.priority = 10; }
|
if ( !widget.priority ) { widget.priority = 10; }
|
||||||
widgets[ indx ] = widget;
|
widgets[ indx ] = widget;
|
||||||
|
} else if ( c.debug ) {
|
||||||
|
console.warn( '"' + names[ indx ] + '" widget code does not exist!' );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// sort widgets by priority
|
// sort widgets by priority
|
||||||
@ -3092,7 +3097,7 @@
|
|||||||
|
|
||||||
})(jQuery);
|
})(jQuery);
|
||||||
|
|
||||||
/*! Widget: filter - updated 3/1/2016 (v2.25.5) *//*
|
/*! Widget: filter - updated 3/18/2016 (v2.25.6) *//*
|
||||||
* Requires tablesorter v2.8+ and jQuery 1.7+
|
* Requires tablesorter v2.8+ and jQuery 1.7+
|
||||||
* by Rob Garrison
|
* by Rob Garrison
|
||||||
*/
|
*/
|
||||||
@ -3132,7 +3137,7 @@
|
|||||||
filter_defaultFilter : {}, // add a default column filter type '~{query}' to make fuzzy searches default; '{q1} AND {q2}' to make all searches use a logical AND.
|
filter_defaultFilter : {}, // add a default column filter type '~{query}' to make fuzzy searches default; '{q1} AND {q2}' to make all searches use a logical AND.
|
||||||
filter_excludeFilter : {}, // filters to exclude, per column
|
filter_excludeFilter : {}, // filters to exclude, per column
|
||||||
filter_external : '', // jQuery selector string ( or jQuery object ) of external filters
|
filter_external : '', // jQuery selector string ( or jQuery object ) of external filters
|
||||||
filter_filteredRow : 'filtered', // class added to filtered rows; needed by pager plugin
|
filter_filteredRow : 'filtered', // class added to filtered rows; define in css with "display:none" to hide the filtered-out rows
|
||||||
filter_formatter : null, // add custom filter elements to the filter row
|
filter_formatter : null, // add custom filter elements to the filter row
|
||||||
filter_functions : null, // add custom filter functions using this option
|
filter_functions : null, // add custom filter functions using this option
|
||||||
filter_hideEmpty : true, // hide filter row when table is empty
|
filter_hideEmpty : true, // hide filter row when table is empty
|
||||||
@ -3496,8 +3501,8 @@
|
|||||||
tsf.buildRow( table, c, wo );
|
tsf.buildRow( table, c, wo );
|
||||||
}
|
}
|
||||||
|
|
||||||
txt = 'addRows updateCell update updateRows updateComplete appendCache filterReset filterEnd search '
|
txt = 'addRows updateCell update updateRows updateComplete appendCache filterReset ' +
|
||||||
.split( ' ' ).join( c.namespace + 'filter ' );
|
'filterResetSaved filterEnd search '.split( ' ' ).join( c.namespace + 'filter ' );
|
||||||
c.$table.bind( txt, function( event, filter ) {
|
c.$table.bind( txt, function( event, filter ) {
|
||||||
val = wo.filter_hideEmpty &&
|
val = wo.filter_hideEmpty &&
|
||||||
$.isEmptyObject( c.cache ) &&
|
$.isEmptyObject( c.cache ) &&
|
||||||
@ -3511,6 +3516,8 @@
|
|||||||
if ( event.type === 'filterReset' ) {
|
if ( event.type === 'filterReset' ) {
|
||||||
c.$table.find( '.' + tscss.filter ).add( wo.filter_$externalFilters ).val( '' );
|
c.$table.find( '.' + tscss.filter ).add( wo.filter_$externalFilters ).val( '' );
|
||||||
tsf.searching( table, [] );
|
tsf.searching( table, [] );
|
||||||
|
} else if ( event.type === 'filterResetSaved' ) {
|
||||||
|
ts.storage( table, 'tablesorter-filters', '' );
|
||||||
} else if ( event.type === 'filterEnd' ) {
|
} else if ( event.type === 'filterEnd' ) {
|
||||||
tsf.buildDefault( table, true );
|
tsf.buildDefault( table, true );
|
||||||
} else {
|
} else {
|
||||||
@ -3926,7 +3933,7 @@
|
|||||||
// prevent errors if delay init is set
|
// prevent errors if delay init is set
|
||||||
if ( $.isEmptyObject( c.cache ) ) {
|
if ( $.isEmptyObject( c.cache ) ) {
|
||||||
// update cache if delayInit set & pager has initialized ( after user initiates a search )
|
// update cache if delayInit set & pager has initialized ( after user initiates a search )
|
||||||
if ( c.delayInit && c.pager && c.pager.initialized ) {
|
if ( c.delayInit && ( !c.pager || c.pager && c.pager.initialized ) ) {
|
||||||
ts.updateCache( c, function() {
|
ts.updateCache( c, function() {
|
||||||
tsf.checkFilters( table, false, skipFirst );
|
tsf.checkFilters( table, false, skipFirst );
|
||||||
});
|
});
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/*! TableSorter (FORK) v2.25.5 *//*
|
/*! TableSorter (FORK) v2.25.6 *//*
|
||||||
* Client-side table sorting with ease!
|
* Client-side table sorting with ease!
|
||||||
* @requires jQuery v1.2.6+
|
* @requires jQuery v1.2.6+
|
||||||
*
|
*
|
||||||
@ -21,7 +21,7 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
var ts = $.tablesorter = {
|
var ts = $.tablesorter = {
|
||||||
|
|
||||||
version : '2.25.5',
|
version : '2.25.6',
|
||||||
|
|
||||||
parsers : [],
|
parsers : [],
|
||||||
widgets : [],
|
widgets : [],
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██▀▀ ▀▀▀██
|
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██▀▀ ▀▀▀██
|
||||||
█████▀ ▀████▀ ██ ██ ▀████▀ ██ ██ ██ ██ ▀████▀ █████▀ ██ ██ █████▀
|
█████▀ ▀████▀ ██ ██ ▀████▀ ██ ██ ██ ██ ▀████▀ █████▀ ██ ██ █████▀
|
||||||
*/
|
*/
|
||||||
/*! tablesorter (FORK) - updated 03-01-2016 (v2.25.5)*/
|
/*! tablesorter (FORK) - updated 03-18-2016 (v2.25.6)*/
|
||||||
/* Includes widgets ( storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort ) */
|
/* Includes widgets ( storage,uitheme,columns,filter,stickyHeaders,resizable,saveSort ) */
|
||||||
(function(factory) {
|
(function(factory) {
|
||||||
if (typeof define === 'function' && define.amd) {
|
if (typeof define === 'function' && define.amd) {
|
||||||
@ -372,7 +372,7 @@
|
|||||||
|
|
||||||
})(jQuery);
|
})(jQuery);
|
||||||
|
|
||||||
/*! Widget: filter - updated 3/1/2016 (v2.25.5) *//*
|
/*! Widget: filter - updated 3/18/2016 (v2.25.6) *//*
|
||||||
* Requires tablesorter v2.8+ and jQuery 1.7+
|
* Requires tablesorter v2.8+ and jQuery 1.7+
|
||||||
* by Rob Garrison
|
* by Rob Garrison
|
||||||
*/
|
*/
|
||||||
@ -412,7 +412,7 @@
|
|||||||
filter_defaultFilter : {}, // add a default column filter type '~{query}' to make fuzzy searches default; '{q1} AND {q2}' to make all searches use a logical AND.
|
filter_defaultFilter : {}, // add a default column filter type '~{query}' to make fuzzy searches default; '{q1} AND {q2}' to make all searches use a logical AND.
|
||||||
filter_excludeFilter : {}, // filters to exclude, per column
|
filter_excludeFilter : {}, // filters to exclude, per column
|
||||||
filter_external : '', // jQuery selector string ( or jQuery object ) of external filters
|
filter_external : '', // jQuery selector string ( or jQuery object ) of external filters
|
||||||
filter_filteredRow : 'filtered', // class added to filtered rows; needed by pager plugin
|
filter_filteredRow : 'filtered', // class added to filtered rows; define in css with "display:none" to hide the filtered-out rows
|
||||||
filter_formatter : null, // add custom filter elements to the filter row
|
filter_formatter : null, // add custom filter elements to the filter row
|
||||||
filter_functions : null, // add custom filter functions using this option
|
filter_functions : null, // add custom filter functions using this option
|
||||||
filter_hideEmpty : true, // hide filter row when table is empty
|
filter_hideEmpty : true, // hide filter row when table is empty
|
||||||
@ -776,8 +776,8 @@
|
|||||||
tsf.buildRow( table, c, wo );
|
tsf.buildRow( table, c, wo );
|
||||||
}
|
}
|
||||||
|
|
||||||
txt = 'addRows updateCell update updateRows updateComplete appendCache filterReset filterEnd search '
|
txt = 'addRows updateCell update updateRows updateComplete appendCache filterReset ' +
|
||||||
.split( ' ' ).join( c.namespace + 'filter ' );
|
'filterResetSaved filterEnd search '.split( ' ' ).join( c.namespace + 'filter ' );
|
||||||
c.$table.bind( txt, function( event, filter ) {
|
c.$table.bind( txt, function( event, filter ) {
|
||||||
val = wo.filter_hideEmpty &&
|
val = wo.filter_hideEmpty &&
|
||||||
$.isEmptyObject( c.cache ) &&
|
$.isEmptyObject( c.cache ) &&
|
||||||
@ -791,6 +791,8 @@
|
|||||||
if ( event.type === 'filterReset' ) {
|
if ( event.type === 'filterReset' ) {
|
||||||
c.$table.find( '.' + tscss.filter ).add( wo.filter_$externalFilters ).val( '' );
|
c.$table.find( '.' + tscss.filter ).add( wo.filter_$externalFilters ).val( '' );
|
||||||
tsf.searching( table, [] );
|
tsf.searching( table, [] );
|
||||||
|
} else if ( event.type === 'filterResetSaved' ) {
|
||||||
|
ts.storage( table, 'tablesorter-filters', '' );
|
||||||
} else if ( event.type === 'filterEnd' ) {
|
} else if ( event.type === 'filterEnd' ) {
|
||||||
tsf.buildDefault( table, true );
|
tsf.buildDefault( table, true );
|
||||||
} else {
|
} else {
|
||||||
@ -1206,7 +1208,7 @@
|
|||||||
// prevent errors if delay init is set
|
// prevent errors if delay init is set
|
||||||
if ( $.isEmptyObject( c.cache ) ) {
|
if ( $.isEmptyObject( c.cache ) ) {
|
||||||
// update cache if delayInit set & pager has initialized ( after user initiates a search )
|
// update cache if delayInit set & pager has initialized ( after user initiates a search )
|
||||||
if ( c.delayInit && c.pager && c.pager.initialized ) {
|
if ( c.delayInit && ( !c.pager || c.pager && c.pager.initialized ) ) {
|
||||||
ts.updateCache( c, function() {
|
ts.updateCache( c, function() {
|
||||||
tsf.checkFilters( table, false, skipFirst );
|
tsf.checkFilters( table, false, skipFirst );
|
||||||
});
|
});
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/*! Widget: filter - updated 3/1/2016 (v2.25.5) *//*
|
/*! Widget: filter - updated 3/18/2016 (v2.25.6) *//*
|
||||||
* Requires tablesorter v2.8+ and jQuery 1.7+
|
* Requires tablesorter v2.8+ and jQuery 1.7+
|
||||||
* by Rob Garrison
|
* by Rob Garrison
|
||||||
*/
|
*/
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/*! Widget: lazyload (BETA) - 10/31/2015 (v2.24.0) *//*
|
/*! Widget: lazyload (BETA) - 3/18/2016 (v2.25.6) *//*
|
||||||
* Requires tablesorter v2.8+ and jQuery 1.7+
|
* Requires tablesorter v2.8+ and jQuery 1.7+
|
||||||
* by Rob Garrison
|
* by Rob Garrison
|
||||||
*/
|
*/
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "tablesorter",
|
"name": "tablesorter",
|
||||||
"title": "tablesorter",
|
"title": "tablesorter",
|
||||||
"version": "2.25.5",
|
"version": "2.25.6",
|
||||||
"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.",
|
"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": {
|
"author": {
|
||||||
"name": "Christian Bach",
|
"name": "Christian Bach",
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "tablesorter",
|
"name": "tablesorter",
|
||||||
"title": "tablesorter",
|
"title": "tablesorter",
|
||||||
"version": "2.25.5",
|
"version": "2.25.6",
|
||||||
"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