diff --git a/codepot/src/codepot/views/code_file.php b/codepot/src/codepot/views/code_file.php index 223d4ff7..22e9c111 100644 --- a/codepot/src/codepot/views/code_file.php +++ b/codepot/src/codepot/views/code_file.php @@ -222,7 +222,9 @@ $(function () { return false; // prevent the default behavior }); + $("#code_file_mainarea_edit_button").button(); + $("#code_file_headrev_button").button().click (function() { @@ -403,7 +405,7 @@ $this->load->view ( print ' | '; printf ('%s: %s', $this->lang->line('Size'), $file['size']); - if ((isset($login['id']) && $login['id'] != '')) + if ((isset($login['id']) && $login['id'] != '') && !$is_special_stream) { print ' '; print anchor ("code/edit/{$project->id}/{$hex_headpath}{$revreq}", $this->lang->line('Edit'), 'id="code_file_mainarea_edit_button"');