From da453c45ae24e952b6829f1cf78f1ebcf4881db6 Mon Sep 17 00:00:00 2001 From: CaMer0n Date: Fri, 25 Dec 2009 02:06:31 +0000 Subject: [PATCH] textarea truncate/expand now continues rather than duplicate the text. --- e107_handlers/form_handler.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/e107_handlers/form_handler.php b/e107_handlers/form_handler.php index d7025dbbf..c5d1943c1 100644 --- a/e107_handlers/form_handler.php +++ b/e107_handlers/form_handler.php @@ -9,8 +9,8 @@ * Form Handler * * $Source: /cvs_backup/e107_0.8/e107_handlers/form_handler.php,v $ - * $Revision: 1.105 $ - * $Date: 2009-12-24 23:02:17 $ + * $Revision: 1.106 $ + * $Date: 2009-12-25 02:06:31 $ * $Author: e107coders $ * */ @@ -1158,6 +1158,7 @@ class e_form { $value = $oldval = strip_tags($value); $value = $tp->text_truncate($value, $parms['truncate'], $expand); + $truncated = str_replace($expand,'',$value); $toexpand = $value != $oldval; } elseif(vartrue($parms['htmltruncate'])) @@ -1166,9 +1167,9 @@ class e_form $toexpand = $value != $oldval; } if($toexpand) - { + { // force hide! TODO - core style .expand-c (expand container) - $value .= ''; + $value .= ''; } break;