Add OK and Cancel button for grid editing
[phpmyadmin/arisferyanto.git] / js / server_plugins.js
blob9d20edbefc8ca66dfc4abfa28cc538b3e6bd7240
1 /**
2 * Functions used in server plugins pages
3 */
5 var pma_theme_image; // filled in server_plugins.php
7 $(function() {
8 // Add tabs
9 $('#pluginsTabs').tabs({
10 // Tab persistence
11 cookie: { name: 'pma_serverStatusTabs', expires: 1 },
12 show: function(event, ui) {
13 // Fixes line break in the menu bar when the page overflows and scrollbar appears
14 menuResize();
15 // 'Plugins' tab is too high due to hiding of 'Modules' by negative left position,
16 // hide tabs by changing display to fix it
17 $(ui.panel).closest('.ui-tabs').find('> div').not(ui.panel).css('display', 'none');
18 $(ui.panel).css('display', 'block');
20 });
22 // Make columns sortable, but only for tables with more than 1 data row
23 var $tables = $('#plugins_plugins table:has(tbody tr + tr)');
24 $tables.tablesorter({
25 sortList: [[0,0]],
26 widgets: ['zebra']
27 });
28 $tables.find('thead th')
29 .append('<img class="sortableIcon" src="' + pma_theme_image + 'cleardot.gif" alt="">');
30 });