* updated tablesorter. now save sort settings with localstorage and cookie fallback.

This commit is contained in:
Catouse
2014-07-30 15:46:28 +08:00
parent 0374e5ba53
commit 2762a4a7fb
3 changed files with 10 additions and 2 deletions
+2 -1
View File
@@ -12,7 +12,8 @@ function sortTable()
{
$('.tablesorter').tablesorter(
{
widgets: ['zebra'],
saveSort: true,
widgets: ['zebra', 'saveSort'],
widgetZebra: {css: ['odd', 'even'] }
}
);
+6 -1
View File
File diff suppressed because one or more lines are too long
+2
View File
@@ -91,6 +91,8 @@ hr.small {margin: 10px 0}
.tablesorter thead tr .header:after {font-family: ZenIcon; font-weight: normal;content: " \e6bd";font-size: 14px;}
.tablesorter thead tr .headerSortUp:after {font-family: ZenIcon; font-weight: normal;content: " \e6b9";font-size: 14px;color:#03C;}
.tablesorter thead tr .headerSortDown:after{font-family: ZenIcon; font-weight: normal;content: " \e6b8";font-size: 14px;color:#03C;}
.tablesorter-header-inner {display: inline;}
.tablesorter thead tr .header.sorter-false:after {display: none}
.table tr.active td, .table-hover>tbody>tr.active:hover>td, .table-hover>tbody>tr.active:hover>th, .table-striped>tbody>tr.active:nth-child(odd).active>td, .table-striped>tbody>tr.active:nth-child(odd)>th {background-color: #FCE6A2}
.table tr>td.active, .table tr>th.active, .table tr.active>td, .table tr.active>th {background-color: #FCE6A2}