mirror of
https://github.com/Mottie/tablesorter.git
synced 2024-11-15 23:54:22 +00:00
Filter formatter (jQuery UI) work again
This commit is contained in:
parent
65a53dd0e8
commit
99f53cd26b
@ -47,6 +47,10 @@ tablesorter can successfully parse and sort many types of data including linked
|
|||||||
|
|
||||||
View the [complete listing here](https://github.com/Mottie/tablesorter/wiki/Change).
|
View the [complete listing here](https://github.com/Mottie/tablesorter/wiki/Change).
|
||||||
|
|
||||||
|
#### <a name="v2.15.9">Version 2.15.9</a> (3/12/2014)
|
||||||
|
|
||||||
|
* jQuery UI Filter formatter scripts work again (broken since adding unique namespaces in v2.15.7).
|
||||||
|
|
||||||
#### <a name="v2.15.8">Version 2.15.8</a> (3/12/2014)
|
#### <a name="v2.15.8">Version 2.15.8</a> (3/12/2014)
|
||||||
|
|
||||||
* Filter widget
|
* Filter widget
|
||||||
@ -58,7 +62,7 @@ View the [complete listing here](https://github.com/Mottie/tablesorter/wiki/Chan
|
|||||||
* Added this widget to help align cell content on a character (space, decimal, etc).
|
* Added this widget to help align cell content on a character (space, decimal, etc).
|
||||||
* Check out [the demo](http://mottie.github.io/tablesorter/docs/example-widget-align-character.html)!
|
* Check out [the demo](http://mottie.github.io/tablesorter/docs/example-widget-align-character.html)!
|
||||||
|
|
||||||
#### <a name="v2.15.7">Version 2.15.7</a> (1/25/2014)
|
#### <a name="v2.15.7">Version 2.15.7</a> (3/9/2014)
|
||||||
|
|
||||||
* Core
|
* Core
|
||||||
* Minor natural sort algorithm optimization
|
* Minor natural sort algorithm optimization
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "tablesorter",
|
"name": "tablesorter",
|
||||||
"version": "2.15.8",
|
"version": "2.15.9",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"jquery": ">=1.2.6"
|
"jquery": ">=1.2.6"
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/**!
|
/**!
|
||||||
* TableSorter 2.15.8 - Client-side table sorting with ease!
|
* TableSorter 2.15.9 - Client-side table sorting with ease!
|
||||||
* @requires jQuery v1.2.6+
|
* @requires jQuery v1.2.6+
|
||||||
*
|
*
|
||||||
* Copyright (c) 2007 Christian Bach
|
* Copyright (c) 2007 Christian Bach
|
||||||
@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
var ts = this;
|
var ts = this;
|
||||||
|
|
||||||
ts.version = "2.15.8";
|
ts.version = "2.15.9";
|
||||||
|
|
||||||
ts.parsers = [];
|
ts.parsers = [];
|
||||||
ts.widgets = [];
|
ts.widgets = [];
|
||||||
|
4
js/jquery.tablesorter.min.js
vendored
4
js/jquery.tablesorter.min.js
vendored
File diff suppressed because one or more lines are too long
@ -1,4 +1,4 @@
|
|||||||
/*! Filter widget formatter functions - updated 3/9/2014 (v2.15.7)
|
/*! Filter widget formatter functions - updated 3/12/2014 (v2.15.9)
|
||||||
* requires: tableSorter 2.15+ and jQuery 1.4.3+
|
* requires: tableSorter 2.15+ and jQuery 1.4.3+
|
||||||
*
|
*
|
||||||
* uiSpinner (jQuery UI spinner)
|
* uiSpinner (jQuery UI spinner)
|
||||||
@ -70,6 +70,7 @@ tsff = ts.filterFormatter = {
|
|||||||
disabled : false
|
disabled : false
|
||||||
|
|
||||||
}, spinnerDef ),
|
}, spinnerDef ),
|
||||||
|
c = $cell.closest('table')[0].config,
|
||||||
// Add a hidden input to hold the range values
|
// Add a hidden input to hold the range values
|
||||||
$input = $('<input class="filter" type="hidden">')
|
$input = $('<input class="filter" type="hidden">')
|
||||||
.appendTo($cell)
|
.appendTo($cell)
|
||||||
@ -78,7 +79,6 @@ tsff = ts.filterFormatter = {
|
|||||||
updateSpinner({ value: this.value, delayed: false });
|
updateSpinner({ value: this.value, delayed: false });
|
||||||
}),
|
}),
|
||||||
$shcell = [],
|
$shcell = [],
|
||||||
c = $cell.closest('table')[0].config,
|
|
||||||
|
|
||||||
// this function updates the hidden input and adds the current values to the header cell text
|
// this function updates the hidden input and adds the current values to the header cell text
|
||||||
updateSpinner = function(ui, notrigger) {
|
updateSpinner = function(ui, notrigger) {
|
||||||
@ -227,6 +227,7 @@ tsff = ts.filterFormatter = {
|
|||||||
step : 1,
|
step : 1,
|
||||||
range : "min"
|
range : "min"
|
||||||
}, sliderDef ),
|
}, sliderDef ),
|
||||||
|
c = $cell.closest('table')[0].config,
|
||||||
// Add a hidden input to hold the range values
|
// Add a hidden input to hold the range values
|
||||||
$input = $('<input class="filter" type="hidden">')
|
$input = $('<input class="filter" type="hidden">')
|
||||||
.appendTo($cell)
|
.appendTo($cell)
|
||||||
@ -235,7 +236,6 @@ tsff = ts.filterFormatter = {
|
|||||||
updateSlider({ value: this.value });
|
updateSlider({ value: this.value });
|
||||||
}),
|
}),
|
||||||
$shcell = [],
|
$shcell = [],
|
||||||
c = $cell.closest('table')[0].config,
|
|
||||||
|
|
||||||
// this function updates the hidden input and adds the current values to the header cell text
|
// this function updates the hidden input and adds the current values to the header cell text
|
||||||
updateSlider = function(ui, notrigger) {
|
updateSlider = function(ui, notrigger) {
|
||||||
@ -365,6 +365,7 @@ tsff = ts.filterFormatter = {
|
|||||||
max : 100,
|
max : 100,
|
||||||
range : true
|
range : true
|
||||||
}, rangeDef ),
|
}, rangeDef ),
|
||||||
|
c = $cell.closest('table')[0].config,
|
||||||
// Add a hidden input to hold the range values
|
// Add a hidden input to hold the range values
|
||||||
$input = $('<input class="filter" type="hidden">')
|
$input = $('<input class="filter" type="hidden">')
|
||||||
.appendTo($cell)
|
.appendTo($cell)
|
||||||
@ -373,7 +374,6 @@ tsff = ts.filterFormatter = {
|
|||||||
getRange();
|
getRange();
|
||||||
}),
|
}),
|
||||||
$shcell = [],
|
$shcell = [],
|
||||||
c = $cell.closest('table')[0].config,
|
|
||||||
|
|
||||||
getRange = function(){
|
getRange = function(){
|
||||||
var val = $input.val(),
|
var val = $input.val(),
|
||||||
@ -495,6 +495,7 @@ tsff = ts.filterFormatter = {
|
|||||||
}, defDate),
|
}, defDate),
|
||||||
|
|
||||||
$date,
|
$date,
|
||||||
|
c = $cell.closest('table')[0].config,
|
||||||
// make sure we're using parsed dates in the search
|
// make sure we're using parsed dates in the search
|
||||||
$hdr = $cell.closest('thead').find('th[data-column=' + indx + ']').addClass('filter-parsed'),
|
$hdr = $cell.closest('thead').find('th[data-column=' + indx + ']').addClass('filter-parsed'),
|
||||||
// Add a hidden input to hold the range values
|
// Add a hidden input to hold the range values
|
||||||
@ -508,7 +509,6 @@ tsff = ts.filterFormatter = {
|
|||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
t, $shcell = [],
|
t, $shcell = [],
|
||||||
c = $cell.closest('table')[0].config,
|
|
||||||
|
|
||||||
// this function updates the hidden input
|
// this function updates the hidden input
|
||||||
date1Compare = function(v, notrigger) {
|
date1Compare = function(v, notrigger) {
|
||||||
@ -629,6 +629,7 @@ tsff = ts.filterFormatter = {
|
|||||||
numberOfMonths : 1
|
numberOfMonths : 1
|
||||||
}, defDate),
|
}, defDate),
|
||||||
t, closeTo, closeFrom, $shcell = [],
|
t, closeTo, closeFrom, $shcell = [],
|
||||||
|
c = $cell.closest('table')[0].config,
|
||||||
// Add a hidden input to hold the range values
|
// Add a hidden input to hold the range values
|
||||||
$input = $('<input class="dateRange" type="hidden">')
|
$input = $('<input class="dateRange" type="hidden">')
|
||||||
.appendTo($cell)
|
.appendTo($cell)
|
||||||
@ -644,8 +645,7 @@ tsff = ts.filterFormatter = {
|
|||||||
} else if (v.match('<=')) {
|
} else if (v.match('<=')) {
|
||||||
closeTo( v.replace('<=', '') );
|
closeTo( v.replace('<=', '') );
|
||||||
}
|
}
|
||||||
}),
|
});
|
||||||
c = $cell.closest('table')[0].config;
|
|
||||||
|
|
||||||
// make sure we're using parsed dates in the search
|
// make sure we're using parsed dates in the search
|
||||||
$cell.closest('thead').find('th[data-column=' + indx + ']').addClass('filter-parsed');
|
$cell.closest('thead').find('th[data-column=' + indx + ']').addClass('filter-parsed');
|
||||||
|
File diff suppressed because one or more lines are too long
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "tablesorter",
|
"name": "tablesorter",
|
||||||
"title": "tablesorter",
|
"title": "tablesorter",
|
||||||
"version": "2.15.8",
|
"version": "2.15.9",
|
||||||
"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",
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "tablesorter",
|
"name": "tablesorter",
|
||||||
"title": "tablesorter",
|
"title": "tablesorter",
|
||||||
"version": "2.15.8",
|
"version": "2.15.9",
|
||||||
"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