';
@@ -512,10 +520,7 @@ class PMA_Index
} // end while
$r .= '';
$r .= '
';
-
- if (! $print_mode) {
- $r .= PMA_Index::findDuplicates($table, $schema);
- }
+ $r .= '';
return $r;
}
@@ -565,7 +570,7 @@ class PMA_Index
// did not find any difference
// so it makes no sense to have this two equal indexes
- $message = PMA_Message::error(__('The indexes %1$s and %2$s seem to be equal and one of them could possibly be removed.'));
+ $message = PMA_Message::notice(__('The indexes %1$s and %2$s seem to be equal and one of them could possibly be removed.'));
$message->addParam($each_index->getName());
$message->addParam($while_index->getName());
$output .= $message->getDisplay();
diff --git a/tbl_alter.php b/tbl_alter.php
index aace3169db..8efee90bc8 100644
--- a/tbl_alter.php
+++ b/tbl_alter.php
@@ -156,7 +156,9 @@ if (isset($_REQUEST['do_save_data'])) {
* $selected comes from multi_submits.inc.php
*/
if ($abort == false) {
- include_once './libraries/tbl_links.inc.php';
+ if ($_REQUEST['ajax_request'] != true) {
+ include_once './libraries/tbl_links.inc.php';
+ }
if (! isset($selected)) {
PMA_checkParameters(array('field'));
diff --git a/tbl_indexes.php b/tbl_indexes.php
index f06a751b04..3a1a8635a3 100644
--- a/tbl_indexes.php
+++ b/tbl_indexes.php
@@ -123,9 +123,10 @@ if (isset($_REQUEST['do_save_data'])) {
// Displays headers (if needed)
$GLOBALS['js_include'][] = 'indexes.js';
-
require_once './libraries/tbl_info.inc.php';
-require_once './libraries/tbl_links.inc.php';
+if ($GLOBALS['is_ajax_request'] != true) {
+ require_once './libraries/tbl_links.inc.php';
+}
if (isset($_REQUEST['index']) && is_array($_REQUEST['index'])) {
// coming already from form
@@ -163,34 +164,43 @@ if (isset($_REQUEST['create_index'])) {
echo PMA_generate_common_hidden_inputs($form_params);
?>
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);
?>
+