Docs: minor fixes

This commit is contained in:
Mottie 2015-07-21 16:15:09 -05:00
parent 19e914fbb3
commit 7d21962a03
2 changed files with 12 additions and 6 deletions

View File

@ -218,7 +218,7 @@
</div>
<table class="tablesorter-blue options">
<thead>
<tr><th>Option</th><th>Default</th><th>Description</th></tr>
<tr><th>Option</th><th>Default</th><th class="sorter-false">Description</th></tr>
</thead>
<tbody>

View File

@ -136,9 +136,13 @@
activate: function(e, ui) {
// refresh zebra widget when rows are visible
ui.newPanel.find('table').trigger('applyWidgets');
var $opt = ui.newPanel.find('table.options');
// options tables are hidden, so colgroup won't find any visible columns to get widths
if ( $opt.length && $opt[0].config ) {
$.tablesorter.fixColumnWidth( $opt );
}
}
});
console.log( hash );
// hash is not a jQuery selector
if ( /[=,]/.test(hash) ) {
return false;
@ -187,10 +191,12 @@
$t = prop.closest('table');
if ($t.length && $t[0].config) {
wo = $t[0].config.widgetOptions;
stickyHt = $t[0].config.widgetOptions.$sticky.outerHeight();
h = ( wo.$sticky ? wo.$sticky.height() : '' ) || $t.hasClass('hasStickHeaders') ? stickyHt : 0;
if ($t.hasClass('options') || $t.hasClass('api')) {
window.scrollTo( 0, prop.offset().top - h );
if ( wo.$sticky ) {
stickyHt = wo.$sticky.outerHeight();
h = ( wo.$sticky ? wo.$sticky.height() : '' ) || $t.hasClass('hasStickHeaders') ? stickyHt : 0;
if ($t.hasClass('options') || $t.hasClass('api')) {
window.scrollTo( 0, prop.offset().top - h );
}
}
}
}, 200);