mirror of
https://github.com/koalyptus/TableFilter.git
synced 2024-06-02 14:02:31 +02:00
Started addressing alternate rows bug in conjunction with sorting a column at start
This commit is contained in:
parent
0f337c8fe9
commit
9b93b2fc26
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "tablefilter",
|
"name": "tablefilter",
|
||||||
"version": "0.4.21",
|
"version": "0.4.22",
|
||||||
"description": "A Javascript library making HTML tables filterable and a bit more",
|
"description": "A Javascript library making HTML tables filterable and a bit more",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"author": {
|
"author": {
|
||||||
|
|
|
@ -158,6 +158,8 @@ export default class AdapterSortableTable extends Feature {
|
||||||
let sortColAtStart = adpt.sortColAtStart;
|
let sortColAtStart = adpt.sortColAtStart;
|
||||||
if (sortColAtStart) {
|
if (sortColAtStart) {
|
||||||
this.stt.sort(sortColAtStart[0], sortColAtStart[1]);
|
this.stt.sort(sortColAtStart[0], sortColAtStart[1]);
|
||||||
|
this.emitter.emit('column-sorted', this.tf, sortColAtStart[0],
|
||||||
|
sortColAtStart[1]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.onSortLoaded) {
|
if (this.onSortLoaded) {
|
||||||
|
|
Loading…
Reference in a new issue