Added support for new code in Refinery CMS since resolve/refinerycms#1234
This commit is contained in:
parent
30ebf2d338
commit
33bfa4dd23
35 changed files with 182 additions and 197 deletions
|
@ -8,7 +8,7 @@ module Refinery
|
|||
crudify :'refinery/blog/post',
|
||||
:title_attribute => :title,
|
||||
:order => 'published_at DESC',
|
||||
:redirect_to_url => "main_app.refinery_blog_admin_posts_path"
|
||||
:redirect_to_url => "refinery.blog_admin_posts_path"
|
||||
|
||||
before_filter :find_all_categories,
|
||||
:only => [:new, :edit, :create, :update]
|
||||
|
@ -54,7 +54,7 @@ module Refinery
|
|||
|
||||
unless from_dialog?
|
||||
unless params[:continue_editing] =~ /true|on|1/
|
||||
redirect_back_or_default(main_app.refinery_blog_admin_posts_path)
|
||||
redirect_back_or_default(refinery.blog_admin_posts_path)
|
||||
else
|
||||
unless request.xhr?
|
||||
redirect_to :back
|
||||
|
@ -63,7 +63,7 @@ module Refinery
|
|||
end
|
||||
end
|
||||
else
|
||||
render :text => "<script>parent.window.location = '#{main_app.refinery_blog_admin_posts_url}';</script>"
|
||||
render :text => "<script>parent.window.location = '#{refinery.blog_admin_posts_url}';</script>"
|
||||
end
|
||||
else
|
||||
unless request.xhr?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue