server_plugins.js 495 B

12345678910111213141516
  1. /* vim: set expandtab sw=4 ts=4 sts=4: */
  2. /**
  3. * Functions used in server plugins pages
  4. */
  5. AJAX.registerOnload('server_plugins.js', function () {
  6. // Make columns sortable, but only for tables with more than 1 data row
  7. var $tables = $('#plugins_plugins table:has(tbody tr + tr)');
  8. $tables.tablesorter({
  9. sortList: [[0, 0]],
  10. headers: {
  11. 1: { sorter: false }
  12. }
  13. });
  14. $tables.find('thead th')
  15. .append('<div class="sorticon"></div>');
  16. });