From 6d30bb9906129e7128be56e7959676d0754cc712 Mon Sep 17 00:00:00 2001 From: pavel Date: Mon, 28 May 2018 17:20:21 +0200 Subject: [PATCH] fix view context --- lib/redmine_dmsf/hooks/views/issue_view_hooks.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/redmine_dmsf/hooks/views/issue_view_hooks.rb b/lib/redmine_dmsf/hooks/views/issue_view_hooks.rb index 35f461e6..94b0586c 100644 --- a/lib/redmine_dmsf/hooks/views/issue_view_hooks.rb +++ b/lib/redmine_dmsf/hooks/views/issue_view_hooks.rb @@ -49,7 +49,7 @@ module RedmineDmsf html << '' html << '

' if User.current.pref.dmsf_attachments_upload_choice == 'DMSF' - html << late_javascript_tag("$(document).ready(function() {$('.attachments-container:not(.dmsf_uploader)').parent().hide();})") + html << context[:hook_caller].late_javascript_tag("$('.attachments-container:not(.dmsf_uploader)').parent().hide();") end end # Upload form