Double sized textare for LONGTEXT is configurable (RFE #737174).

This commit is contained in:
Michal Čihař
2003-05-15 10:42:57 +00:00
parent ccc932155e
commit 2f5769cc3a
6 changed files with 382 additions and 339 deletions

View File

@@ -5,7 +5,12 @@ phpMyAdmin - Changelog
$Id$
$Source$
2003-05-13 Michal Cihar <nijel@users.sourceforge.net>
2003-05-15 Michal Cihar <nijel@users.sourceforge.net>
* Documentation, config.inc.php3, tbl_change.php3,
libraries/config_import.lib.php3: Double sized textare for LONGTEXT is
configurable (RFE #737174).
2003-05-14 Michal Cihar <nijel@users.sourceforge.net>
* libraries/display_export.lib.php3, tbl_dump.php3: Support for exporting
CSV for multiple tables, it just puts all content into one file, but
some people seem to want this (based on patch #735136).

View File

@@ -1427,6 +1427,14 @@ $cfg['PmaAbsoluteUri'] = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://'
<br /><br />
</dd>
<dt>
<b>$cfg['LongtextDoubleTextarea'] </b>boolean<br />
</dt>
<dd>
Defines whether textarea for LONGTEXT fields should have double size.
<br /><br />
</dd>
<dt>
<b>$cfg['TextareaAutoSelect'] </b>boolean<br />
</dt>

File diff suppressed because it is too large Load Diff

View File

@@ -387,6 +387,7 @@ $cfg['TextareaCols'] = 40; // textarea size (columns) in edit m
// (this value will be emphasized (*2) for sql
// query textareas and (*1.25) for query window)
$cfg['TextareaRows'] = 7; // textarea size (rows) in edit mode
$cfg['LongtextDoubleTextarea'] = TRUE; // double size of textarea size for longtext fields
$cfg['TextareaAutoSelect'] = TRUE; // autoselect when clicking in the textarea of the querybox
$cfg['CharTextareaCols'] = 40; // textarea size (columns) for CHAR/VARCHAR
$cfg['CharTextareaRows'] = 2; // textarea size (rows) for CHAR/VARCHAR

View File

@@ -612,6 +612,10 @@ if (!defined('PMA_CONFIG_IMPORT_LIB_INCLUDED')) {
}
}
if (!isset($cfg['LongtextDoubleTextarea'])) {
$cfg['LongtextDoubleTextarea'] = TRUE;
}
if (!isset($cfg['TextareaRows'])) {
if (isset($cfgTextareaRows)) {
$cfg['TextareaRows'] = $cfgTextareaRows;

View File

@@ -449,7 +449,7 @@ for ($i = 0; $i < $fields_cnt; $i++) {
echo ' </td>' . "\n";
unset($disp);
}
else if (strstr($row_table_def['True_Type'], 'longtext')) {
else if ($cfg['LongtextDoubleTextarea'] && strstr($row_table_def['True_Type'], 'longtext')) {
?>
<td bgcolor="<?php echo $bgcolor; ?>">&nbsp;</td>
</tr>