use jquery chaining
This commit is contained in:
parent
57f1bd3cdf
commit
b896f5f75c
1 changed files with 9 additions and 6 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue