We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53172b0 commit fece1ccCopy full SHA for fece1cc
js/src/server/plugins.js
@@ -1,8 +1,7 @@
1
/**
2
- * Functions used in server plugins pages
+ * Make columns sortable, but only for tables with more than 1 data row.
3
*/
4
-AJAX.registerOnload('server/plugins.js', function () {
5
- // Make columns sortable, but only for tables with more than 1 data row
+function makeColumnsSortable () {
6
var $tables = $('#plugins_plugins table:has(tbody tr + tr)');
7
$tables.tablesorter({
8
sortList: [[0, 0]],
@@ -12,4 +11,8 @@ AJAX.registerOnload('server/plugins.js', function () {
12
11
});
13
$tables.find('thead th')
14
.append('<div class="sorticon"></div>');
+}
15
+
16
+AJAX.registerOnload('server/plugins.js', function () {
17
+ makeColumnsSortable();
18
0 commit comments