fixed bug #536623 - (NS 4.7) javascript textarea selection buggy thanks to Alexander M. Turek

This commit is contained in:
Loïc Chapeaux
2002-04-05 15:06:37 +00:00
parent c3858d6e94
commit e7bf1eda34
3 changed files with 9 additions and 2 deletions

View File

@@ -17,6 +17,9 @@ $Source$
David Trajkovic <tdavid at ptt.yu>.
* lang/greek.inc.php3: updated thanks to
Kyriakos Xagoraris <theremon at users.sourceforge.net>.
* db_details.php3, lines 558-559; tbl_properties.php3, lines 719-720:
fixed bug #536623 - (NS 4.7) javascript textarea selection buggy thanks
to the patch #538896 suggested by Alexander M. Turek (rabus).
2002-04-04 Marc Delisle <lem9@users.sourceforge.net>
* lang/german.inc.php3 big update thanks to Alexander M. Turek (rabus)

View File

@@ -554,7 +554,9 @@ $is_upload = (PMA_PHP_INT_VERSION >= 40000 && function_exists('ini_get'))
<input type="hidden" name="prev_sql_query" value="<?php echo ((!empty($query_to_display)) ? urlencode($query_to_display) : ''); ?>" />
<?php echo sprintf($strRunSQLQuery, $db) . ' ' . PMA_showDocuShort('S/E/SELECT.html'); ?>&nbsp;:<br />
<div style="margin-bottom: 5px">
<textarea name="sql_query" cols="<?php echo $cfgTextareaCols; ?>" rows="<?php echo $cfgTextareaRows; ?>" wrap="virtual" onfocus="this.select()">
<textarea name="sql_query" cols="<?php echo $cfgTextareaCols; ?>" rows="<?php echo $cfgTextareaRows; ?>" wrap="virtual"
// rabus: workaround for NS4+
onfocus="if (typeof(document.layers) == 'undefined' || typeof(textarea_selected) == 'undefined') {textarea_selected = 1; this.select();}">
<?php echo ((!empty($query_to_display)) ? htmlspecialchars($query_to_display) : ''); ?>
</textarea><br />
<input type="checkbox" name="show_query" value="y" checked="checked" />&nbsp;

View File

@@ -715,7 +715,9 @@ $is_upload = (PMA_PHP_INT_VERSION >= 40000 && function_exists('ini_get'))
<input type="hidden" name="prev_sql_query" value="<?php echo ((!empty($query_to_display)) ? urlencode($query_to_display) : ''); ?>" />
<?php echo sprintf($strRunSQLQuery, htmlspecialchars($db)) . ' ' . PMA_showDocuShort('S/E/SELECT.html'); ?>&nbsp;:<br />
<div style="margin-bottom: 5px">
<textarea name="sql_query" rows="<?php echo $cfgTextareaRows; ?>" cols="<?php echo $cfgTextareaCols; ?>" wrap="virtual" onfocus="this.select()">
<textarea name="sql_query" rows="<?php echo $cfgTextareaRows; ?>" cols="<?php echo $cfgTextareaCols; ?>" wrap="virtual"
// rabus: workaround for NS4+
onfocus="if (typeof(document.layers) == 'undefined' || typeof(textarea_selected) == 'undefined') {textarea_selected = 1; this.select();}">
<?php echo ((!empty($query_to_display)) ? htmlspecialchars($query_to_display) : 'SELECT * FROM ' . PMA_backquote($table) . ' WHERE 1'); ?>
</textarea><br />
<input type="checkbox" name="show_query" value="y" checked="checked" />&nbsp;