diff --git a/assets/stylesheets/redmine_dmsf.css b/assets/stylesheets/redmine_dmsf.css index ca11080f..98b8b983 100644 --- a/assets/stylesheets/redmine_dmsf.css +++ b/assets/stylesheets/redmine_dmsf.css @@ -378,4 +378,8 @@ div.dmsf_revision_inner_box .attribute .label { #dmsf_link_external{ display: none; +} + +.dmsf_attachments_label{ + vertical-align: middle; } \ No newline at end of file diff --git a/lib/redmine_dmsf/hooks/views/issue_view_hooks.rb b/lib/redmine_dmsf/hooks/views/issue_view_hooks.rb index fccf907f..57e68f74 100644 --- a/lib/redmine_dmsf/hooks/views/issue_view_hooks.rb +++ b/lib/redmine_dmsf/hooks/views/issue_view_hooks.rb @@ -35,21 +35,25 @@ module RedmineDmsf # Radio buttons if allowed_to_attach_documents(context[:container]) html << '
' - html << '
' if User.current.pref.dmsf_attachments_upload_choice == 'DMSF' - html << context[:hook_caller].late_javascript_tag("$('.attachments-container:not(.dmsf_uploader)').parent().hide();") + html << context[:hook_caller].late_javascript_tag("$('.attachments-container:not(.dmsf_uploader)').hide();") end end # Upload form