fix view context

This commit is contained in:
pavel 2018-05-28 17:20:21 +02:00
parent b9e5222c2f
commit 6d30bb9906

View File

@ -49,7 +49,7 @@ module RedmineDmsf
html << '</label>'
html << '</p>'
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