wagn 1.12.8 → 1.12.9
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/mods/standard/sets/all/rich_html.rb +4 -4
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.12.
|
1
|
+
1.12.9
|
@@ -64,7 +64,7 @@ format :html do
|
|
64
64
|
end
|
65
65
|
|
66
66
|
view :open, :tags=>:comment do |args|
|
67
|
-
wrap_frame :open, args.merge(:content=>true) do
|
67
|
+
wrap_frame :open, args.merge(:content=>true, :optional_toggle=>:show) do
|
68
68
|
%{
|
69
69
|
#{ _render_open_content args }
|
70
70
|
#{ optional_render :comment_box, args }
|
@@ -73,7 +73,7 @@ format :html do
|
|
73
73
|
end
|
74
74
|
|
75
75
|
view :toggle do |args|
|
76
|
-
verb, adjective, direction = args[:
|
76
|
+
verb, adjective, direction = ( args[:toggle_mode] == :close ? %w{ open open e } : %w{ close closed s } )
|
77
77
|
|
78
78
|
link_to '', path( :view=>adjective ),
|
79
79
|
:remote => true,
|
@@ -135,8 +135,8 @@ format :html do
|
|
135
135
|
end
|
136
136
|
|
137
137
|
view :closed do |args|
|
138
|
-
wrap_frame :closed, args.merge(:content=>true, :body_class=>'closed-content', :
|
139
|
-
|
138
|
+
wrap_frame :closed, args.merge(:content=>true, :body_class=>'closed-content', :toggle_mode=>:close, :optional_toggle=>:show ) do
|
139
|
+
_optional_render :closed_content, args
|
140
140
|
end
|
141
141
|
end
|
142
142
|
|