Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Przybylski <piotrprz@gmail.com>2011-07-09 19:33:45 +0400
committerPiotr Przybylski <piotrprz@gmail.com>2011-07-09 19:33:45 +0400
commite8a0602f7bf04d79ee28f8de87250c60fd5937b4 (patch)
tree64e0dc8ea1c88e6e54d6f0fc6ffc5d4bbcf23f3c /js/server_plugins.js
parentc3974ea3b616281937ea21b6d2af5606ffe4237b (diff)
Sortable columns in plugin list
Diffstat (limited to 'js/server_plugins.js')
-rw-r--r--js/server_plugins.js12
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