Updated redirect path after saving a page

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

No files matched your search

@@ -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]
+1
View File
@@ -0,0 +1 @@
window.location.href="<%= admin_page_url(@part.page, edit: true) %>"