app/helpers/cmsedit_helper.rb in drg_cms-0.5.10.10 vs app/helpers/cmsedit_helper.rb in drg_cms-0.5.50.2
- old
+ new
@@ -628,11 +628,11 @@
if yaml.class == Hash
clas = yaml['class']
style = yaml['style']
end
clas ||= 'dc-separator'
- "<tr><td colspan=\"#{columns*2}\" class=\"#{clas}\" style=\"#{style}\"></td></tr>"
+ "<tr><td> </td></tr><tr><td colspan=\"#{columns*2}\" class=\"#{clas}\" style=\"#{style}\"></td></tr><tr><td> </td></tr>"
end
############################################################################
# Creates input fields for one tab. Subroutine of dc_fields_for_form.
############################################################################
@@ -786,10 +786,10 @@
html << '</table>'
# Copy to clipboard icon
parms = params.clone
parms[:controller] = 'dc_common'
parms[:action] = 'copy_clipboard'
- url = url_for(parms)
+ url = url_for(parms.permit!)
# caption = image_tag('drg_cms/copy.png', title: t('drgcms.doc_copy_clipboard'))
# html << %Q[<hr><img class="dc-link-img dc-link-ajax dc-animate" data-url="#{url}" data-request="get" #{caption}]
html << fa_icon('copy 2x', class: 'dc-link-img dc-link-ajax dc-animate',
'data-url' => url, 'data-request' => 'get', title: t('drgcms.doc_copy_clipboard') )
(html << '</div>').html_safe