From 572bbe068fa19cee60d93d70554a287c1baa1ba8 Mon Sep 17 00:00:00 2001 From: wangchunsheng Date: Wed, 1 Dec 2010 13:02:02 +0000 Subject: [PATCH] * fix the error of switchDisplay. --- module/common/view/action.html.php | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/module/common/view/action.html.php b/module/common/view/action.html.php index a616a37e34..40558cf8de 100644 --- a/module/common/view/action.html.php +++ b/module/common/view/action.html.php @@ -1,20 +1,23 @@ getExtViewFile(__FILE__)){include $extView; return helper::cd();}?> +
@@ -40,16 +43,16 @@ function switchHistoryDisplay(historyID,type) if(isset($users[$action->actor])) $action->actor = $users[$action->actor]; if(strpos($action->actor, ':') !== false) $action->actor = substr($action->actor, strpos($action->actor, ':') + 1); ?> - action->printAction($action);?> - history)) echo html::commonButton($lang->unfold, "id=switchButton$i onclick=switchHistoryDisplay($i,this.value)");?> + + action->printAction($action);?> + history)) echo html::commonButton($lang->unfold, "id=switchButton$i onclick=switchChange($i,this.value)");?> + comment) or !empty($action->history)):?> comment)) echo "
";?> - ";?> -
- action->printChanges($action->objectType, $action->history);?> - comment) echo '
';?> -
- + comment) echo nl2br($action->comment);?> comment)) echo "
";?>