From d1b18b9973d09cef82dd6652c2aa5c06194468ff Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Fri, 6 Feb 2015 06:23:50 +0000 Subject: [PATCH] added preparatory code to support review comment editing --- codepot/src/codepot/views/code_revision.php | 31 ++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/codepot/src/codepot/views/code_revision.php b/codepot/src/codepot/views/code_revision.php index 86c7b2a7..3e722c5c 100644 --- a/codepot/src/codepot/views/code_revision.php +++ b/codepot/src/codepot/views/code_revision.php @@ -79,6 +79,26 @@ $(function() { return false; } ); + + 0; ) + { + $i--; + + $rc = $reviews[$i]; + if ($login['id'] == $rc->updatedby) + { + print (" + $('#code_revision_edit_review_comment_button_{$i}').button().click ( + function () { + alert ('not implemented {$i}'); + return false; + } + ) + "); + } + } + ?> }); @@ -318,6 +338,16 @@ $history = $file['history']; printf (" %d", $rc->sno); printf (" %s", $rc->updatedby); printf (" %s", $rc->updatedon); + + if ($login['id'] == $rc->updatedby) + { + print ' '; + print anchor ( + "#", $this->lang->line('Edit'), + array ('id' => 'code_revision_edit_review_comment_button_' . $i) + ); + } + print ("\n"); print "
\n"; @@ -353,7 +383,6 @@ $history = $file['history'];
id}${revreqroot}", 'id="code_revision_edit_logmsg_form"')?> 'edit_log_message', 'value' => $history['msg'], 'rows'=> 10, 'cols' => 70,