Uitheme: fix multiple header row sort icons

This commit is contained in:
Mottie 2014-10-07 14:32:45 -05:00
parent 26963ef1b0
commit 71597e208a
2 changed files with 6 additions and 3 deletions

View File

@ -43,6 +43,9 @@
.tablesorter-jui thead .sorter-false { .tablesorter-jui thead .sorter-false {
cursor: default; cursor: default;
} }
.tablesorter-jui thead tr .sorter-false .ui-icon {
display: none;
}
/* tfoot */ /* tfoot */
.tablesorter-jui tfoot th, .tablesorter-jui tfoot th,

View File

@ -33,7 +33,7 @@ ts.themes = {
}, },
"jui" : { "jui" : {
table : 'ui-widget ui-widget-content ui-corner-all', // table classes table : 'ui-widget ui-widget-content ui-corner-all', // table classes
caption : 'ui-widget-content ui-corner-all', caption : 'ui-widget-content',
header : 'ui-widget-header ui-corner-all ui-state-default', // header classes header : 'ui-widget-header ui-corner-all ui-state-default', // header classes
footerRow : '', footerRow : '',
footerCells: '', footerCells: '',
@ -232,9 +232,9 @@ ts.addWidget({
c.appliedTheme = c.theme; c.appliedTheme = c.theme;
} }
for (i = 0; i < c.columns; i++) { for (i = 0; i < c.columns; i++) {
$header = c.$headers.add(c.$extraHeaders).filter('[data-column="' + i + '"]'); $header = c.$headers.add(c.$extraHeaders).not('.sorter-false').filter('[data-column="' + i + '"]');
$icon = (ts.css.icon) ? $header.find('.' + ts.css.icon) : $header; $icon = (ts.css.icon) ? $header.find('.' + ts.css.icon) : $header;
$h = $headers.filter('[data-column="' + i + '"]:last'); $h = $headers.not('.sorter-false').filter('[data-column="' + i + '"]:last');
if ($h.length) { if ($h.length) {
if ($h[0].sortDisabled) { if ($h[0].sortDisabled) {
// no sort arrows for disabled columns! // no sort arrows for disabled columns!