@@ -113,6 +113,8 class IssuesController < ApplicationController | |||||
113 | @edit_allowed = User.current.allowed_to?(:edit_issues, @project) |
|
113 | @edit_allowed = User.current.allowed_to?(:edit_issues, @project) | |
114 | @priorities = IssuePriority.active |
|
114 | @priorities = IssuePriority.active | |
115 | @time_entry = TimeEntry.new(:issue => @issue, :project => @issue.project) |
|
115 | @time_entry = TimeEntry.new(:issue => @issue, :project => @issue.project) | |
|
116 | @relation = IssueRelation.new | |||
|
117 | ||||
116 | respond_to do |format| |
|
118 | respond_to do |format| | |
117 | format.html { |
|
119 | format.html { | |
118 | retrieve_previous_and_next_issue_ids |
|
120 | retrieve_previous_and_next_issue_ids |
@@ -4,3 +4,4 $('#relations').html('<%= escape_javascript(render :partial => 'issues/relations | |||||
4 | $('#relation_issue_to_id').val(''); |
|
4 | $('#relation_issue_to_id').val(''); | |
5 | $('#relation_issue_to_id').focus(); |
|
5 | $('#relation_issue_to_id').focus(); | |
6 | <% end %> |
|
6 | <% end %> | |
|
7 | $('#new-relation-form').show(); |
@@ -38,7 +38,7 | |||||
38 | :as => :relation, :remote => true, |
|
38 | :as => :relation, :remote => true, | |
39 | :url => issue_relations_path(@issue), |
|
39 | :url => issue_relations_path(@issue), | |
40 | :method => :post, |
|
40 | :method => :post, | |
41 |
:html => {:id => 'new-relation-form', :style => |
|
41 | :html => {:id => 'new-relation-form', :style => 'display: none;'} | |
42 | } do |f| %> |
|
42 | } do |f| %> | |
43 | <%= render :partial => 'issue_relations/form', :locals => {:f => f}%> |
|
43 | <%= render :partial => 'issue_relations/form', :locals => {:f => f}%> | |
44 | <% end %> |
|
44 | <% end %> |
General Comments 0
You need to be logged in to leave comments.
Login now