Updated redirect path after saving a page

This commit is contained in:
saurabhbhatia 2013-11-06 17:20:40 +08:00
parent 3744e1c3e7
commit 591a3e0bc4
2 changed files with 2 additions and 3 deletions

View File

@ -95,9 +95,7 @@ class Admin::PagePartsController < OrbitBackendController
set_children_sub_menu(@part) if @part.public_r_tag && @part.public_r_tag.eql?('sub_menu')
flash.now[:notice] = t('update.success.content')
respond_to do |format|
format.html {
redirect_to admin_page_url(@part.page, edit: true)
}
format.js
end
else
@id = params[:id]

View File

@ -0,0 +1 @@
window.location.href="<%= admin_page_url(@part.page, edit: true) %>"