fixed JavaScript malfunction in querybox textarea with Opera

This commit is contained in:
Sebastian Mendel
2005-10-04 09:18:33 +00:00
parent 8a450d797e
commit f54b83132c
3 changed files with 39 additions and 3 deletions

View File

@@ -188,9 +188,7 @@ function PMA_sqlQueryFormInsert( $query = '', $is_querywindow = false ) {
// enable auto select text in textarea
if ( $GLOBALS['cfg']['TextareaAutoSelect'] ) {
$auto_sel = ' onfocus="if (typeof(document.layers) == \'undefined\' || '
.' typeof(textarea_selected) == \'undefined\') {textarea_selected '
.'= 1; this.form.elements[\'sql_query\'].select();}"';
$auto_sel = ' onfocus="selectContent( this, sql_box_locked, true )"';
} else {
$auto_sel = '';
}