refs #48 Double attachment form

This commit is contained in:
Karel Picman 2017-08-29 14:48:13 +02:00
parent f2c0b5b217
commit 9e9d1250aa

View File

@ -138,7 +138,7 @@ module RedmineDmsf
# Add Dmsf upload form
container = context[:container]
if allowed_to_attach_documents(container)
html = "<p class=\"#{(User.current.pref[:dmsf_attachments_upload_choice] == 'Attachments') ? 'hol' : ''}\">"
html = "<p style=\"#{(User.current.pref[:dmsf_attachments_upload_choice] == 'Attachments') ? 'display: none;' : ''}\">"
if label
html << "<label>#{l(:label_document_plural)}</label>"
html << "<span class=\"attachments-container dmsf_uploader\">"