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 (
|
$('#code_revision_edit_revision_message_button').button().click (
|
||||||
function () {
|
function () {
|
||||||
$('#code_revision_edit_revision_message_form').dialog('open');
|
$('#code_revision_edit_revision_message_form').dialog('open');
|
||||||
@ -194,7 +187,7 @@ $(function() {
|
|||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<?php if ($is_loggedin): ?>
|
<?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');?>',
|
title: '<?php print $this->lang->line('Tag');?>',
|
||||||
resizable: true,
|
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').tabs ();
|
||||||
$('#code_revision_new_review_comment_tabs').bind ('tabsshow', function (event, ui) {
|
$('#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());
|
if (ui.index == 1) preview_new_review_comment ($('#code_revision_new_review_comment').val());
|
||||||
@ -621,7 +621,7 @@ $history = $file['history'];
|
|||||||
print ' ';
|
print ' ';
|
||||||
print anchor ("code/revision/{$project->id}/${hex_headpath}/{$next_revision}", '<i class="fa fa-arrow-circle-right"></i>');
|
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 ' ';
|
||||||
print '<span class="anchor">';
|
print '<span class="anchor">';
|
||||||
@ -835,7 +835,8 @@ $history = $file['history'];
|
|||||||
|
|
||||||
</div> <!-- code_revision_mainarea_result -->
|
</div> <!-- code_revision_mainarea_result -->
|
||||||
|
|
||||||
<?php if ($can_edit): ?>
|
|
||||||
|
<?php if ($is_loggedin): ?>
|
||||||
<div id="code_revision_edit_revision_tag_form">
|
<div id="code_revision_edit_revision_tag_form">
|
||||||
<?php print
|
<?php print
|
||||||
form_input (
|
form_input (
|
||||||
@ -845,7 +846,9 @@ $history = $file['history'];
|
|||||||
)
|
)
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
|
<?php if ($can_edit): ?>
|
||||||
<div id='code_revision_edit_revision_message_form'>
|
<div id='code_revision_edit_revision_message_form'>
|
||||||
<?php print
|
<?php print
|
||||||
form_textarea (
|
form_textarea (
|
||||||
|
Loading…
Reference in New Issue
Block a user