Skip to content

Commit

Permalink
fix missing region
Browse files Browse the repository at this point in the history
  • Loading branch information
saturnflyer committed Dec 6, 2009
1 parent d449dfc commit d0b6958
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions lib/radiant/admin_ui.rb
Expand Up @@ -209,6 +209,7 @@ def load_default_snippet_regions
edit.form_bottom.concat %w{edit_buttons edit_timestamp}
end
snippet.index = RegionSet.new do |index|
index.top.concat %w{}
index.thead.concat %w{title_header modify_header}
index.tbody.concat %w{title_cell modify_cell}
index.bottom.concat %w{new_button}
Expand All @@ -225,6 +226,7 @@ def load_default_layout_regions
edit.form_bottom.concat %w{edit_buttons edit_timestamp}
end
layout.index = RegionSet.new do |index|
index.top.concat %w{}
index.thead.concat %w{title_header modify_header}
index.tbody.concat %w{title_cell modify_cell}
index.bottom.concat %w{new_button}
Expand Down
4 changes: 2 additions & 2 deletions spec/lib/radiant/admin_ui_spec.rb
Expand Up @@ -68,7 +68,7 @@
snippet.edit.form.should == %w{edit_title edit_content edit_filter}
snippet.edit.form_bottom.should == %w{edit_buttons edit_timestamp}
snippet.index.should_not be_nil
snippet.index.top.should == %w{help_text}
snippet.index.top.should == %w{}
snippet.index.thead.should == %w{title_header modify_header}
snippet.index.tbody.should == %w{title_cell modify_cell}
snippet.index.bottom.should == %w{new_button}
Expand All @@ -84,7 +84,7 @@
edit_content}
layout.edit.form_bottom.should == %w{edit_buttons edit_timestamp}
layout.index.should_not be_nil
layout.index.top.should == %w{help_text}
layout.index.top.should == %w{}
layout.index.thead.should == %w{title_header modify_header}
layout.index.tbody.should == %w{title_cell modify_cell}
layout.index.bottom.should == %w{new_button}
Expand Down

0 comments on commit d0b6958

Please sign in to comment.