use jquery chaining

This commit is contained in:
Christophe Benz 2010-09-27 14:26:55 +02:00
commit b896f5f75c

View file

@ -69,12 +69,15 @@ class WebkitGtkFormatter(TableFormatter):
</style> </style>
<script type="text/javascript"> <script type="text/javascript">
$(function() { $(function() {
$.each($("table"), function() { var $table = $("table");
var $this = $(this); $table
var thead = $('<thead>').append($this.find('tr:first')); .prepend(
$this.append(thead); $("<thead>")
$this.tablesorter(); .append(
}); $table.find("tr:first")
)
)
.tablesorter();
}); });
</script> </script>
%(table)s %(table)s