Fixed JSON.parse issue
This commit is contained in:
parent
5174466a05
commit
bff71cde3b
@ -4,13 +4,21 @@ class DetailsIssueHooks < Redmine::Hook::ViewListener
|
||||
false
|
||||
end
|
||||
|
||||
def current_is_detail_page(context)
|
||||
ret = context[:controller] && context[:controller].is_a?(IssuesController) && context[:request].original_url.rindex(/\/issues\/\d+/)
|
||||
end
|
||||
|
||||
def view_layouts_base_html_head(context)
|
||||
if current_is_detail_page(context)
|
||||
stylesheet_link_tag('issue_dynamic_edit.css', :plugin => :redmine_issue_dynamic_edit)
|
||||
end
|
||||
end
|
||||
|
||||
def view_layouts_base_body_bottom(context)
|
||||
if current_is_detail_page(context)
|
||||
javascript_include_tag('issue_dynamic_edit.js', :plugin => :redmine_issue_dynamic_edit)
|
||||
end
|
||||
end
|
||||
|
||||
def view_issues_show_details_bottom(context = { })
|
||||
project = context[:project]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user