Merge pull request #865 from ahorek/fix_view_context

fix view context
This commit is contained in:
Karel Picman 2018-05-29 07:41:22 +02:00 committed by GitHub
commit 01164fa0e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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