openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 13d146a6676d6331bd55d682972efb6bf513e243
parent 6d1b0194a0b1bc2799be79a112fcf2547fda7417
Author: dankert <devnull@localhost>
Date:   Mon, 18 Jan 2010 22:31:15 +0100

Attribut 'readonly' gibt es nicht.

Diffstat:
Mthemes/default/include/html/inputarea.inc.php | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/themes/default/include/html/inputarea.inc.php b/themes/default/include/html/inputarea.inc.php @@ -1,5 +1,4 @@ -<?php if ($this->isEditable() && !$this->isEditMode()) $attr_readonly=true; - if ( !$attr_readonly) { -?><textarea <?php if ($attr_readonly) echo ' disabled="true"' ?> class="<?php echo $attr_class ?>" name="<?php echo $attr_name ?>" rows="<?php echo $attr_rows ?>" cols="<?php echo $attr_cols ?>"><?php echo htmlentities(isset($$attr_name)?$$attr_name:$attr_default) ?></textarea><?php +<?php if ($this->isEditMode()) { +?><textarea class="<?php echo $attr_class ?>" name="<?php echo $attr_name ?>" rows="<?php echo $attr_rows ?>" cols="<?php echo $attr_cols ?>"><?php echo htmlentities(isset($$attr_name)?$$attr_name:$attr_default) ?></textarea><?php } else { ?><span class="<?php echo $attr_class ?>"><?php echo isset($$attr_name)?$$attr_name:$attr_default ?></span><?php } ?> \ No newline at end of file