- fixed pre-select for current server (fixed type missmatch)
- do not auto submit on '(Server) ...'
This commit is contained in:
@@ -12,6 +12,8 @@ $Source$
|
||||
- linked all references
|
||||
* libraries/common.lib.php:
|
||||
- fixed bug #1432626 'bad url error after select "(Databases)..."'
|
||||
* libraries/select_server.lib.php:
|
||||
fixed pre-select for current server (fixed type missmatch)
|
||||
|
||||
2006-02-16 Marc Delisle <lem9@users.sourceforge.net>
|
||||
* lang/italian: update, thanks to Luca Rebellato
|
||||
|
@@ -39,7 +39,8 @@ function PMA_select_server($not_only_options, $ommit_fieldset)
|
||||
}
|
||||
echo '<label for="select_server">' . $GLOBALS['strServer'] . ':</label> ';
|
||||
|
||||
echo '<select name="server" id="select_server" onchange="this.form.submit();">';
|
||||
echo '<select name="server" id="select_server"'
|
||||
. ' onchange="if (this.value != \'\') this.form.submit();">';
|
||||
// TODO FIXME replace with $GLOBALS['strServers']
|
||||
echo '<option value="">(' . $GLOBALS['strServer'] . ') ...</option>' . "\n";
|
||||
} elseif ($list) {
|
||||
@@ -53,7 +54,7 @@ function PMA_select_server($not_only_options, $ommit_fieldset)
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!empty($GLOBALS['server']) && $GLOBALS['server'] === $key) {
|
||||
if (!empty($GLOBALS['server']) && (int) $GLOBALS['server'] === (int) $key) {
|
||||
$selected = 1;
|
||||
} else {
|
||||
$selected = 0;
|
||||
@@ -71,7 +72,7 @@ function PMA_select_server($not_only_options, $ommit_fieldset)
|
||||
// value, displaying such informations may not be a so good
|
||||
// idea
|
||||
if (!empty($server['only_db'])) {
|
||||
// TODO FIXME this can become a really big selectbox ...
|
||||
// TODO FIXME this can become a really big/long/wide selectbox ...
|
||||
$label .= ' - ' . (is_array($server['only_db']) ? implode(', ', $server['only_db']) : $server['only_db']);
|
||||
}
|
||||
if (!empty($server['user']) && $server['auth_type'] == 'config') {
|
||||
|
Reference in New Issue
Block a user