bug #1805102, TextareaAutoSelect issues

This commit is contained in:
Marc Delisle
2007-10-20 17:54:15 +00:00
parent 6342e828ea
commit ad8dc8e189
4 changed files with 15 additions and 1 deletions

View File

@@ -34,6 +34,9 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA
- it should not be possible to move or copy a table to information_schema
- bug #1814733 win: copy db to mixed name db fails
- bug #1777249 [display] Remove horizontal lines in navigation panel
- bug #1805102 [display] TextareaAutoSelect issues: set this parameter
default value to false to help cut&paste from a terminal window; also
set focus to the textarea
2.11.1.2 (2007-10-17)
- fixed XSS in server_status.php, thanks to Omer Singer, The DigiTrust Group

View File

@@ -12,6 +12,11 @@ function PMA_querywindowCommit(tab)
return false;
}
function PMA_querywindowSetFocus()
{
document.getElementById('sqlquery').focus();
}
function PMA_querywindowResize()
{
// for Gecko

View File

@@ -1772,7 +1772,7 @@ $cfg['LongtextDoubleTextarea'] = true;
*
* @global boolean $cfg['TextareaAutoSelect']
*/
$cfg['TextareaAutoSelect'] = true;
$cfg['TextareaAutoSelect'] = false;
/**
* textarea size (columns) for CHAR/VARCHAR

View File

@@ -183,6 +183,12 @@ if (PMA_isValid($_REQUEST['init'])) {
'function' => 'PMA_querywindowResize',
);
}
// always set focus to the textarea
$js_events[] = array(
'object' => 'window',
'event' => 'load',
'function' => 'PMA_querywindowSetFocus',
);
/**
* start HTTP/HTML output