From 8a68abfc150bc2d8313257ddde335bc8189f93b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Thu, 22 May 2003 09:51:02 +0000 Subject: [PATCH] Better tabs highlighting when editing indexes. --- ChangeLog | 4 ++++ libraries/common.lib.php3 | 2 +- tbl_indexes.php3 | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d8f0da9d8..a2b4a165c 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,10 @@ phpMyAdmin - Changelog $Id$ $Source$ +2003-05-22 Michal Cihar + * tbl_indexes.php3, libraries/common.lib.php3: Better tabs highlighting + when editing indexes. + 2003-05-22 Garvin Hicking * sql.php3, libraries/common.lib.php3: Bug #692854: Never execute a query in (with/without) PHP code views, and display a new diff --git a/libraries/common.lib.php3 b/libraries/common.lib.php3 index bbad4a24e..7982e12e8 100644 --- a/libraries/common.lib.php3 +++ b/libraries/common.lib.php3 @@ -1687,7 +1687,7 @@ h1 {font-family: sans-serif; font-size: large; font-weight: bold} global $PHP_SELF, $cfg; global $db_details_links_count_tabs; - if ((basename($PHP_SELF) == $link || + if (((!isset($GLOBALS['active_page']) && basename($PHP_SELF) == $link) || $active || (isset($GLOBALS['active_page']) && $GLOBALS['active_page'] == $link) ) && ($text != $GLOBALS['strEmpty'] && $text != $GLOBALS['strDrop'])) { diff --git a/tbl_indexes.php3 b/tbl_indexes.php3 index cb126e22f..d0c6f497c 100644 --- a/tbl_indexes.php3 +++ b/tbl_indexes.php3 @@ -212,6 +212,7 @@ if (!defined('PMA_IDX_INCLUDED') $result = PMA_mysql_query($sql_query) or PMA_mysqlDie('', $sql_query, FALSE, $err_url); $message = $strTable . ' ' . htmlspecialchars($table) . ' ' . $strHasBeenAltered; + $active_page = 'tbl_properties_structure.php3'; include('./tbl_properties_structure.php3'); exit(); } // end builds the new index