Fixed JSON.parse issue
This commit is contained in:
parent
5174466a05
commit
bff71cde3b
@ -2,14 +2,22 @@ class DetailsIssueHooks < Redmine::Hook::ViewListener
|
|||||||
|
|
||||||
def protect_against_forgery?
|
def protect_against_forgery?
|
||||||
false
|
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
|
end
|
||||||
|
|
||||||
def view_layouts_base_html_head(context)
|
def view_layouts_base_body_bottom(context)
|
||||||
stylesheet_link_tag('issue_dynamic_edit.css', :plugin => :redmine_issue_dynamic_edit)
|
if current_is_detail_page(context)
|
||||||
end
|
javascript_include_tag('issue_dynamic_edit.js', :plugin => :redmine_issue_dynamic_edit)
|
||||||
|
end
|
||||||
def view_layouts_base_body_bottom(context)
|
|
||||||
javascript_include_tag('issue_dynamic_edit.js', :plugin => :redmine_issue_dynamic_edit)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def view_issues_show_details_bottom(context = { })
|
def view_issues_show_details_bottom(context = { })
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user