Merge remote-tracking branch 'origin/QA_4_7' into QA_4_7
[phpmyadmin.git] / js / server_plugins.js
blobc555d96a7e6fd5cb7408b604f2fe40a3677476a6
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 });