Disabled the autoselect feature of the SQL query box for Opera 7 for Windows in order to avoid trouble here.

This commit is contained in:
Alexander M. Turek
2003-02-05 14:57:49 +00:00
parent e56dc294be
commit 24337ae94c
4 changed files with 13 additions and 11 deletions

View File

@@ -45,7 +45,10 @@ if ($num_tables == 0 && empty($db_query_force)) {
// loic1: defines wether file upload is available or not
// (now defined in common.lib.php3)
$auto_sel = ($cfg['TextareaAutoSelect'])
$auto_sel = ($cfg['TextareaAutoSelect']
// 2003-02-05 rabus: This causes big trouble with Opera 7 for
// Windows, so let's disable it there...
&& !(PMA_USR_OS == 'Win' && PMA_USR_BROWSER_AGENT == 'OPERA' && PMA_USR_BROWSER_VER >= 7))
? "\n" . ' onfocus="if (typeof(document.layers) == \'undefined\' || typeof(textarea_selected) == \'undefined\') {textarea_selected = 1; this.form.elements[\'sql_query\'].select();}"'
: '';
?>