Skip to content

Issue with bootstrap and tablesorter zebra #111

Description

@jacklightbody

If I have this table

<table class="bordered-table sortable zebra-striped">
<thead><th>Column 1</th><th>Column 2</th></thead>
<tr><td>test</td><td>1</td></tr>
<tr><td>blah</td><td>3</td></tr>
<tr><td>testing</td><td>2</td></tr>
</table>

and I apply table sorter paging like this:

<script type="text/javascript">
$(document).ready(function() { 
$(".sortable").tablesorter(); 
  $("table") 
  .tablesorter({widgets: ["zebra"]}), 
  .tablesorterPager({container: $("#pager"),positionFixed: false}); 
}); </script>

then the sorting doesn't work (you can click it, but it doesn't actually sort). Removing

.tablesorter({widgets: ["zebra"]}) 

seems to work though. I am currently loading only pager and tablesorter. Is the widgets file required for this?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions