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 CHANGED
@@ -1 +1 @@
1
- 1.12.8
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[:toggle] == :close ? %w{ close closed s } : %w{ open open e }
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', :toggle=>:close ) do
139
- _render_closed_content args
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wagn
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.12.8
4
+ version: 1.12.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: