fixed tag editing permission in the code revision view
This commit is contained in:
parent
c3e6bbae22
commit
256560180b
@ -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');
|
||||
@ -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 (
|
||||
|
Loading…
Reference in New Issue
Block a user