fixed tag editing permission in the code revision view

This commit is contained in:
hyung-hwan 2016-01-09 05:00:05 +00:00
parent c3e6bbae22
commit 256560180b

View File

@ -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() {
<?php endif; ?>
<?php if ($is_loggedin): ?>
$('#code_revision_edit_revision_tag_form').dialog (
$('#code_revision_edit_revision_tag_form').dialog (
{
title: '<?php print $this->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}", '<i class="fa fa-arrow-circle-right"></i>');
if ($can_edit)
if ($is_loggedin)
{
print ' ';
print '<span class="anchor">';
@ -835,7 +835,8 @@ $history = $file['history'];
</div> <!-- code_revision_mainarea_result -->
<?php if ($can_edit): ?>
<?php if ($is_loggedin): ?>
<div id="code_revision_edit_revision_tag_form">
<?php print
form_input (
@ -845,7 +846,9 @@ $history = $file['history'];
)
?>
</div>
<?php endif; ?>
<?php if ($can_edit): ?>
<div id='code_revision_edit_revision_message_form'>
<?php print
form_textarea (