From d8e7413da3be59e80e8e692337e9a43e56fe93b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Pi=C4=8Dman?= Date: Tue, 28 May 2019 13:58:41 +0200 Subject: [PATCH] Switching DMS and files attachments --- assets/stylesheets/redmine_dmsf.css | 4 ++++ lib/redmine_dmsf/hooks/views/issue_view_hooks.rb | 14 +++++++++----- 2 files changed, 13 insertions(+), 5 deletions(-) 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