diff options
author | Piotr Przybylski <piotrprz@gmail.com> | 2011-07-09 19:33:45 +0400 |
---|---|---|
committer | Piotr Przybylski <piotrprz@gmail.com> | 2011-07-09 19:33:45 +0400 |
commit | e8a0602f7bf04d79ee28f8de87250c60fd5937b4 (patch) | |
tree | 64e0dc8ea1c88e6e54d6f0fc6ffc5d4bbcf23f3c /js/server_plugins.js | |
parent | c3974ea3b616281937ea21b6d2af5606ffe4237b (diff) |
Sortable columns in plugin list
Diffstat (limited to 'js/server_plugins.js')
-rw-r--r-- | js/server_plugins.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/js/server_plugins.js b/js/server_plugins.js index 8c155d3302..e64a67f204 100644 --- a/js/server_plugins.js +++ b/js/server_plugins.js @@ -2,6 +2,8 @@ * Functions used in server plugins pages */ +var pma_theme_image; // filled in server_plugins.php + $(function() { // Add tabs $('#pluginsTabs').tabs({ @@ -10,4 +12,14 @@ $(function() { // Fixes line break in the menu bar when the page overflows and scrollbar appears show: function() { menuResize(); } }); + + // Make columns sortable, but only for tables with more than 1 data row + var $tables = $('#plugins_plugins table:has(tbody tr + tr:first)') + /*.add('#plugins_modules table')*/; + $tables.tablesorter({ + sortList: [[0,0]], + widgets: ['zebra'] + }); + $tables.find('thead th') + .append('<img class="sortableIcon" src="' + pma_theme_image + 'cleardot.gif" alt="">'); });
\ No newline at end of file |