Project

General

Profile

Defect #22897 » macross.diff

Diff file - Aleksandar Pavic, 2016-05-25 13:06

View differences:

macros.rb 2016-05-25 13:03:03.841450140 +0200
222 222
        show_label = args[0] || l(:button_show)
223 223
        hide_label = args[1] || args[0] || l(:button_hide)
224 224
        js = "$('##{html_id}-show, ##{html_id}-hide').toggle(); $('##{html_id}').fadeToggle(150);"
225
        out = ''.html_safe
225
        out = text.html_safe
226 226
        out << link_to_function(show_label, js, :id => "#{html_id}-show", :class => 'collapsible collapsed')
227 227
        out << link_to_function(hide_label, js, :id => "#{html_id}-hide", :class => 'collapsible', :style => 'display:none;')
228 228
        out << content_tag('div', textilizable(text, :object => obj, :headings => false), :id => html_id, :class => 'collapsed-text', :style => 'display:none;')
(2-2/2)