From 863819cbdd759614d4097710b995858d9b4fac0f Mon Sep 17 00:00:00 2001 From: Rouslan Placella Date: Fri, 28 Oct 2011 17:13:31 +0100 Subject: [PATCH] tbl_structure.php ignored $cfg['InitialSlidersState'] for the Indexes --- js/tbl_structure.js | 27 --------------------------- tbl_structure.php | 28 +++++++++++++++------------- 2 files changed, 15 insertions(+), 40 deletions(-) diff --git a/js/tbl_structure.js b/js/tbl_structure.js index 8bbd8bb493..167685f5f5 100644 --- a/js/tbl_structure.js +++ b/js/tbl_structure.js @@ -309,33 +309,6 @@ $(document).ready(function() { }) // end $.post() }) // end insert table button "Go" - /**Add the show/hide index table option if the index is available*/ - if ($("#index_div.ajax").find("#table_index").length != 0) { - /** - *Prepare a div containing a link for toggle the index table - */ - $('
') - .insertAfter('#index_div') - /** don't show it until we have index table on-screen */ - .show(); - - /** Changing the displayed text according to the hide/show criteria in table index*/ - - $('#toggletableindexlink') - .html(PMA_messages['strHideIndexes']) - .bind('click', function() { - var $link = $(this); - $('#index_div').slideToggle(); - if ($link.text() == PMA_messages['strHideIndexes']) { - $link.text(PMA_messages['strShowIndexes']); - } else { - $link.text(PMA_messages['strHideIndexes']); - } - /** avoid default click action */ - return false; - }); - } //end show/hide table index - /** *Ajax event handler for Add column(s) **/ diff --git a/tbl_structure.php b/tbl_structure.php index 754dea1514..ea6c552901 100644 --- a/tbl_structure.php +++ b/tbl_structure.php @@ -689,25 +689,27 @@ if (count($fields) > 20) { */ if (! $tbl_is_view && ! $db_is_information_schema && 'ARCHIVE' != $tbl_type) { + PMA_generate_slider_effect('indexes', __('Indexes')); /** * Display indexes */ echo PMA_Index::getView($table, $db); ?> +
+
+ '); + ?> + +
+
+ -
-
- '); - ?> - -
-