plugins.js 444 B

123456789101112131415161718
  1. "use strict";
  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: {
  12. sorter: false
  13. }
  14. }
  15. });
  16. $tables.find('thead th').append('<div class="sorticon"></div>');
  17. });