blob: 4d9df6583b7e04581f25f3544cecee9d5451f662 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
/**
* Make columns sortable, but only for tables with more than 1 data row.
*/
function makeColumnsSortable () {
var $tables = $('#plugins_plugins table:has(tbody tr + tr)');
$tables.tablesorter({
sortList: [[0, 0]],
headers: {
1: { sorter: false }
}
});
$tables.find('thead th')
.append('<div class="sorticon"></div>');
}
window.AJAX.registerOnload('server/plugins.js', function () {
makeColumnsSortable();
});
|