From 256560180bec4b7e69a69ee327e322be0878bef0 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Sat, 9 Jan 2016 05:00:05 +0000 Subject: [PATCH] fixed tag editing permission in the code revision view --- codepot/src/codepot/views/code_revision.php | 23 ++++++++++++--------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/codepot/src/codepot/views/code_revision.php b/codepot/src/codepot/views/code_revision.php index 954a8e42..6f618607 100644 --- a/codepot/src/codepot/views/code_revision.php +++ b/codepot/src/codepot/views/code_revision.php @@ -178,13 +178,6 @@ $(function() { } ); - $('#code_revision_edit_revision_tag_button').button().click ( - function () { - $('#code_revision_edit_revision_tag_form').dialog('open'); - return false; - } - ); - $('#code_revision_edit_revision_message_button').button().click ( function () { $('#code_revision_edit_revision_message_form').dialog('open'); @@ -194,7 +187,7 @@ $(function() { -$('#code_revision_edit_revision_tag_form').dialog ( + $('#code_revision_edit_revision_tag_form').dialog ( { title: 'lang->line('Tag');?>', resizable: true, @@ -271,6 +264,13 @@ $('#code_revision_edit_revision_tag_form').dialog ( } ); + $('#code_revision_edit_revision_tag_button').button().click ( + function () { + $('#code_revision_edit_revision_tag_form').dialog('open'); + return false; + } + ); + $('#code_revision_new_review_comment_tabs').tabs (); $('#code_revision_new_review_comment_tabs').bind ('tabsshow', function (event, ui) { if (ui.index == 1) preview_new_review_comment ($('#code_revision_new_review_comment').val()); @@ -621,7 +621,7 @@ $history = $file['history']; print ' '; print anchor ("code/revision/{$project->id}/${hex_headpath}/{$next_revision}", ''); - if ($can_edit) + if ($is_loggedin) { print ' '; print ''; @@ -835,7 +835,8 @@ $history = $file['history']; - + +
+ +